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

Public Member Functions

 __construct ($localName, $namespace, $namespaceId, DataItem $dataItem=null)
 
 getQName ()
 
 getNamespaceId ()
 
 getNamespace ()
 
 getLocalName ()
 
 hasAllowedLocalName ()
 
 getSerialization ()
 
- Public Member Functions inherited from SMW\Exporter\Element\ExpResource
 __construct ($uri, DataItem $dataItem=null)
 
 isBlankNode ()
 
 isImported ()
 
 getUri ()
 
 getSerialization ()
 
- Public Member Functions inherited from SMW\Exporter\Element\ExpElement
 __construct (DataItem $dataItem=null)
 
 getDataItem ()
 
 getHash ()
 
 getSerialization ()
 

Static Protected Member Functions

static deserialize ($serialization)
 
- Static Protected Member Functions inherited from SMW\Exporter\Element\ExpResource
static deserialize ($serialization)
 
- Static Protected Member Functions inherited from SMW\Exporter\Element\ExpElement
static deserialize ($serialization)
 

Additional Inherited Members

- Static Public Member Functions inherited from SMW\Exporter\Element\ExpElement
static newFromSerialization (array $serialization)
 
- Public Attributes inherited from SMW\Exporter\Element\ExpResource
 $isImported = false
 
- Public Attributes inherited from SMW\Exporter\Element
const TYPE_RESOURCE = 0
 
const TYPE_NSRESOURCE = 1
 
const TYPE_LITERAL = 2
 
- Protected Attributes inherited from SMW\Exporter\Element\ExpElement
 $dataItem
 

Detailed Description

A single resource (individual) for export, defined by a URI for which there also is a namespace abbreviation.

GNU GPL v2+

Since
2.2
Author
Markus Krötzsch
mwjames

Constructor & Destructor Documentation

SMW\Exporter\Element\ExpNsResource::__construct (   $localName,
  $namespace,
  $namespaceId,
DataItem  $dataItem = null 
)
Note
The given URI must not contain serialization-specific abbreviations or escapings, such as XML entities.
Parameters
string$localNameLocal part of the abbreviated URI
string$namespaceNamespace URI prefix of the abbreviated URI
string$namespaceIdNamespace abbreviation of the abbreviated URI
DataItem | null$dataItem
Exceptions
InvalidArgumentException

Member Function Documentation

static SMW\Exporter\Element\ExpNsResource::deserialize (   $serialization)
staticprotected
SMW\Exporter\Element\ExpNsResource::getLocalName ( )

Get the local name (the part after :).

Returns
string
SMW\Exporter\Element\ExpNsResource::getNamespace ( )

Get the namespace URI that is used in the abbreviation.

Returns
string
SMW\Exporter\Element\ExpNsResource::getNamespaceId ( )

Get the namespace identifier used (the part before :).

Returns
string
SMW\Exporter\Element\ExpNsResource::getQName ( )

Return a qualified name for the element.

Returns
string
SMW\Exporter\Element\ExpNsResource::getSerialization ( )
Since
2.2
Returns
array
SMW\Exporter\Element\ExpNsResource::hasAllowedLocalName ( )

Check if the local name is qualifies as a local name in XML and Turtle. The function returns true if this is surely the case, and false if it may not be the case. However, we do not check the whole range of allowed Unicode entities for performance reasons.

Returns
boolean

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