Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sparql/sparql12/lang-basedir/concat.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SELECT (CONCAT("a"@en--ltr, "b"@en--ltr) AS ?r) WHERE {}
Comment thread
Tpt marked this conversation as resolved.
Outdated
12 changes: 12 additions & 0 deletions sparql/sparql12/lang-basedir/concat.srj
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"head": {
"vars": [ "r" ]
},
"results": {
"bindings": [
{
"r": { "type": "literal", "value": "ab", "xml:lang": "en", "its:dir": "ltr" }
}
]
}
}
Comment thread
Tpt marked this conversation as resolved.
Outdated
1 change: 1 addition & 0 deletions sparql/sparql12/lang-basedir/contains.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ASK { FILTER(CONTAINS("abc"@en--ltr, "b"@en--ltr) && CONTAINS("abc"@en--ltr, "b")) }
4 changes: 4 additions & 0 deletions sparql/sparql12/lang-basedir/contains.srj
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"head": {},
"boolean": true
}
Empty file.
1 change: 1 addition & 0 deletions sparql/sparql12/lang-basedir/datatype.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SELECT (DATATYPE("foo"@en--ltr) AS ?dt) WHERE {}
12 changes: 12 additions & 0 deletions sparql/sparql12/lang-basedir/datatype.srj
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"head": {
"vars": [ "dt" ]
},
"results": {
"bindings": [
{
"dt": { "type": "uri", "value": "http://www.w3.org/1999/02/22-rdf-syntax-ns#dirLangString" }
}
]
}
}
75 changes: 75 additions & 0 deletions sparql/sparql12/lang-basedir/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,81 @@ <h2>
</dd>
</dl>
</dd>
<dt id='datatype'>
<a class='testlink' href='#datatype'>
datatype:
</a>
<span about='manifest#datatype' property='mf:name'>DATATYPE and rdf:dirLangString</span>
</dt>
<dd inlist='true' property='mf:entry' resource='manifest#datatype' typeof='mf:QueryEvaluationTest'>
<div property='rdfs:comment'>
</div>
<dl class='test-detail'>
<dt>type</dt>
<dd>mf:QueryEvaluationTest</dd>
<dt>approval</dt>
<dd property='mf:approval' resource=''></dd>
<dt>action</dt>
<dd>
<dl class='test-detail' property='mf:action' resource=''>
</dl>
</dd>
<dt>result</dt>
<dd>
<a href='datatype.srj' property='mf:result'>datatype.srj</a>
</dd>
</dl>
</dd>
<dt id='concat'>
<a class='testlink' href='#concat'>
concat:
</a>
<span about='manifest#concat' property='mf:name'>CONCAT and rdf:dirLangString</span>
</dt>
<dd inlist='true' property='mf:entry' resource='manifest#concat' typeof='mf:QueryEvaluationTest'>
<div property='rdfs:comment'>
</div>
<dl class='test-detail'>
<dt>type</dt>
<dd>mf:QueryEvaluationTest</dd>
<dt>approval</dt>
<dd property='mf:approval' resource=''></dd>
<dt>action</dt>
<dd>
<dl class='test-detail' property='mf:action' resource=''>
</dl>
</dd>
<dt>result</dt>
<dd>
<a href='concat.srj' property='mf:result'>concat.srj</a>
</dd>
</dl>
</dd>
<dt id='contains'>
<a class='testlink' href='#contains'>
contains:
</a>
<span about='manifest#contains' property='mf:name'>CONTAINS and rdf:dirLangString</span>
</dt>
<dd inlist='true' property='mf:entry' resource='manifest#contains' typeof='mf:QueryEvaluationTest'>
<div property='rdfs:comment'>
</div>
<dl class='test-detail'>
<dt>type</dt>
<dd>mf:QueryEvaluationTest</dd>
<dt>approval</dt>
<dd property='mf:approval' resource=''></dd>
<dt>action</dt>
<dd>
<dl class='test-detail' property='mf:action' resource=''>
</dl>
</dd>
<dt>result</dt>
<dd>
<a href='contains.srj' property='mf:result'>contains.srj</a>
</dd>
</dl>
</dd>
</dl>
</div>
<footer>
Expand Down
36 changes: 30 additions & 6 deletions sparql/sparql12/lang-basedir/manifest.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
:langdir-literal-invalid
:strlang
:strlangdir
:datatype
:concat
:contains
) .


Expand Down Expand Up @@ -65,8 +68,7 @@
rdfs:comment "Function LANGDIR" ;
dawgt:approval dawgt:Proposed ;
mf:action
[ qt:query <langdir-literal.rq> ;
qt:data <data-empty.ttl> ] ;
[ qt:query <langdir-literal.rq> ] ;
mf:result <langdir-literal.srj> ;
.

Expand All @@ -81,8 +83,7 @@
rdfs:comment "Function STRLANG" ;
dawgt:approval dawgt:Proposed ;
mf:action
[ qt:query <strlang.rq> ;
qt:data <data-empty.ttl> ] ;
[ qt:query <strlang.rq> ] ;
mf:result <strlang.srj> ;
.

Expand All @@ -91,7 +92,30 @@
rdfs:comment "Function STRLANGDIR" ;
dawgt:approval dawgt:Proposed ;
mf:action
[ qt:query <strlangdir.rq> ;
qt:data <data-empty.ttl> ] ;
[ qt:query <strlangdir.rq> ] ;
mf:result <strlangdir.srj> ;
.

:datatype rdf:type mf:QueryEvaluationTest ;
mf:name "DATATYPE and rdf:dirLangString";
dawgt:approval dawgt:Proposed ;
mf:action
[ qt:query <datatype.rq> ] ;
mf:result <datatype.srj> ;
.

:concat rdf:type mf:QueryEvaluationTest ;
mf:name "CONCAT and rdf:dirLangString";
dawgt:approval dawgt:Proposed ;
mf:action
[ qt:query <concat.rq> ] ;
mf:result <concat.srj> ;
.

:contains rdf:type mf:QueryEvaluationTest ;
mf:name "CONTAINS and rdf:dirLangString";
dawgt:approval dawgt:Proposed ;
mf:action
[ qt:query <contains.rq> ] ;
mf:result <contains.srj> ;
.