Semantic MediaWiki and related extensions
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
SMW\SPARQLStore\RepositoryRedirectLookup Class Reference

Public Member Functions

 __construct (RepositoryConnection $repositoryConnection)
 
 findRedirectTargetResource (ExpNsResource $expNsResource, &$exists)
 

Static Public Member Functions

static reset ()
 

Public Attributes

const POOLCACHE_ID = 'sparql.repository.redirectLookup'
 

Detailed Description

GNU GPL v2+

Since
2.0
Author
Markus Krötzsch
mwjames

Constructor & Destructor Documentation

SMW\SPARQLStore\RepositoryRedirectLookup::__construct ( RepositoryConnection  $repositoryConnection)
Since
2.0
Parameters
RepositoryConnection$repositoryConnection

Member Function Documentation

SMW\SPARQLStore\RepositoryRedirectLookup::findRedirectTargetResource ( ExpNsResource  $expNsResource,
$exists 
)

Find the redirect target of an ExpNsResource

Returns an SMWExpNsResource object the input redirects to, the input itself if there is no redirect (or it cannot be used for making a resource with a prefix).

Since
1.6
Parameters
ExpNsResource$expNsResourcestring URI to check
boolean$existsthatis set to true if $expNsResource is in the store; always false for blank nodes; always true for subobjects
Returns
ExpNsResource
Exceptions
RuntimeException
static SMW\SPARQLStore\RepositoryRedirectLookup::reset ( )
static
Since
2.1

Member Data Documentation

const SMW\SPARQLStore\RepositoryRedirectLookup::POOLCACHE_ID = 'sparql.repository.redirectLookup'

ID used for the InMemoryPoolCache


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