Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\DataAccess\DatabaseEntitySource Class Reference
+ Inheritance diagram for Wikibase\DataAccess\DatabaseEntitySource:
+ Collaboration diagram for Wikibase\DataAccess\DatabaseEntitySource:

Public Member Functions

 __construct ( $name, $databaseName, array $entityNamespaceIdsAndSlots, $conceptBaseUri, $rdfNodeNamespacePrefix, $rdfPredicateNamespacePrefix, $interwikiPrefix)
 
 getDatabaseName ()
 
 getSourceName ()
 
 getEntityTypes ()
 
 getEntityNamespaceIds ()
 
 getEntitySlotNames ()
 
 getConceptBaseUri ()
 
 getRdfNodeNamespacePrefix ()
 
 getRdfPredicateNamespacePrefix ()
 
 getInterwikiPrefix ()
 
 getType ()
 

Public Attributes

const TYPE = 'db'
 

Private Member Functions

 setEntityTypeData (array $entityNamespaceIdsAndSlots)
 

Private Attributes

 $sourceName
 
 $databaseName
 
 $entityTypes = []
 
 $entityNamespaceIds = []
 
 $entitySlots = []
 
 $conceptBaseUri
 
 $rdfNodeNamespacePrefix
 
 $rdfPredicateNamespacePrefix
 
 $interwikiPrefix
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\DataAccess\DatabaseEntitySource::__construct (   $name,
  $databaseName,
array  $entityNamespaceIdsAndSlots,
  $conceptBaseUri,
  $rdfNodeNamespacePrefix,
  $rdfPredicateNamespacePrefix,
  $interwikiPrefix 
)
Parameters
string$nameUnique 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$databaseNameThe name of the database to use (use false for the local db)
array<string,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

Member Function Documentation

◆ getConceptBaseUri()

Wikibase\DataAccess\DatabaseEntitySource::getConceptBaseUri ( )

◆ getDatabaseName()

Wikibase\DataAccess\DatabaseEntitySource::getDatabaseName ( )
Returns
string|false The name of the database to use (use false for the local db)

◆ getEntityNamespaceIds()

Wikibase\DataAccess\DatabaseEntitySource::getEntityNamespaceIds ( )

◆ getEntitySlotNames()

Wikibase\DataAccess\DatabaseEntitySource::getEntitySlotNames ( )

◆ getEntityTypes()

Wikibase\DataAccess\DatabaseEntitySource::getEntityTypes ( )

◆ getInterwikiPrefix()

Wikibase\DataAccess\DatabaseEntitySource::getInterwikiPrefix ( )

◆ getRdfNodeNamespacePrefix()

Wikibase\DataAccess\DatabaseEntitySource::getRdfNodeNamespacePrefix ( )

◆ getRdfPredicateNamespacePrefix()

Wikibase\DataAccess\DatabaseEntitySource::getRdfPredicateNamespacePrefix ( )

◆ getSourceName()

Wikibase\DataAccess\DatabaseEntitySource::getSourceName ( )

◆ getType()

Wikibase\DataAccess\DatabaseEntitySource::getType ( )

◆ setEntityTypeData()

Wikibase\DataAccess\DatabaseEntitySource::setEntityTypeData ( array  $entityNamespaceIdsAndSlots)
private

Member Data Documentation

◆ $conceptBaseUri

Wikibase\DataAccess\DatabaseEntitySource::$conceptBaseUri
private

◆ $databaseName

Wikibase\DataAccess\DatabaseEntitySource::$databaseName
private

◆ $entityNamespaceIds

Wikibase\DataAccess\DatabaseEntitySource::$entityNamespaceIds = []
private

◆ $entitySlots

Wikibase\DataAccess\DatabaseEntitySource::$entitySlots = []
private

◆ $entityTypes

Wikibase\DataAccess\DatabaseEntitySource::$entityTypes = []
private

◆ $interwikiPrefix

Wikibase\DataAccess\DatabaseEntitySource::$interwikiPrefix
private

◆ $rdfNodeNamespacePrefix

Wikibase\DataAccess\DatabaseEntitySource::$rdfNodeNamespacePrefix
private

◆ $rdfPredicateNamespacePrefix

Wikibase\DataAccess\DatabaseEntitySource::$rdfPredicateNamespacePrefix
private

◆ $sourceName

Wikibase\DataAccess\DatabaseEntitySource::$sourceName
private

◆ TYPE

const Wikibase\DataAccess\DatabaseEntitySource::TYPE = 'db'

The documentation for this class was generated from the following file: