SMWExpNsResource Class Reference
[Semantic MediaWiki]

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

Inherits SMWExpResource.

List of all members.

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


Detailed Description

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

Definition at line 102 of file SMW_Exp_Element.php.


Constructor & Destructor Documentation

SMWExpNsResource::__construct ( localname,
namespace,
namespaceid,
dataItem = null 
)

Constructor.

The given URI must not contain serialization-specific abbreviations or escapings, such as XML entities.

Parameters:
$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.


Member Function Documentation

SMWExpNsResource::getQName (  ) 

Return a qualitifed name for the element.

Returns:
string

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 :).

Returns:
string

Definition at line 150 of file SMW_Exp_Element.php.

SMWExpNsResource::getNamespace (  ) 

Get the namespace URI that is used in the abbreviation.

Returns:
string

Definition at line 159 of file SMW_Exp_Element.php.

SMWExpNsResource::getLocalName (  ) 

Get the local name (the part after :).

Returns:
string

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.

Returns:
boolean

Definition at line 180 of file SMW_Exp_Element.php.


Member Data Documentation

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.


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

Generated on Sun Mar 18 07:15:43 2012 for Semantic MediaWiki by  doxygen 1.5.6