A collection of EntitySource objects.
More...
A collection of EntitySource objects.
Allows looking up an EntitySource object for a given entity type.
- Copyright
- GPL-2.0-or-later
◆ __construct()
Wikibase\DataAccess\EntitySourceDefinitions::__construct |
( |
array |
$sources, |
|
|
EntityTypeDefinitions |
$entityTypeDefinitions |
|
) |
| |
- Parameters
-
EntitySource[] | $sources | with unique names. An single entity type can not be used in two different sources. |
EntityTypeDefinitions | $entityTypeDefinitions | |
◆ assertNoDuplicateSourcesOrEntityTypes()
Wikibase\DataAccess\EntitySourceDefinitions::assertNoDuplicateSourcesOrEntityTypes |
( |
array |
$sources | ) |
|
|
private |
◆ buildEntityTypeToSourceMapping()
Wikibase\DataAccess\EntitySourceDefinitions::buildEntityTypeToSourceMapping |
( |
| ) |
|
|
private |
◆ buildSubEntityTypeMap()
Wikibase\DataAccess\EntitySourceDefinitions::buildSubEntityTypeMap |
( |
EntityTypeDefinitions |
$entityTypeDefinitions | ) |
|
|
private |
◆ getConceptBaseUris()
Wikibase\DataAccess\EntitySourceDefinitions::getConceptBaseUris |
( |
| ) |
|
◆ getEntityTypeToSourceMapping()
Wikibase\DataAccess\EntitySourceDefinitions::getEntityTypeToSourceMapping |
( |
| ) |
|
◆ getRdfNodeNamespacePrefixes()
Wikibase\DataAccess\EntitySourceDefinitions::getRdfNodeNamespacePrefixes |
( |
| ) |
|
◆ getRdfPredicateNamespacePrefixes()
Wikibase\DataAccess\EntitySourceDefinitions::getRdfPredicateNamespacePrefixes |
( |
| ) |
|
◆ getSourceForEntityType()
Wikibase\DataAccess\EntitySourceDefinitions::getSourceForEntityType |
( |
string |
$entityType | ) |
|
- Todo:
- when the same entity type can be provided by multiple source (currently forbidden), this should return all sources
- Parameters
-
string | $entityType | Entity type or sub type |
- Returns
- EntitySource|null EntitySource or null if no EntitySource configured for the type
◆ getSources()
Wikibase\DataAccess\EntitySourceDefinitions::getSources |
( |
| ) |
|
◆ $entityTypeToSourceMapping
Wikibase\DataAccess\EntitySourceDefinitions::$entityTypeToSourceMapping = null |
|
private |
◆ $sources
Wikibase\DataAccess\EntitySourceDefinitions::$sources |
|
private |
◆ $sourceToConceptBaseUriMap
Wikibase\DataAccess\EntitySourceDefinitions::$sourceToConceptBaseUriMap = null |
|
private |
◆ $sourceToRdfNodeNamespacePrefixMap
Wikibase\DataAccess\EntitySourceDefinitions::$sourceToRdfNodeNamespacePrefixMap = null |
|
private |
◆ $sourceToRdfPredicateNamespacePrefixMap
Wikibase\DataAccess\EntitySourceDefinitions::$sourceToRdfPredicateNamespacePrefixMap = null |
|
private |
◆ $subEntityTypeMap
Wikibase\DataAccess\EntitySourceDefinitions::$subEntityTypeMap |
|
private |
The documentation for this class was generated from the following file: