Semantic MediaWiki and related extensions
Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
SMW\SPARQLStore\SPARQLStore Class Reference
Inheritance diagram for SMW\SPARQLStore\SPARQLStore:
Inheritance graph
[legend]
Collaboration diagram for SMW\SPARQLStore\SPARQLStore:
Collaboration graph
[legend]

Public Member Functions

 __construct (Store $baseStore=null)
 
 getSemanticData (DIWikiPage $subject, $filter=false)
 
 getPropertyValues ( $subject, DIProperty $property, $requestoptions=null)
 
 getPropertySubjects (DIProperty $property, $value, $requestoptions=null)
 
 getAllPropertySubjects (DIProperty $property, $requestoptions=null)
 
 getProperties (DIWikiPage $subject, $requestoptions=null)
 
 getInProperties (DataItem $object, $requestoptions=null)
 
 deleteSubject (Title $subject)
 
 changeTitle (Title $oldtitle, Title $newtitle, $pageid, $redirid=0)
 
 doSparqlDataUpdate (SemanticData $semanticData)
 
 doSparqlDataDelete (DataItem $dataItem)
 
 getQueryResult (Query $query)
 
 getPropertiesSpecial ( $requestoptions=null)
 
 getUnusedPropertiesSpecial ( $requestoptions=null)
 
 getWantedPropertiesSpecial ( $requestoptions=null)
 
 getStatistics ()
 
 refreshConceptCache (Title $concept)
 
 deleteConceptCache ( $concept)
 
 getConceptCacheStatus ( $concept)
 
 service ( $service,... $args)
 
 setup ( $options=true)
 
 drop ( $verbose=true)
 
 refreshData (&$index, $count, $namespaces=false, $usejobs=true)
 
 getPropertyTableInfoFetcher ()
 
 getPropertyTables ()
 
 getObjectIds ()
 
 getPropertyTableIdReferenceFinder ()
 
 clear ()
 
 getInfo ( $type=null)
 
 getConnection ( $type='sparql')
 
- Public Member Functions inherited from SMW\Store
 getSemanticData (DIWikiPage $subject, $filter=false)
 
 getPropertyValues ( $subject, DIProperty $property, $requestoptions=null)
 
 getPropertySubjects (DIProperty $property, $value, $requestoptions=null)
 
 getAllPropertySubjects (DIProperty $property, $requestoptions=null)
 
 getProperties (DIWikiPage $subject, $requestOptions=null)
 
 getInProperties (DataItem $object, $requestoptions=null)
 
 getWikiPageSortKey (DIWikiPage $dataItem)
 
 getRedirectTarget (DataItem $dataItem)
 
 deleteSubject (Title $subject)
 
 updateData (SemanticData $semanticData)
 
 clearData (DIWikiPage $di)
 
 changeTitle (Title $oldtitle, Title $newtitle, $pageid, $redirid=0)
 
 getQueryResult (SMWQuery $query)
 
 getPropertiesSpecial ( $requestoptions=null)
 
 getUnusedPropertiesSpecial ( $requestoptions=null)
 
 getWantedPropertiesSpecial ( $requestoptions=null)
 
 getStatistics ()
 
 service ( $service,... $args)
 
 setup ( $verbose=true)
 
 drop ( $verbose=true)
 
 refreshData (&$index, $count, $namespaces=false, $usejobs=true)
 
 getOptions ()
 
 setOption ( $key, $value)
 
 getOption ( $key, $default=null)
 
 clear ()
 
 getInfo ( $type=null)
 
 setConnectionManager (ConnectionManager $connectionManager)
 
 getConnection ( $type)
 

Static Public Attributes

static $baseStoreClass = 'SMWSQLStore3'
 

Protected Member Functions

 doDataUpdate (SemanticData $semanticData)
 
 fetchQueryResult (Query $query)
 
- Protected Member Functions inherited from SMW\Store
 doDataUpdate (SemanticData $data)
 
 fetchQueryResult (SMWQuery $query)
 

Additional Inherited Members

- Static Public Member Functions inherited from SMW\Store
static setupStore ( $verbose=true, $options=null)
 
- Public Attributes inherited from SMW\Store
const OPT_CREATE_UPDATE_JOB = 'opt.create.update.job'
 
- Protected Attributes inherited from SMW\Store
 $connectionManager = null
 
 $options = null
 

Detailed Description

Storage and query access point for a SPARQL supported RepositoryConnector to enable SMW to communicate with a SPARQL endpoint.

The store uses a base store to update certain aspects of the data that is not yet modelled and supported by a RepositoryConnector, which may become optional in future.

GNU GPL v2+

Since
1.6
Author
Markus Krötzsch

Constructor & Destructor Documentation

◆ __construct()

SMW\SPARQLStore\SPARQLStore::__construct ( Store  $baseStore = null)
Since
1.8
Parameters
Store$baseStore

Member Function Documentation

◆ changeTitle()

SMW\SPARQLStore\SPARQLStore::changeTitle ( Title  $oldtitle,
Title  $newtitle,
  $pageid,
  $redirid = 0 
)
See also
Store::changeTitle()
Since
1.6
Since
2.3 Moved UpdateJob to the base-store to ensurethat both stores operate similar when dealing with redirects
Note
Note that we cannot change oldUri to newUri in triple subjects, since some triples change due to the move.

◆ clear()

SMW\SPARQLStore\SPARQLStore::clear ( )
Since
1.9.2

◆ deleteConceptCache()

SMW\SPARQLStore\SPARQLStore::deleteConceptCache (   $concept)
See also
Store::deleteConceptCache()
Since
1.8

◆ deleteSubject()

SMW\SPARQLStore\SPARQLStore::deleteSubject ( Title  $subject)
See also
Store::deleteSubject()
Since
1.6

◆ doDataUpdate()

SMW\SPARQLStore\SPARQLStore::doDataUpdate ( SemanticData  $semanticData)
protected
See also
Store::doDataUpdate()
Since
1.6

◆ doSparqlDataDelete()

SMW\SPARQLStore\SPARQLStore::doSparqlDataDelete ( DataItem  $dataItem)

Delete a dataitem from the Sparql back-end together with all data that is associated resources

Since
2.0
Parameters
DataItem$dataItem
Returns
boolean

◆ doSparqlDataUpdate()

SMW\SPARQLStore\SPARQLStore::doSparqlDataUpdate ( SemanticData  $semanticData)

Update the Sparql back-end.

This method can be called independently to force an update of the Sparql database. In general it is suggested to use updateData to carry out a synchronized update of the base and Sparql store.

Since
2.0
Parameters
SemanticData$semanticData

◆ drop()

SMW\SPARQLStore\SPARQLStore::drop (   $verbose = true)
See also
Store::drop()
Since
1.6

◆ getAllPropertySubjects()

SMW\SPARQLStore\SPARQLStore::getAllPropertySubjects ( DIProperty  $property,
  $requestoptions = null 
)

◆ getConceptCacheStatus()

SMW\SPARQLStore\SPARQLStore::getConceptCacheStatus (   $concept)
See also
Store::getConceptCacheStatus()
Since
1.8

◆ getConnection()

SMW\SPARQLStore\SPARQLStore::getConnection (   $type = 'sparql')
Since
2.1
Parameters
string$type
Returns
mixed

◆ getInfo()

SMW\SPARQLStore\SPARQLStore::getInfo (   $type = null)
Since
3.0
Parameters
string | null$type
Returns
array

◆ getInProperties()

SMW\SPARQLStore\SPARQLStore::getInProperties ( DataItem  $object,
  $requestoptions = null 
)
See also
Store::getInProperties()
Since
1.8

◆ getObjectIds()

SMW\SPARQLStore\SPARQLStore::getObjectIds ( )
Since
2.3

◆ getProperties()

SMW\SPARQLStore\SPARQLStore::getProperties ( DIWikiPage  $subject,
  $requestoptions = null 
)
See also
Store::getProperties()
Since
1.8

◆ getPropertiesSpecial()

SMW\SPARQLStore\SPARQLStore::getPropertiesSpecial (   $requestoptions = null)

◆ getPropertySubjects()

SMW\SPARQLStore\SPARQLStore::getPropertySubjects ( DIProperty  $property,
  $value,
  $requestoptions = null 
)
See also
Store::getPropertySubjects()
Since
1.8

◆ getPropertyTableIdReferenceFinder()

SMW\SPARQLStore\SPARQLStore::getPropertyTableIdReferenceFinder ( )
Since
2.4

◆ getPropertyTableInfoFetcher()

SMW\SPARQLStore\SPARQLStore::getPropertyTableInfoFetcher ( )
Since
2.5
Returns
PropertyTableInfoFetcher

◆ getPropertyTables()

SMW\SPARQLStore\SPARQLStore::getPropertyTables ( )
Since
2.0

◆ getPropertyValues()

SMW\SPARQLStore\SPARQLStore::getPropertyValues (   $subject,
DIProperty  $property,
  $requestoptions = null 
)
See also
Store::getPropertyValues()
Since
1.8

◆ getQueryResult()

SMW\SPARQLStore\SPARQLStore::getQueryResult ( Query  $query)
Note
Move hooks to the base class in 3.*
See also
Store::getQueryResult
Since
1.6

Implements SMW\QueryEngine.

◆ getSemanticData()

SMW\SPARQLStore\SPARQLStore::getSemanticData ( DIWikiPage  $subject,
  $filter = false 
)
See also
Store::getSemanticData()
Since
1.8

◆ getStatistics()

SMW\SPARQLStore\SPARQLStore::getStatistics ( )
See also
Store::getStatistics()
Since
1.8

◆ getUnusedPropertiesSpecial()

SMW\SPARQLStore\SPARQLStore::getUnusedPropertiesSpecial (   $requestoptions = null)

◆ getWantedPropertiesSpecial()

SMW\SPARQLStore\SPARQLStore::getWantedPropertiesSpecial (   $requestoptions = null)

◆ refreshConceptCache()

SMW\SPARQLStore\SPARQLStore::refreshConceptCache ( Title  $concept)
See also
Store::refreshConceptCache()
Since
1.8

◆ refreshData()

SMW\SPARQLStore\SPARQLStore::refreshData ( $index,
  $count,
  $namespaces = false,
  $usejobs = true 
)
See also
Store::refreshData()
Since
1.8

◆ service()

SMW\SPARQLStore\SPARQLStore::service (   $service,
  $args 
)
See also
Store::service

◆ setup()

SMW\SPARQLStore\SPARQLStore::setup (   $options = true)
See also
Store::setup()
Since
1.8

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

About | General disclaimer | Privacy policy