Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Rdf\SnakRdfBuilder Class Reference

Implementation for RDF mapping for Snaks. More...

Public Member Functions

 __construct (RdfVocabulary $vocabulary, ValueSnakRdfBuilder $valueBuilder, PropertyDataTypeLookup $propertyLookup)
 
 getEntityMentionListener ()
 
 setEntityMentionListener (EntityMentionListener $mentionedEntityTracker)
 

Private Member Functions

 addSnakValue (RdfWriter $writer, $snakNamespace, PropertyValueSnak $snak, $propertyNamespace)
 Adds the value of the given property to the RDF graph.
 

Private Attributes

 $mentionedEntityTracker
 
 $vocabulary
 
 $valueBuilder
 
 $propertyLookup
 
 $propertyTypes = []
 

Detailed Description

Implementation for RDF mapping for Snaks.

Author
Daniel Kinzler
Stas Malyshev

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Rdf\SnakRdfBuilder::__construct ( RdfVocabulary  $vocabulary,
ValueSnakRdfBuilder  $valueBuilder,
PropertyDataTypeLookup  $propertyLookup 
)

Member Function Documentation

◆ addSnakValue()

Wikibase\Repo\Rdf\SnakRdfBuilder::addSnakValue ( RdfWriter  $writer,
  $snakNamespace,
PropertyValueSnak  $snak,
  $propertyNamespace 
)
private

Adds the value of the given property to the RDF graph.

Parameters
RdfWriter$writer
string$snakNamespace
PropertyValueSnak$snak
string$propertyNamespaceThe property namespace for this snak

◆ getEntityMentionListener()

Wikibase\Repo\Rdf\SnakRdfBuilder::getEntityMentionListener ( )
Returns
EntityMentionListener

◆ setEntityMentionListener()

Wikibase\Repo\Rdf\SnakRdfBuilder::setEntityMentionListener ( EntityMentionListener  $mentionedEntityTracker)

Member Data Documentation

◆ $mentionedEntityTracker

Wikibase\Repo\Rdf\SnakRdfBuilder::$mentionedEntityTracker
private

◆ $propertyLookup

Wikibase\Repo\Rdf\SnakRdfBuilder::$propertyLookup
private

◆ $propertyTypes

Wikibase\Repo\Rdf\SnakRdfBuilder::$propertyTypes = []
private

◆ $valueBuilder

Wikibase\Repo\Rdf\SnakRdfBuilder::$valueBuilder
private

◆ $vocabulary

Wikibase\Repo\Rdf\SnakRdfBuilder::$vocabulary
private

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