|
| addDescriptions ( $entityNamespace, $entityLName, array $descriptions) |
| Adds the descriptions of the given entity to the RDF graph.
|
|
| getLabelPredicates (string $entityType) |
| Get predicates that will be used for labels.
|
|
| addLabels ( $entityNamespace, $entityLName, array $labels, array $labelPredicates) |
| Adds the labels of the given entity to the RDF graph.
|
|
| prefetchEntityStubData () |
|
- Copyright
- GPL-2.0-or-later
◆ __construct()
Wikibase\Repo\Rdf\ItemStubRdfBuilder::__construct |
( |
PrefetchingTermLookup | $termLookup, |
|
|
RdfVocabulary | $vocabulary, |
|
|
RdfWriter | $writer, |
|
|
array | $labelPredicates, |
|
|
array | $languageCodes ) |
ItemStubRdfBuilder constructor.
- Parameters
-
PrefetchingTermLookup | $termLookup | |
RdfVocabulary | $vocabulary | |
RdfWriter | $writer | |
string[][][] | $labelPredicates | Map of type to array of [ ns, local ] for each label predicate |
string[] | $languageCodes | |
◆ addDescriptions()
Wikibase\Repo\Rdf\ItemStubRdfBuilder::addDescriptions |
( |
| $entityNamespace, |
|
|
| $entityLName, |
|
|
array | $descriptions ) |
|
private |
Adds the descriptions of the given entity to the RDF graph.
- Parameters
-
string | $entityNamespace | |
string | $entityLName | |
string[] | $descriptions | |
◆ addEntityStub()
Wikibase\Repo\Rdf\ItemStubRdfBuilder::addEntityStub |
( |
EntityId | $id | ) |
|
Map some aspect of an Entity to the RDF graph, as it should appear in the stub representation of an entity.
- Parameters
-
EntityId | $id | the entity that the rdfbuilder will add stub data to the graph of. |
Implements Wikibase\Repo\Rdf\EntityStubRdfBuilder.
◆ addLabels()
Wikibase\Repo\Rdf\ItemStubRdfBuilder::addLabels |
( |
| $entityNamespace, |
|
|
| $entityLName, |
|
|
array | $labels, |
|
|
array | $labelPredicates ) |
|
private |
Adds the labels of the given entity to the RDF graph.
- Parameters
-
string | $entityNamespace | |
string | $entityLName | |
array | $labels | |
string[][] | $labelPredicates | array of [ ns, local ] for each label predicate |
◆ getLabelPredicates()
Wikibase\Repo\Rdf\ItemStubRdfBuilder::getLabelPredicates |
( |
string | $entityType | ) |
|
|
private |
Get predicates that will be used for labels.
- Parameters
-
- Returns
- string[][] array of [ ns, local ] for each label predicate
◆ markForPrefetchingEntityStub()
Wikibase\Repo\Rdf\ItemStubRdfBuilder::markForPrefetchingEntityStub |
( |
EntityId | $id | ) |
|
◆ prefetchEntityStubData()
Wikibase\Repo\Rdf\ItemStubRdfBuilder::prefetchEntityStubData |
( |
| ) |
|
|
private |
◆ $idsToPrefetch
Wikibase\Repo\Rdf\ItemStubRdfBuilder::$idsToPrefetch = [] |
|
private |
◆ $labelPredicates
array Wikibase\Repo\Rdf\ItemStubRdfBuilder::$labelPredicates |
|
private |
◆ $languageCodes
array Wikibase\Repo\Rdf\ItemStubRdfBuilder::$languageCodes |
|
private |
◆ $termLookup
◆ $vocabulary
◆ $writer
RdfWriter Wikibase\Repo\Rdf\ItemStubRdfBuilder::$writer |
|
private |
The documentation for this class was generated from the following file: