I am having trouble getting a sparql describe query to work.  when I have used 
a sample set from DBpedia.org, the program (below) has given a result, but when 
i have used sample in localhost the result conatin error.

 the file (.owl) in the localhost : http://localhost/exemple.owl)
i defined the localhots like thise : command : c:/pyhon34/python -m http.server 
dans le repertoire c:/application wich contain the hhtp server.

the program :

from SPARQLWrapper import SPARQLWrapper, RDF, JSON, POST, SELECT
result= "http://localhost:8000";;


sparql = SPARQLWrapper(result)
sparql.setQuery("""
                SELECT ?a ?b WHERE{ ?a rdfs:subClassOf  ?b }
                """)
sparql.setReturnFormat(JSON)

results = sparql.query().convert()
print(results)

-- 
http://github.com/RDFLib
--- 
You received this message because you are subscribed to the Google Groups 
"rdflib-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rdflib-dev/fbd7c006-ce8b-4481-bab9-4beebb563c25%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to