String#

class wikibaseintegrator.datatypes.string.String(value=None, **kwargs)[source]#

Bases: BaseDataType

Implements the Wikibase data type ‘string’

Constructor, calls the superclass BaseDataType

Parameters:

value (str | None, default: None) – The string to be used as the value

from_sparql_value(sparql_value)[source]#

Parse data returned by a SPARQL endpoint and set the value to the object

Parameters:

sparql_value (dict) – A SPARQL value composed of type and value

Return type:

Self

Returns:

set_value(value=None)[source]#
Return type:

None

DTYPE = 'string'#
PTYPE = 'http://wikiba.se/ontology#String'#