|
Wikibase
MediaWiki Wikibase extension
|
An EntitySource includes information needed to interact with one or more entity types at a given source. More...
Public Member Functions | |
| __construct ( $name, $databaseName, array $entityNamespaceIdsAndSlots, $conceptBaseUri, $rdfNodeNamespacePrefix, $rdfPredicateNamespacePrefix, $interwikiPrefix) | |
| getDatabaseName () | |
| getSourceName () | |
| getEntityTypes () | |
| getEntityNamespaceIds () | |
| getEntitySlotNames () | |
| getConceptBaseUri () | |
| getRdfNodeNamespacePrefix () | |
| getRdfPredicateNamespacePrefix () | |
| getInterwikiPrefix () | |
Private Member Functions | |
| assertEntityNamespaceIdsAndSlots (array $entityNamespaceIdsAndSlots) | |
| setEntityTypeData (array $entityNamespaceIdsAndSlots) | |
Private Attributes | |
| $sourceName | |
| $databaseName | |
| $entityTypes | |
| $entityNamespaceIds | |
| $entitySlots | |
| $conceptBaseUri | |
| $rdfNodeNamespacePrefix | |
| $rdfPredicateNamespacePrefix | |
| $interwikiPrefix | |
An EntitySource includes information needed to interact with one or more entity types at a given source.
EntitySource can only currently be used via direct database access.
| Wikibase\DataAccess\EntitySource::__construct | ( | $name, | |
| $databaseName, | |||
| array | $entityNamespaceIdsAndSlots, | ||
| $conceptBaseUri, | |||
| $rdfNodeNamespacePrefix, | |||
| $rdfPredicateNamespacePrefix, | |||
| $interwikiPrefix | |||
| ) |
| string | $name | Unique name for the source for a given configuration / site, used for indexing the sources internally. This does not have to be a wikiname, sitename or dbname, it can for example just be 'properties'. |
| string | false | $databaseName | The name of the database to use (use false for the local db) |
| array | $entityNamespaceIdsAndSlots | Associative array indexed by entity type (string), values are array of form [ 'namespaceId' => int, 'slot' => string ] |
| string | $conceptBaseUri | |
| string | $rdfNodeNamespacePrefix | |
| string | $rdfPredicateNamespacePrefix | |
| string | $interwikiPrefix |
|
private |
| Wikibase\DataAccess\EntitySource::getConceptBaseUri | ( | ) |
| Wikibase\DataAccess\EntitySource::getDatabaseName | ( | ) |
| Wikibase\DataAccess\EntitySource::getEntityNamespaceIds | ( | ) |
| Wikibase\DataAccess\EntitySource::getEntitySlotNames | ( | ) |
| Wikibase\DataAccess\EntitySource::getEntityTypes | ( | ) |
| Wikibase\DataAccess\EntitySource::getInterwikiPrefix | ( | ) |
| Wikibase\DataAccess\EntitySource::getRdfNodeNamespacePrefix | ( | ) |
| Wikibase\DataAccess\EntitySource::getRdfPredicateNamespacePrefix | ( | ) |
| Wikibase\DataAccess\EntitySource::getSourceName | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |