SMWExpResource Class Reference
[Semantic MediaWiki]

A single resource (individual) for export, as defined by a URI. More...

Inherits SMWExpElement.

Inherited by SMWExpNsResource.

List of all members.

Public Member Functions

 __construct ($uri, $dataItem=null)
 Constructor.
 isBlankNode ()
 Return true if this resource represents a blank node.
 getUri ()
 Get the URI of this resource.


Detailed Description

A single resource (individual) for export, as defined by a URI.

This class can also be used to represent blank nodes: It is assumed that all objects of class SMWExpElement or any of its subclasses represent a blank node if their name is empty or of the form "_id" where "id" is any identifier string. IDs are local to the current context, such as a list of triples or an SMWExpData container.

Definition at line 60 of file SMW_Exp_Element.php.


Constructor & Destructor Documentation

SMWExpResource::__construct ( uri,
dataItem = null 
)

Constructor.

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

Parameters:
$uri string of the full URI
$dataItem SMWDataItem or null

Definition at line 69 of file SMW_Exp_Element.php.


Member Function Documentation

SMWExpResource::isBlankNode (  ) 

Return true if this resource represents a blank node.

Returns:
boolean

Definition at line 79 of file SMW_Exp_Element.php.

SMWExpResource::getUri (  ) 

Get the URI of this resource.

The result is a UTF-8 encoded URI (or IRI) without any escaping.

Returns:
string

Definition at line 89 of file SMW_Exp_Element.php.

Referenced by SMWExpData::addPropertyObjectValue(), SMWSerializer::declarationDone(), SMWSparqlStore::getSparqlRedirectTarget(), SMWExpData::getValues(), and SMWSerializer::requireDeclaration().


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