|
From: Sergio F. <ser...@fu...> - 2009-05-05 08:49:26
|
On Mon, 2009-05-04 at 13:18 +0200, Ivan Herman wrote:
> Sounds like a good idea!
Actually it looks closely at the method addExtraURITag():
def addExtraURITag(self,key,value) :
"""
Some SPARQL endpoints require extra key value pairs.
E.g., in virtuoso, one would add C{should-sponge=soft}
to the query forcing virtuoso to retrieve graphs that
are not stored in its local database.
@param key: key of the query part
@type key: string
@param value: value of the query part
@type value: string
"""
self._querytext.append((key,value))
I don't remeber that we already have it in the wrapper. That _querytext
is appended before make the http request. And addDefaultGraph() and
addNamedGraph() methods internally use it.
So... I can manage to do want I want with the current API. But, do we
want to keep the current API or do we want to change it? I'm not sure if
people is using addExtraURITag()... and I'm not sure which one shoud be
easier to use.
Ivan, carlos, what do you think?
Cheers,
--
Sergio Fernández - ser...@fu...
R&D Deparment
CTIC Foundation - www.fundacionctic.org
Phone: +34 984 29 12 12
Fax: +34 984 39 06 12
Edificio Centros Tecnológicos
Parque Científico Tecnológico
33203 Cabueñes - Gijón - Asturias - Spain
|