Skip to content

Commit

Permalink
Add zero-or-more-path-zero test
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Oct 16, 2024
1 parent 49561b9 commit e2790e9
Show file tree
Hide file tree
Showing 5 changed files with 1,176 additions and 1 deletion.
1 change: 1 addition & 0 deletions sparql/manifest-raw.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ optional-filter-exists FILE@https://raw.githubusercontent.com/comunica/manifest-
willis-product TPF@https://fragments.dbpedia.org/2016-04/en
non-existing-optional-fed TPF@https://fragments.dbpedia.org/2016-04/en TPF@https://data.linkeddatafragments.org/ugent-biblio
starring-selective-filter TPF@https://fragments.dbpedia.org/2016-04/en
zero-or-more-path-zero FILE@https://raw.githubusercontent.com/comunica/manifest-ldf-tests/master/sparql/common04_static/rubent.html
14 changes: 13 additions & 1 deletion sparql/sparql-manifest.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
:willis-product
:non-existing-optional-fed
:starring-selective-filter
:zero-or-more-path-zero
) .

:directors01 rdf:type et:LdfQueryEvaluationTest ;
Expand Down Expand Up @@ -261,4 +262,15 @@
et:dataSources(
[ et:source <https://fragments.dbpedia.org/2016-04/en> ;
et:sourceType et:TPF ] ) ;
mf:result <starring-selective-filter/result.srj> .
mf:result <starring-selective-filter/result.srj> .

:employees rdf:type et:LdfQueryEvaluationTest ;
mf:name "SELECT - Zero or more path zero" ;
rdfs:comment "Zero-or-more property path where only the zero part applies" ;
mf:action
[ qt:query <zero-or-more-path-zero.rq> ;
et:mockFolder <zero-or-more-path-zero> ] ;
et:dataSources (
[ et:source <common04_static/rubent.html> ;
et:sourceType et:File ] ) ;
mf:result <zero-or-more-path-zero/result.srj> .
6 changes: 6 additions & 0 deletions sparql/zero-or-more-path-zero.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
PREFIX owl: <http://www.w3.org/2002/07/owl#>
SELECT *
WHERE {
<https://www.rubensworks.net/#me> owl:nonExisting? ?a .
?a ?rel ?b .
}
Loading

0 comments on commit e2790e9

Please sign in to comment.