Closed wouterbeek closed 7 years ago
For built-in help, use ?- help(Topic). or ?- apropos(Word).
6 ?- [library(semweb/rdf11)].
true.
7 ?- rdf_load('test.rdf').
ERROR: SGML2PL(xmlns): file:///ufs/wielemak/Bugs/RDF/test.rdf:4: namespace "rdfs" does not exist
% Parsed "test.rdf" in 0.00 sec; 1 triples
true.
Could it be you have stuff loaded that intercepts messages?
I don't understand what's going on here:
$ swipl
?- [library(semweb/rdf_db)].
?- rdf_load('test.rdf').
ERROR: SGML2PL(xmlns): file:///home/wbeek/test.rdf:4: namespace "rdfs" does not exist
% Parsed "test.rdf" in 0.00 sec; 1 triples
?- halt.
wbeek@laptop:~$ swipl
?- [library(semweb/rdf_db)].
?- rdf_load('test.rdf').
% Loaded "test.rdf" in 0.00 sec; 1 triples
Notice that now I get the exception the first time I load the file but not the second time (after restarting swipl). I do not have anything fancy / messages hooks defined.
Fails to reproduce. Tried about 10 times. Ran under valgrind, which doesn't report any access to uninitialized memory (the common cause for which issues).
The following RDF/XML file contains a bug: it does not define the namespace of the predicate term.
Loading this file with Semweb gives no warning/exception but results in an incorrect predicate term:
I was expecting the parser to (1) emit a warning and (2) exclude this particular triple from the result set. There is also an options
max_warnings
, but setting this to -1 or 0 gives the same result.