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

RDF mapping for StringValues that are interpreted as external identifiers. More...

+ Inheritance diagram for Wikibase\Repo\Rdf\Values\ExternalIdentifierRdfBuilder:
+ Collaboration diagram for Wikibase\Repo\Rdf\Values\ExternalIdentifierRdfBuilder:

Public Member Functions

 __construct (RdfVocabulary $rdfVocabulary, PropertyInfoProvider $uriPatternProvider)
 
 addValue (RdfWriter $writer, $propertyValueNamespace, $propertyValueLName, $dataType, $snakNamespace, PropertyValueSnak $snak)
 

Private Member Functions

 getValueId (StringValue $value)
 

Private Attributes

 $uriPatternProvider
 
 $rdfVocabulary
 

Detailed Description

RDF mapping for StringValues that are interpreted as external identifiers.

URIs for the external identifier are generated based on a URI pattern associated with the respective property.

Since
0.5
Author
Daniel Kinzler
Stas Malyshev

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Rdf\Values\ExternalIdentifierRdfBuilder::__construct ( RdfVocabulary  $rdfVocabulary,
PropertyInfoProvider  $uriPatternProvider 
)

Member Function Documentation

◆ addValue()

Wikibase\Repo\Rdf\Values\ExternalIdentifierRdfBuilder::addValue ( RdfWriter  $writer,
  $propertyValueNamespace,
  $propertyValueLName,
  $dataType,
  $snakNamespace,
PropertyValueSnak  $snak 
)
Parameters
RdfWriter$writer
string$propertyValueNamespaceProperty value relation namespace
string$propertyValueLNameProperty value relation name
string$dataTypeProperty data type
PropertyValueSnak$snak

Implements Wikibase\Repo\Rdf\ValueSnakRdfBuilder.

◆ getValueId()

Wikibase\Repo\Rdf\Values\ExternalIdentifierRdfBuilder::getValueId ( StringValue  $value)
private
Parameters
StringValue$value
Returns
string the external ID

Member Data Documentation

◆ $rdfVocabulary

Wikibase\Repo\Rdf\Values\ExternalIdentifierRdfBuilder::$rdfVocabulary
private

◆ $uriPatternProvider

Wikibase\Repo\Rdf\Values\ExternalIdentifierRdfBuilder::$uriPatternProvider
private

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