Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\Rdf\NullEntityRdfBuilder Class Reference

Null implementation of EntityRdfBuilder. More...

+ Inheritance diagram for Wikibase\Repo\Rdf\NullEntityRdfBuilder:
+ Collaboration diagram for Wikibase\Repo\Rdf\NullEntityRdfBuilder:

Public Member Functions

 addEntity (EntityDocument $entity)
 Map some aspect of an Entity to the RDF graph. More...
 
 addEntityStub (EntityDocument $entity)
 Map some aspect of an Entity to the RDF graph, as it should appear in the stub representation of an entity. More...
 

Detailed Description

Null implementation of EntityRdfBuilder.

Author
Amir Sarabadani ladsg.nosp@m.roup.nosp@m.@gmai.nosp@m.l.co.nosp@m.m

Member Function Documentation

◆ addEntity()

Wikibase\Repo\Rdf\NullEntityRdfBuilder::addEntity ( EntityDocument  $entity)

Map some aspect of an Entity to the RDF graph.

Parameters
EntityDocument$entitythe entity to output.

Implements Wikibase\Repo\Rdf\EntityRdfBuilder.

◆ addEntityStub()

Wikibase\Repo\Rdf\NullEntityRdfBuilder::addEntityStub ( EntityDocument  $entity)

Map some aspect of an Entity to the RDF graph, as it should appear in the stub representation of an entity.

The implementation of this method will often be empty, since most aspects of an entity should not be included in the stub representation. Typically, the stub only contains basic type information and labels, for use by RDF modelling tools.

Parameters
EntityDocument$entitythe entity to output.

Implements Wikibase\Repo\Rdf\EntityRdfBuilder.


The documentation for this class was generated from the following file: