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

Public Member Functions

 __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 ()
 

Public Attributes

 $isImported = false
 
- Public Attributes inherited from SMW\Exporter\Element
const TYPE_RESOURCE = 0
 
const TYPE_NSRESOURCE = 1
 
const TYPE_LITERAL = 2
 

Static Protected Member Functions

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)
 
- Protected Attributes inherited from SMW\Exporter\Element\ExpElement
 $dataItem
 

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 ExpElement 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.

GNU GPL v2+

Since
2.2
Author
Markus Krötzsch
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\Exporter\Element\ExpResource::__construct (   $uri,
DataItem  $dataItem = null 
)
Note
The given URI must not contain serialization-specific abbreviations or escapings, such as XML entities.
Parameters
string$uriThe full URI
DataItem | null$dataItem
Exceptions
InvalidArgumentException

Member Function Documentation

◆ deserialize()

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

◆ getSerialization()

SMW\Exporter\Element\ExpResource::getSerialization ( )
Since
2.2
Returns
array

◆ getUri()

SMW\Exporter\Element\ExpResource::getUri ( )

Get the URI of this resource. The result is a UTF-8 encoded URI (or IRI) without any escaping.

Returns
string

◆ isBlankNode()

SMW\Exporter\Element\ExpResource::isBlankNode ( )

Return true if this resource represents a blank node.

Returns
boolean

◆ isImported()

SMW\Exporter\Element\ExpResource::isImported ( )
Since
2.5
Returns
boolean

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

About | General disclaimer | Privacy policy