Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Rdf\EntityRdfBuilder Interface Reference

Interface for an RDF mapping for wikibase entities. More...

+ Inheritance diagram for Wikibase\Repo\Rdf\EntityRdfBuilder:

Public Member Functions

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

Detailed Description

Interface for an RDF mapping for wikibase entities.

It's up to the implementation to decide which aspects of the provided entities it will output to RDF.

Author
Daniel Kinzler
Stas Malyshev

Member Function Documentation

◆ addEntity()

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

◆ addEntityStub()

Wikibase\Repo\Rdf\EntityRdfBuilder::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.

Implemented in Wikibase\Repo\Rdf\FullStatementRdfBuilder, Wikibase\Repo\Rdf\NullEntityRdfBuilder, Wikibase\Repo\Rdf\PropertyRdfBuilder, Wikibase\Repo\Rdf\RdfBuilder, Wikibase\Repo\Rdf\SiteLinksRdfBuilder, Wikibase\Repo\Rdf\TermsRdfBuilder, and Wikibase\Repo\Rdf\TruthyStatementRdfBuilder.


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