Inherits SMWExpResource.
Public Member Functions | |
| __construct ($localname, $namespace, $namespaceid, $dataItem=null) | |
| Constructor. | |
| getQName () | |
| Return a qualitifed name for the element. | |
| getNamespaceId () | |
| Get the namespace identifier used (the part before :). | |
| getNamespace () | |
| Get the namespace URI that is used in the abbreviation. | |
| getLocalName () | |
| Get the local name (the part after :). | |
| hasAllowedLocalName () | |
| Check if the local name is qualifies as a local name in XML and Turtle. | |
Protected Attributes | |
| $m_namespace | |
| $m_namespaceid | |
| $m_localname | |
Definition at line 102 of file SMW_Exp_Element.php.
| SMWExpNsResource::__construct | ( | $ | localname, | |
| $ | namespace, | |||
| $ | namespaceid, | |||
| $ | dataItem = null | |||
| ) |
Constructor.
The given URI must not contain serialization-specific abbreviations or escapings, such as XML entities.
| $localname | string local part of the abbreviated URI | |
| $namespace | string namespace URI prefix of the abbreviated URI | |
| $namespaceid | string namespace abbreviation of the abbreviated URI | |
| $dataItem | SMWDataItem or null |
Definition at line 129 of file SMW_Exp_Element.php.
| SMWExpNsResource::getQName | ( | ) |
Return a qualitifed name for the element.
Definition at line 141 of file SMW_Exp_Element.php.
Referenced by SMWRDFXMLSerializer::serializeExpCollection(), SMWRDFXMLSerializer::serializeExpLiteral(), and SMWRDFXMLSerializer::serializeExpResource().
| SMWExpNsResource::getNamespaceId | ( | ) |
Get the namespace identifier used (the part before :).
Definition at line 150 of file SMW_Exp_Element.php.
| SMWExpNsResource::getNamespace | ( | ) |
Get the namespace URI that is used in the abbreviation.
Definition at line 159 of file SMW_Exp_Element.php.
| SMWExpNsResource::getLocalName | ( | ) |
Get the local name (the part after :).
Definition at line 168 of file SMW_Exp_Element.php.
Referenced by SMWSerializer::isOWLClassTypeProperty().
| SMWExpNsResource::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.
Definition at line 180 of file SMW_Exp_Element.php.
SMWExpNsResource::$m_namespace [protected] |
Definition at line 108 of file SMW_Exp_Element.php.
SMWExpNsResource::$m_namespaceid [protected] |
Definition at line 113 of file SMW_Exp_Element.php.
SMWExpNsResource::$m_localname [protected] |
Definition at line 118 of file SMW_Exp_Element.php.
1.5.6