Wikibase
MediaWiki Wikibase extension
|
RDF mapping for StringValues that are interpreted as external identifiers. More...
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 | |
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.
Wikibase\Repo\Rdf\Values\ExternalIdentifierRdfBuilder::__construct | ( | RdfVocabulary | $rdfVocabulary, |
PropertyInfoProvider | $uriPatternProvider | ||
) |
Wikibase\Repo\Rdf\Values\ExternalIdentifierRdfBuilder::addValue | ( | RdfWriter | $writer, |
$propertyValueNamespace, | |||
$propertyValueLName, | |||
$dataType, | |||
$snakNamespace, | |||
PropertyValueSnak | $snak | ||
) |
RdfWriter | $writer | |
string | $propertyValueNamespace | Property value relation namespace |
string | $propertyValueLName | Property value relation name |
string | $dataType | Property data type |
PropertyValueSnak | $snak |
Implements Wikibase\Repo\Rdf\ValueSnakRdfBuilder.
|
private |
StringValue | $value |
|
private |
|
private |