Open VladimirAlexiev opened 8 months ago
I want to use relative URLs for my subjects (who doesn't!). However:
base <...>
declare base-uri "...";
XSPARQL just ignores them and doesn't output @base.
@base
I post-process the output with this pipeline in Makefile:
Makefile
%.ttl: xsparql.xsparql %.xml xsparql xsparql.xsparql input=$*.xml -f TEMP.ttl > /dev/null riot --syntax ttl --formatted ttl --base "..." TEMP.ttl |\ perl -00e '@a=<>; print shift @a; print sort @a' > $*.ttl rm TEMP.ttl
It pretty-prints with riot while specifying the base, then finally sorts by "paragraph" (turtle clause)
riot
base
I want to use relative URLs for my subjects (who doesn't!). However:
base <...>
has no effect :-(declare base-uri "...";
doesn't fit anywhere. I tried several spots according to https://rawgit2.com/VladimirAlexiev/xsparql/master/doc/grammar.xhtml#baseURIDecl. But anyway, it's to specify the base of external URLs to be fetched, not the base of RDF terms.XSPARQL just ignores them and doesn't output
@base
.I post-process the output with this pipeline in
Makefile
:It pretty-prints with
riot
while specifying thebase
, then finally sorts by "paragraph" (turtle clause)