Good afternoon,
I'm working with your library SPARQLWrapper in order to collect metadata about Learning Resources.
Some of the endpoints available online are SNORQL Endpoint (
http://comete.licef.ca/snorql/ for example), and SPARQLWrapper does not seem to manage this type of endpoint.
Do you have an idea ?
Here is my script :
from SPARQLWrapper import SPARQLWrapper, JSON
sparql = SPARQLWrapper("
http://comete.licef.ca/snorql/")
sparql.setQuery("""
SELECT DISTINCT ?class
WHERE {?s a ?class }
LIMIT 100
""")
sparql.setReturnFormat(JSON)
results = sparql.query().convert()
for result in results["results"]["bindings"]:
print (result["class"]["value"])
Thank you for your help,
Clement Xu