Semantic MediaWiki and related extensions
Public Member Functions | Public Attributes | List of all members
SMW\Exporter\ExpResourceMapper Class Reference

Public Member Functions

 __construct (Store $store)
 
 reset ()
 
 setBCAuxiliaryUse ( $bcAuxiliaryUse)
 
 invalidateCache (DIWikiPage $subject)
 
 mapPropertyToResourceElement (DIProperty $property, $useAuxiliaryModifier=false, $seekImportVocabulary=true)
 
 mapWikiPageToResourceElement (DIWikiPage $diWikiPage, $useAuxiliaryModifier=false)
 

Public Attributes

const AUX_MARKER = 'aux'
 

Detailed Description

GNU GPL v2+

Since
2.2
Author
mwjames
Markus Krötzsch

Constructor & Destructor Documentation

◆ __construct()

SMW\Exporter\ExpResourceMapper::__construct ( Store  $store)
Since
2.2
Parameters
Store$store

Member Function Documentation

◆ invalidateCache()

SMW\Exporter\ExpResourceMapper::invalidateCache ( DIWikiPage  $subject)
Since
2.2
Parameters
DIWikiPage$subject

◆ mapPropertyToResourceElement()

SMW\Exporter\ExpResourceMapper::mapPropertyToResourceElement ( DIProperty  $property,
  $useAuxiliaryModifier = false,
  $seekImportVocabulary = true 
)

Create an ExpElement for some internal resource, given by an DIProperty object.

This code is only applied to user-defined properties, since the code for special properties in Exporter::getSpecialPropertyResource may require information about the namespace in which some special property is used.

Note
$useAuxiliaryModifier is to determine whether an auxiliary property resource is to store a helper value (see Exporter::newAuxiliaryExpElement) should be generated
Parameters
DIProperty$property
boolean$useAuxiliaryModifier
boolean$seekImportVocabulary
Returns
ExpResource
Exceptions
RuntimeException

◆ mapWikiPageToResourceElement()

SMW\Exporter\ExpResourceMapper::mapWikiPageToResourceElement ( DIWikiPage  $diWikiPage,
  $useAuxiliaryModifier = false 
)

Create an ExpElement for some internal resource, given by an DIWikiPage object. This is the one place in the code where URIs of wiki pages and user-defined properties are determined. A modifier can be given to make variants of a URI, typically done for auxiliary properties. In this case, the URI is modiied by appending "-23$modifier" where "-23" is the URI encoding of "#" (a symbol not occurring in MW titles).

Parameters
DIWikiPage$diWikiPage
boolean$useAuxiliaryModifier
Returns
ExpResource

◆ reset()

SMW\Exporter\ExpResourceMapper::reset ( )
Since
2.3

◆ setBCAuxiliaryUse()

SMW\Exporter\ExpResourceMapper::setBCAuxiliaryUse (   $bcAuxiliaryUse)
Since
2.2
Parameters
boolean$bcAuxiliaryUse

Member Data Documentation

◆ AUX_MARKER

const SMW\Exporter\ExpResourceMapper::AUX_MARKER = 'aux'

Identifies auxiliary data (helper values)


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

About | General disclaimer | Privacy policy