packages-semweb icon indicating copy to clipboard operation
packages-semweb copied to clipboard

TriG export incorrectly includes default graph name

Open wouterbeek opened this issue 7 years ago • 0 comments

Steps to reproduce:

?- [library(semweb/rdf_db)].
?- [library(semweb/turtle)].
?- rdf_assert(rdf:s, rdf:p, rdf:o).
?- rdf_save_canonical_trig('test.trig', []).

File test.trig now has the following content:

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
<user> {
rdf:s rdf:p rdf:o .
}

Notice that <user> is not a legal IRI.

Expected: TriG to not export the <...> { ... } graph notation for triples in the default graph.

wouterbeek avatar Dec 20 '17 22:12 wouterbeek