EntitySchema#
- class wikibaseintegrator.datatypes.entityschema.EntitySchema(value=None, **kwargs)[source]#
Bases:
BaseDataTypeImplements the Wikibase data type ‘entity-schema’
Constructor, calls the superclass BaseDataType
- 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:
- Returns:
- DTYPE = 'entity-schema'#
- PTYPE = 'http://wikiba.se/ontology#WikibaseEntitySchema'#