The examples in the documentation suggest that I set the SPARQL endpoint in the following way:
sparql = SPARQLWrapper("http://dbpedia.org/sparql")
Is there any way I can use SPARQLwrapper to search through a local copy of DBPedia rdf dataset?
The examples in the documentation suggest that I set the SPARQL endpoint in the following way:
sparql = SPARQLWrapper("http://dbpedia.org/sparql")
Is there any way I can use SPARQLwrapper to search through a local copy of DBPedia rdf dataset?
The argument of the SPARQLWrapper()
call is not DBpedia, per se (even though it may look like it), but a SPARQL endpoint.
Change http://dbpedia.org/sparql
to your local SPARQL endpoint, e.g., http://local-dbpedia.example.com/sparql
... and you should be set.
sparql = SPARQLWrapper("http://local-dbpedia.example.com/sparql")