Wikibase
MediaWiki Wikibase extension
|
Interface for an RDF mapping for wikibase entities. More...
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. | |
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.
Wikibase\Repo\Rdf\EntityRdfBuilder::addEntity | ( | EntityDocument | $entity | ) |
Map some aspect of an Entity to the RDF graph.
EntityDocument | $entity | the 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.
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.
EntityDocument | $entity | the 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.