Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
100 changes: 100 additions & 0 deletions sparql/sparql11/property-path/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,106 @@ <h2>
</dd>
</dl>
</dd>
<dt id='zero_or_more_set_start'>
<a class='testlink' href='#zero_or_more_set_start'>
zero_or_more_set_start:
</a>
<span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/property-path/manifest#zero_or_more_set_start' property='mf:name'>* with start being a constant on the empty dataset</span>
</dt>
<dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/property-path/manifest#zero_or_more_set_start' 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='zero_or_more_set_start.srx' property='mf:result'>zero_or_more_set_start.srx</a>
</dd>
</dl>
</dd>
<dt id='zero_or_more_set_end'>
<a class='testlink' href='#zero_or_more_set_end'>
zero_or_more_set_end:
</a>
<span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/property-path/manifest#zero_or_more_set_end' property='mf:name'>* with end being a constant on the empty dataset</span>
</dt>
<dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/property-path/manifest#zero_or_more_set_end' 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='zero_or_more_set_end.srx' property='mf:result'>zero_or_more_set_end.srx</a>
</dd>
</dl>
</dd>
<dt id='zero_or_one_set_start'>
<a class='testlink' href='#zero_or_one_set_start'>
zero_or_one_set_start:
</a>
<span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/property-path/manifest#zero_or_one_set_start' property='mf:name'>? with start being a constant on the empty dataset</span>
</dt>
<dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/property-path/manifest#zero_or_one_set_start' 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='zero_or_one_set_start.srx' property='mf:result'>zero_or_one_set_start.srx</a>
</dd>
</dl>
</dd>
<dt id='zero_or_one_set_end'>
<a class='testlink' href='#zero_or_one_set_end'>
zero_or_one_set_end:
</a>
<span about='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/property-path/manifest#zero_or_one_set_end' property='mf:name'>? with end being a constant on the empty dataset</span>
</dt>
<dd inlist='true' property='mf:entry' resource='http://www.w3.org/2009/sparql/docs/tests/data-sparql11/property-path/manifest#zero_or_one_set_end' 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='zero_or_one_set_end.srx' property='mf:result'>zero_or_one_set_end.srx</a>
</dd>
</dl>
</dd>
</dl>
</div>
<footer>
Expand Down
33 changes: 32 additions & 1 deletion sparql/sparql11/property-path/manifest.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
:values_and_path
:nps_inverse
:nps_direct_and_inverse
:zero_or_more_set_start
:zero_or_more_set_end
:zero_or_one_set_start
:zero_or_one_set_end
) .


Expand Down Expand Up @@ -304,10 +308,37 @@
qt:data <nps_inverse.ttl> ] ;
mf:result <nps_inverse.srx> .


:nps_direct_and_inverse rdf:type mf:QueryEvaluationTest ;
mf:name "Negated Property Set with both direct and inverse properties" ;
mf:action
[ qt:query <nps_direct_and_inverse.rq> ;
qt:data <nps_direct_and_inverse.ttl> ] ;
mf:result <nps_direct_and_inverse.srx> .

:zero_or_more_set_start rdf:type mf:QueryEvaluationTest ;
mf:name "* with start being a constant on the empty dataset" ;
mf:action
[ qt:query <zero_or_more_set_start.rq> ;
qt:data <empty.ttl> ] ;
mf:result <zero_or_more_set_start.srx> .

:zero_or_more_set_end rdf:type mf:QueryEvaluationTest ;
mf:name "* with end being a constant on the empty dataset" ;
mf:action
[ qt:query <zero_or_more_set_end.rq> ;
qt:data <empty.ttl> ] ;
mf:result <zero_or_more_set_end.srx> .

:zero_or_one_set_start rdf:type mf:QueryEvaluationTest ;
mf:name "? with start being a constant on the empty dataset" ;
mf:action
[ qt:query <zero_or_one_set_start.rq> ;
qt:data <empty.ttl> ] ;
mf:result <zero_or_one_set_start.srx> .

:zero_or_one_set_end rdf:type mf:QueryEvaluationTest ;
mf:name "? with end being a constant on the empty dataset" ;
mf:action
[ qt:query <zero_or_one_set_end.rq> ;
qt:data <empty.ttl> ] ;
mf:result <zero_or_one_set_end.srx> .
2 changes: 2 additions & 0 deletions sparql/sparql11/property-path/zero_or_more_set_end.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
PREFIX : <http://example/>
SELECT ?o WHERE { :s :p* ?o }
13 changes: 13 additions & 0 deletions sparql/sparql11/property-path/zero_or_more_set_end.srx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<sparql xmlns="http://www.w3.org/2005/sparql-results#">
<head>
<variable name="o"/>
</head>
<results>
<result>
<binding name="o">
<uri>http://example/s</uri>
</binding>
</result>
</results>
</sparql>
2 changes: 2 additions & 0 deletions sparql/sparql11/property-path/zero_or_more_set_start.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
PREFIX : <http://example/>
SELECT ?s WHERE { ?s :p* :o }
13 changes: 13 additions & 0 deletions sparql/sparql11/property-path/zero_or_more_set_start.srx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<sparql xmlns="http://www.w3.org/2005/sparql-results#">
<head>
<variable name="s"/>
</head>
<results>
<result>
<binding name="s">
<uri>http://example/o</uri>
</binding>
</result>
</results>
</sparql>
2 changes: 2 additions & 0 deletions sparql/sparql11/property-path/zero_or_one_set_end.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
PREFIX : <http://example/>
SELECT ?o WHERE { :s :p? ?o }
13 changes: 13 additions & 0 deletions sparql/sparql11/property-path/zero_or_one_set_end.srx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<sparql xmlns="http://www.w3.org/2005/sparql-results#">
<head>
<variable name="o"/>
</head>
<results>
<result>
<binding name="o">
<uri>http://example/s</uri>
</binding>
</result>
</results>
</sparql>
2 changes: 2 additions & 0 deletions sparql/sparql11/property-path/zero_or_one_set_start.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
PREFIX : <http://example/>
SELECT ?s WHERE { ?s :p? :o }
13 changes: 13 additions & 0 deletions sparql/sparql11/property-path/zero_or_one_set_start.srx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<sparql xmlns="http://www.w3.org/2005/sparql-results#">
<head>
<variable name="s"/>
</head>
<results>
<result>
<binding name="s">
<uri>http://example/o</uri>
</binding>
</result>
</results>
</sparql>