Reputation: 2805
I am trying to set up dbpedia sparql endpoint locally with the help of virtuoso triple store. I followed two links.
from these links. I followed the configurations according to the second link and I tried to load the data only from "en" folder and dbpedia-owl.owl file into "en" folder itself. I tried to load this en folder with the following command onto isql
ld_dir_all('/media/D8849AB0849A911C/datasets/en','*','http://dbpedia.org');
I did the further processing for committing this data. Then checked the data onto the local endpoint "localhost:8890/sparql". But the prefix "dbpedia-owl" seems to be missing. I also checked into the list of "namespace prefixes". but "dbpedia-owl" seems to be missing. What did i do wrong while loading the data? Also I tried to add dbpedia-owl.gz file too. But the "dbpedia-owl" still doesnt seems to work on the endpoint.
when i tried to query this
select ?type {
?type a owl:Class .
} LIMIT 5
I got the result as
type
http://www.w3.org/2002/07/owl#Thing
http://www.w3.org/2002/07/owl#Nothing
http://dbpedia.org/ontology/Abbey
http://dbpedia.org/ontology/Abbey
http://dbpedia.org/ontology/AcademicJournal
So this result shows the data from ontology file. But the "dbpedia-owl" is not getting linked to this ontology file. Help is appreciated.
Upvotes: 1
Views: 1028
Reputation: 1171
This is a very late answer, but I stumbled across this question...
As far as I know, you loaded the ontology into virtuoso (so the classes and properties definitions are available in the DB), but this is different from defining a prefix and associating it with an URL.
If you want to do the later programmatically, just use :
DB.DBA.XML_SET_NS_DECL ('dbpedia-owl', 'http://dbpedia.org/ontology/', 2);
This just tell to virtuoso that, locally, the dbpedia-owl prefix will be used to denote the dbpedia ontology URL. There is now such thing as an universal prefix, hence you may also want to use any other prefix like dbpo
or whatever you see fit on your local virtuoso server.
Upvotes: 0