I am playing around with using the manifest file to load RDF schema and triples, but seem to be running into issues loading schema files. I took the example from here and tried to load it.
I copied the above file as Manifest.ttl in a temporary directory ‘/tmp/x’ and attached it via a dummy prolog script (and yes, none of the rdfs file being referred to in the manifest exist in the directory):
:- use_module(library(semweb/rdf11)). :- use_module(library(semweb/rdfs)). :- use_module(library(semweb/rdf_library)). :- rdf_attach_library('.').
Ran the script and as expected I get the missing file errors when I do the actual library load. Here is the error:
?- rdf_load_library('wn20-basic', ). Correct to: "rdf_library:rdf_load_library('wn20-basic',)"? yes ERROR: urls `['file:///tmp/x/wordnet-attribute.rdf.gz','file:///tmp/x/wordnet-causes.rdf.gz','file:///tmp /x/wordnet-classifiedby.rdf.gz','file:///tmp/x/wordnet-entailment.rdf.gz','file:///tmp/x/wordnet-glossary.rdf.gz','file:///tmp/x/wordnet-hyponym.rdf.gz','file:///tmp/x/wordnet-membermeronym.rdf.gz','file:///tmp/x/wordnet-partmeronym.rdf.gz','file:///tmp/x/wordnet-sameverbgroupas.rdf.gz','file:///tmp/x/wordnet-senselabels.rdf.gz','file:///tmp/x/wordnet-similarity.rdf.gz','file:///tmp/x/wordnet-substancemeronym.rdf.gz','file:///tmp/x/wordnet-synset.rdf.gz','file:///tmp/x/wnSkosInScheme.ttl.gz','file:///tmp/x/wnskosmap','file:///tmp/x/wnskosmap.rdfs','file:///tmp/x/wnbasic.rdfs']' does not exist
The definition of wnskosmap in the example is:
<wnskosmap> a lib:Schema ; lib:source wn20s: ; void:dataDump <wnskosmap.rdfs> .
So file:///tmp/x/wnskosmap.rdfs being missing makes sense. What I don’t get is the name file:///tmp/x/wnskosmap in the list. Why is it looking for that? That is the only one tagged as lib:Schema and hence the question.