Semantic MediaWiki and related extensions
Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
SMW\SPARQLStore\SPARQLStore Class Reference
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)
 
 setup ($verbose=true)
 
 drop ($verbose=true)
 
 refreshData (&$index, $count, $namespaces=false, $usejobs=true)
 
 getPropertyTableInfoFetcher ()
 
 getPropertyTables ()
 
 getObjectIds ()
 
 getPropertyTableIdReferenceFinder ()
 
 clear ()
 
 setUpdateJobsEnabledState ($status)
 
 getConnection ($connectionTypeId= '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 (SMWDataItem $object, $requestoptions=null)
 
 getWikiPageSortKey (DIWikiPage $wikiPage)
 
 getRedirectTarget (SMWDataItem $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 ()
 
 setup ($verbose=true)
 
 drop ($verbose=true)
 
 refreshData (&$index, $count, $namespaces=false, $usejobs=true)
 
 getParserTestTables ()
 
 getOptions ()
 
 clear ()
 
 setUpdateJobsEnabledState ($status)
 
 getUpdateJobsEnabledState ()
 
 setConnectionManager (ConnectionManager $connectionManager)
 
 getConnection ($connectionTypeId)
 

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, $isFromExtensionSchemaUpdate=false)
 
- 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

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

Member Function Documentation

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.
SMW\SPARQLStore\SPARQLStore::clear ( )
Since
1.9.2
SMW\SPARQLStore\SPARQLStore::deleteConceptCache (   $concept)
See also
Store::deleteConceptCache()
Since
1.8
SMW\SPARQLStore\SPARQLStore::deleteSubject ( Title  $subject)
See also
Store::deleteSubject()
Since
1.6
SMW\SPARQLStore\SPARQLStore::doDataUpdate ( SemanticData  $semanticData)
protected
See also
Store::doDataUpdate()
Since
1.6
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
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
SMW\SPARQLStore\SPARQLStore::drop (   $verbose = true)
See also
Store::drop()
Since
1.6
SMW\SPARQLStore\SPARQLStore::fetchQueryResult ( Query  $query)
protected
SMW\SPARQLStore\SPARQLStore::getAllPropertySubjects ( DIProperty  $property,
  $requestoptions = null 
)
SMW\SPARQLStore\SPARQLStore::getConceptCacheStatus (   $concept)
See also
Store::getConceptCacheStatus()
Since
1.8
SMW\SPARQLStore\SPARQLStore::getConnection (   $connectionTypeId = 'sparql')
Since
2.1
Parameters
string$connectionTypeId
Returns
mixed
SMW\SPARQLStore\SPARQLStore::getInProperties ( DataItem  $object,
  $requestoptions = null 
)
See also
Store::getInProperties()
Since
1.8
SMW\SPARQLStore\SPARQLStore::getObjectIds ( )
Since
2.3
SMW\SPARQLStore\SPARQLStore::getProperties ( DIWikiPage  $subject,
  $requestoptions = null 
)
See also
Store::getProperties()
Since
1.8
SMW\SPARQLStore\SPARQLStore::getPropertiesSpecial (   $requestoptions = null)
SMW\SPARQLStore\SPARQLStore::getPropertySubjects ( DIProperty  $property,
  $value,
  $requestoptions = null 
)
See also
Store::getPropertySubjects()
Since
1.8
SMW\SPARQLStore\SPARQLStore::getPropertyTableIdReferenceFinder ( )
Since
2.4
SMW\SPARQLStore\SPARQLStore::getPropertyTableInfoFetcher ( )
Since
2.5
Returns
PropertyTableInfoFetcher
SMW\SPARQLStore\SPARQLStore::getPropertyTables ( )
Since
2.0
SMW\SPARQLStore\SPARQLStore::getPropertyValues (   $subject,
DIProperty  $property,
  $requestoptions = null 
)
See also
Store::getPropertyValues()
Since
1.8
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.

SMW\SPARQLStore\SPARQLStore::getSemanticData ( DIWikiPage  $subject,
  $filter = false 
)
See also
Store::getSemanticData()
Since
1.8
SMW\SPARQLStore\SPARQLStore::getStatistics ( )
See also
Store::getStatistics()
Since
1.8
SMW\SPARQLStore\SPARQLStore::getUnusedPropertiesSpecial (   $requestoptions = null)
SMW\SPARQLStore\SPARQLStore::getWantedPropertiesSpecial (   $requestoptions = null)
SMW\SPARQLStore\SPARQLStore::refreshConceptCache ( Title  $concept)
See also
Store::refreshConceptCache()
Since
1.8
SMW\SPARQLStore\SPARQLStore::refreshData ( $index,
  $count,
  $namespaces = false,
  $usejobs = true 
)
See also
Store::refreshData()
Since
1.8
SMW\SPARQLStore\SPARQLStore::setup (   $verbose = true)
See also
Store::setup()
Since
1.8
SMW\SPARQLStore\SPARQLStore::setUpdateJobsEnabledState (   $status)
Since
2.1
Parameters
boolean$status

Member Data Documentation

SMW\SPARQLStore\SPARQLStore::$baseStoreClass = 'SMWSQLStore3'
static

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