From: Sergio F. <ser...@fu...> - 2011-01-28 14:02:17
|
Dear William, thanks for you patches! This was an old feature request (http://bit.ly/he1tvo), finally solved :-) RDFLib3 is now supported on the svn, and we plan to publish a new release (1.4.2) in the next couple of hours. Cheers, On 27 January 2011 20:15, William Waites <ww...@st...> wrote: > Hello SparqlWrapper folks. Attached is a trivial patch > that lets the SparqlWrapper work with rdflib3. This seems > to be a blocking issue for SuRFRDF and is also preventing > Chimezie's RemoteSPARQLStore from being ported to rdflib3. > > A "test" to exercise the code seems to work just fine, > > from SPARQLWrapper import SPARQLWrapper, JSON > > sparql = SPARQLWrapper("http://dbpedia.org/sparql") > sparql.setQuery(""" > PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> > CONSTRUCT { <http://dbpedia.org/resource/Asturias> rdfs:label ?label } > WHERE { <http://dbpedia.org/resource/Asturias> rdfs:label ?label } > """) > results = sparql.query().convert() > print results.serialize(format="n3") > > Cheers, > -w > > -- > William Waites <mailto:ww...@st...> > http://eris.okfn.org/ww/ <sip:ww...@st...> > F4B3 39BF E775 CF42 0BAB 3DF0 BE40 A6DF B06F FD45 > -- Sergio Fernández CTIC - Technological Center Parque Científico y Tecnológico de Gijón C/ Ada Byron, 39 Edificio Centros Tecnológicos 33203 Gijón - Asturias - Spain Tel.: +34 984 29 12 12 Fax: +34 984 39 06 12 E-mail: ser...@fu... http://www.fundacionctic.org Privacy Policy: http://www.fundacionctic.org/privacidad |