Surf SPARQL Protocol + SPARQL Wrapper 1.5.1

15 views
Skip to first unread message

Ícaro Medeiros

unread,
Aug 3, 2012, 9:41:26 AM8/3/12
to sur...@googlegroups.com
Hello,

There is a problem using Surf SPARQL Protocol library 1.0.0-r362 and SPARQL Wrapper 1.5.1

Surf SPARQL Protocol initializes a Wrapper instances like this:

self.__results_format = JSON
self.__sparql_wrapper = SPARQLWrapper(self.__endpoint, self.__results_format)
 
But in SPARQL Wrapper 1.5.1 the constructor changes its parameters to:

def __init__(self,endpoint,updateEndpoint=None,returnFormat=XML,defaultGraph=None,agent=__agent__) :

Therefore, return format is now XML instead of JSON, for example.

--
Best regards,

Ícaro Medeiros.

--------------------------------
(+55 21 2483 6928 / +55 21 8327 0069)
Software Developer at Globo.com (Search & Semantics Team)
PhD Candidate - Pontifical Catholic University of Rio de Janeiro
MSc - Federal University of Pernambuco (www.cin.ufpe.br)
BSc - Federal University of Alagoas (www.ufal.br)
@icaromedeiros

== Scientia Vincere Tenebras ==

Cosmin Basca

unread,
Aug 3, 2012, 10:27:29 AM8/3/12
to sur...@googlegroups.com
Hi Icaro,

use the latest in trunk for now (until a new release of SuRF is prepared), initialization of SparqlWrapper is according to 1.5.1 API. Hope this fixes the issue for you.

Cheers,
Cosmin
Reply all
Reply to author
Forward
0 new messages