Skip to content
Hirokazu Chiba edited this page May 28, 2023 · 17 revisions

Issues

  • Test for 8.3.3 is not true in Jena sparql.
  • The query 9.4.rq seems invalid.

Test:

$ spang-bench -sT *.rq
valid   name
true    02.1.rq
true    02.2.rq
...
false   02.4.rq
...

Modifications:

$ cat 02.6.rq
PREFIX foaf:   <http://xmlns.com/foaf/0.1/>
PREFIX org:    <http://example.com/ns#>

CONSTRUCT { ?x foaf:name ?name }
WHERE  { ?x org:employeeName ?name }
$ cat 02.6.ttl
@prefix org:    <http://example.com/ns#> .

_:a  org:employeeName   "Alice" .
_:a  org:employeeId     12345 .

_:b  org:employeeName   "Bob" .
_:b  org:employeeId     67890 .
$ diff -w 02.6.txt~ 02.6.txt
a1
> @prefix org:   <http://example.com/ns#> .
3,4c4,6
< _:x foaf:name "Alice" .
< _:y foaf:name "Bob" .
---
> [ foaf:name  "Bob" ] .
> 
> [ foaf:name  "Alice" ] .
$ diff 02.6a.txt~ 02.6a.txt
3,4c3,4
<     xmlns:foaf="http://xmlns.com/foaf/0.1/"
<     >
---
>     xmlns:org="http://example.com/ns#"
>     xmlns:foaf="http://xmlns.com/foaf/0.1/">

Additional queries:

$ diff 16.1.1.rq 16.1.1a.rq
2a3
> # @option -f json
$ diff 16.1.1.rq 16.1.1b.rq
2a3
> # @option -f XML
$ diff 16.3.rq 16.3a.rq
2a3
> # @option -f xml

Clone this wiki locally