Semantic MediaWiki and related extensions
|
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 | |
A single resource (individual) for export, defined by a URI for which there also is a namespace abbreviation.
GNU GPL v2+
SMW\Exporter\Element\ExpNsResource::__construct | ( | $localName, | |
$namespace, | |||
$namespaceId, | |||
DataItem | $dataItem = null |
||
) |
string | $localName | Local part of the abbreviated URI |
string | $namespace | Namespace URI prefix of the abbreviated URI |
string | $namespaceId | Namespace abbreviation of the abbreviated URI |
DataItem | null | $dataItem |
InvalidArgumentException |
|
staticprotected |
SMW\Exporter\Element\ExpNsResource::getLocalName | ( | ) |
Get the local name (the part after :).
SMW\Exporter\Element\ExpNsResource::getNamespace | ( | ) |
Get the namespace URI that is used in the abbreviation.
SMW\Exporter\Element\ExpNsResource::getNamespaceId | ( | ) |
Get the namespace identifier used (the part before :).
SMW\Exporter\Element\ExpNsResource::getQName | ( | ) |
Return a qualified name for the element.
SMW\Exporter\Element\ExpNsResource::getSerialization | ( | ) |
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.