parent
cc7c92092f
commit
6c96f4fa82
@ -0,0 +1,3 @@ |
||||
PREFIX : <http://www.example.org> |
||||
|
||||
SELECT (GROUP_CONCAT(?opt) AS ?g) WHERE { ?baseS a :ex OPTIONAL { ?baseS :opt ?opt } } |
@ -0,0 +1,13 @@ |
||||
<?xml version="1.0"?> |
||||
<sparql xmlns="http://www.w3.org/2005/sparql-results#"> |
||||
<head> |
||||
<variable name="g"/> |
||||
</head> |
||||
<results> |
||||
<result> |
||||
<binding name="opt"> |
||||
<literal datatype="http://www.w3.org/2001/XMLSchema#string">value</literal> |
||||
</binding> |
||||
</result> |
||||
</results> |
||||
</sparql> |
@ -0,0 +1,4 @@ |
||||
@prefix : <http://www.example.org/> . |
||||
|
||||
:a a :ex ; :s :opt "value" . |
||||
:b a :ex . |
@ -0,0 +1,20 @@ |
||||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
||||
@prefix : <https://github.com/oxigraph/oxigraph/tests/sparql/manifest#> . |
||||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
||||
@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> . |
||||
@prefix qt: <http://www.w3.org/2001/sw/DataAccess/tests/test-query#> . |
||||
|
||||
<> rdf:type mf:Manifest ; |
||||
rdfs:label "Oxigraph SPARQL tests" ; |
||||
mf:entries |
||||
( |
||||
:group_concat_with_null |
||||
) . |
||||
|
||||
:group_concat_with_null rdf:type mf:QueryEvaluationTest ; |
||||
mf:name "GROUP_CONCAT with NULL" ; |
||||
rdfs:comment "GROUP_CONCAT should ignore null values" ; |
||||
mf:action |
||||
[ qt:query <group_concat_with_null.rq> ; |
||||
qt:data <group_concat_with_null.ttl> ] ; |
||||
mf:result <group_concat_with_null.srx> . |
Loading…
Reference in new issue