RDF mapping for entity terms.
More...
|
| __construct (RdfVocabulary $vocabulary, RdfWriter $writer, array $labelPredicates=[], array $languages=null) |
|
| addEntity (EntityDocument $entity) |
| Add the entity's labels, descriptions, and aliases to the RDF graph.
|
|
| addEntityStub (EntityDocument $entity) |
| Add the entity's labels and descriptions to the RDF graph.
|
|
|
| getLabelPredicates (EntityDocument $entity) |
| Get predicates that will be used for labels.
|
|
| addLabels ( $entityNamespace, $entityLName, TermList $labels, array $labelPredicates) |
| Adds the labels of the given entity to the RDF graph.
|
|
| addDescriptions ( $entityNamespace, $entityLName, TermList $descriptions) |
| Adds the descriptions of the given entity to the RDF graph.
|
|
RDF mapping for entity terms.
- Copyright
- GPL-2.0-or-later
◆ __construct()
Wikibase\Repo\Rdf\TermsRdfBuilder::__construct |
( |
RdfVocabulary |
$vocabulary, |
|
|
RdfWriter |
$writer, |
|
|
array |
$labelPredicates = [] , |
|
|
array |
$languages = null |
|
) |
| |
- Parameters
-
RdfVocabulary | $vocabulary | |
RdfWriter | $writer | |
string[][][] | $labelPredicates | Map of type to array of [ ns, local ] for each label predicate |
string[] | null | $languages | |
◆ addDescriptions()
Wikibase\Repo\Rdf\TermsRdfBuilder::addDescriptions |
( |
|
$entityNamespace, |
|
|
|
$entityLName, |
|
|
TermList |
$descriptions |
|
) |
| |
|
private |
Adds the descriptions of the given entity to the RDF graph.
- Parameters
-
string | $entityNamespace | |
string | $entityLName | |
TermList | $descriptions | |
◆ addEntity()
Wikibase\Repo\Rdf\TermsRdfBuilder::addEntity |
( |
EntityDocument |
$entity | ) |
|
Add the entity's labels, descriptions, and aliases to the RDF graph.
- See also
- EntityRdfBuilder::addEntity
- Parameters
-
EntityDocument | $entity | the entity to output. PhanTypeMismatchArgument |
Implements Wikibase\Repo\Rdf\EntityRdfBuilder.
◆ addEntityStub()
Wikibase\Repo\Rdf\TermsRdfBuilder::addEntityStub |
( |
EntityDocument |
$entity | ) |
|
Add the entity's labels and descriptions to the RDF graph.
- See also
- EntityRdfBuilder::addEntityStub
- Parameters
-
EntityDocument | $entity | the entity to output. PhanTypeMismatchArgument |
Implements Wikibase\Repo\Rdf\EntityRdfBuilder.
◆ addLabels()
Wikibase\Repo\Rdf\TermsRdfBuilder::addLabels |
( |
|
$entityNamespace, |
|
|
|
$entityLName, |
|
|
TermList |
$labels, |
|
|
array |
$labelPredicates |
|
) |
| |
|
private |
Adds the labels of the given entity to the RDF graph.
- Parameters
-
string | $entityNamespace | |
string | $entityLName | |
TermList | $labels | |
string[][] | $labelPredicates | array of [ ns, local ] for each label predicate |
◆ getLabelPredicates()
Wikibase\Repo\Rdf\TermsRdfBuilder::getLabelPredicates |
( |
EntityDocument |
$entity | ) |
|
|
private |
Get predicates that will be used for labels.
- Parameters
-
- Returns
- string[][] array of [ ns, local ] for each label predicate
◆ $labelPredicates
Wikibase\Repo\Rdf\TermsRdfBuilder::$labelPredicates |
|
private |
◆ $languages
Wikibase\Repo\Rdf\TermsRdfBuilder::$languages |
|
private |
◆ $vocabulary
Wikibase\Repo\Rdf\TermsRdfBuilder::$vocabulary |
|
private |
◆ $writer
Wikibase\Repo\Rdf\TermsRdfBuilder::$writer |
|
private |
The documentation for this class was generated from the following file: