Wikibase
MediaWiki Wikibase extension
|
A collection of EntitySource objects. More...
Public Member Functions | |
__construct (array $sources, SubEntityTypesMapper $subEntityTypesMapper) | |
getSources () | |
getDatabaseSourceForEntityType (string $entityType) | |
getApiSourceForEntityType (string $entityType) | |
As of Federated Properties v2 there is only one source of federation per entity type, so returning a single EntitySource is ok. | |
getEntityTypeToDatabaseSourceMapping () | |
getConceptBaseUris () | |
getRdfNodeNamespacePrefixes () | |
getRdfPredicateNamespacePrefixes () | |
Private Member Functions | |
assertNoDuplicateSourcesOrEntityTypes (array $sources) | |
buildEntityTypeToDatabaseSourceMapping () | |
Private Attributes | |
$sources | |
$entityTypeToDatabaseSourceMapping = null | |
$sourceToConceptBaseUriMap = null | |
$sourceToRdfNodeNamespacePrefixMap = null | |
$sourceToRdfPredicateNamespacePrefixMap = null | |
$subEntityTypesMapper | |
A collection of EntitySource objects.
Allows looking up an EntitySource object for a given entity type.
Wikibase\DataAccess\EntitySourceDefinitions::__construct | ( | array | $sources, |
SubEntityTypesMapper | $subEntityTypesMapper ) |
EntitySource[] | $sources | with unique names. An single entity type can not be used in two different sources. |
SubEntityTypesMapper | $subEntityTypesMapper |
|
private |
EntitySource[] | $sources |
|
private |
Wikibase\DataAccess\EntitySourceDefinitions::getApiSourceForEntityType | ( | string | $entityType | ) |
As of Federated Properties v2 there is only one source of federation per entity type, so returning a single EntitySource is ok.
Wikibase\DataAccess\EntitySourceDefinitions::getConceptBaseUris | ( | ) |
Wikibase\DataAccess\EntitySourceDefinitions::getDatabaseSourceForEntityType | ( | string | $entityType | ) |
string | $entityType | Entity type or sub type |
Wikibase\DataAccess\EntitySourceDefinitions::getEntityTypeToDatabaseSourceMapping | ( | ) |
Wikibase\DataAccess\EntitySourceDefinitions::getRdfNodeNamespacePrefixes | ( | ) |
Wikibase\DataAccess\EntitySourceDefinitions::getRdfPredicateNamespacePrefixes | ( | ) |
Wikibase\DataAccess\EntitySourceDefinitions::getSources | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |