SWI-Prolog / packages-semweb

The SWI-Prolog RDF store
28 stars 14 forks source link

Empty prefix not returned by parser #80

Open wouterbeek opened 6 years ago

wouterbeek commented 6 years ago

The Turtle/TriG parser does not return the empty prefix:

prefix : <https://example.org/>
prefix a: <https://example.org/a#>
?- use_module(library(semweb/rdf_db)).
?- use_module(library(semweb/turtle)).
?- rdf_load('test.trig', [prefixes(L)]),

Observe that L only contains the non-empty prefix declaration.