EntitySchema#

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

Bases: BaseDataType

Implements the Wikibase data type ‘entity-schema’

Constructor, calls the superclass BaseDataType

Parameters:

value (str | int | None, default: None) – The EntitySchema ID to serve 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, the EntitySchema being an entity URI (e.g. http://www.wikidata.org/entity/E10)

Return type:

Self

Returns:

get_sparql_value(**kwargs)[source]#
Return type:

str | None

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

None

DTYPE = 'entity-schema'#
PTYPE = 'http://wikiba.se/ontology#WikibaseEntitySchema'#