I am having trouble getting a sparql describe query to work. WHEn i have used
the sample give not a result .
the program :
my_data ='c:/wamp/www/onto-hadith261117.owl'
import rdflib
import tempfile
import os
fd, file_name = tempfile.mkstemp()
f = os.fdopen(fd, 'w')
dummy = f.write(my_data) # Returns num bytes written on py3
f.close()
g = rdflib.Graph()
import rdflib
import xml.sax
from xml.sax.handler import ContentHandler,EntityResolver,DTDHandler
subjects= g.query(
"""
SELECT ?a ?b WHERE{ ?a rdfs:sugcghdbClassOf ?b } """)
print("sub",subjects)
execution result :
sub <rdflib.plugins.sparql.processor.SPARQLResult object at 0x03AB0C70>
--
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/44bc3deb-c321-4a8d-bd10-c6cd0561c67d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.