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)