You cannot use Snorql directly, but Snorql applications, like RDFLib, use a 
sparql endpoint internally.
It should be easy to find the sparql endpoint in the javascript; in this case,
http://comete.licef.ca:8088/sparql/
found in http://comete.licef.ca/snorql/snorql.js 
<http://comete.licef.ca/snorql/snorql.js>
Best,
Marc-Antoine

> Le 12 mai 2017 à 12:15, xu.c...@gmail.com a écrit :
> 
> 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
> 
> 
> -- 
> 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 rdflib-dev+unsubscr...@googlegroups.com.
> To post to this group, send email to rdflib-dev@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/rdflib-dev/bdf92f9e-6076-4577-a371-6a59c147707c%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 rdflib-dev+unsubscr...@googlegroups.com.
To post to this group, send email to rdflib-dev@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rdflib-dev/99445485-B09D-4B08-B524-AB89B55A976C%40acm.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to