Semantic MediaWiki and related extensions
|
Public Member Functions | |
__construct ( $lexicalForm, $datatype='', $lang='', DataItem $dataItem=null) | |
getLang () | |
getDatatype () | |
getLexicalForm () | |
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\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 | |
const | TYPE_RESOURCE = 0 |
const | TYPE_NSRESOURCE = 1 |
const | TYPE_LITERAL = 2 |
Protected Attributes inherited from SMW\Exporter\Element\ExpElement | |
$dataItem | |
A single datatype literal for export. Defined by a literal value and a datatype URI.
GNU GPL v2+
SMW\Exporter\Element\ExpLiteral::__construct | ( | $lexicalForm, | |
$datatype = '' , |
|||
$lang = '' , |
|||
DataItem | $dataItem = null |
||
) |
string | $lexicalForm | lexical form |
string | $datatype | Data type URI or empty for untyped literals |
string | $lang | |
DataItem | null | $dataItem |
InvalidArgumentException |
|
staticprotected |
SMW\Exporter\Element\ExpLiteral::getDatatype | ( | ) |
Return the URI of the datatype used, or the empty string if untyped.
SMW\Exporter\Element\ExpLiteral::getLang | ( | ) |
Returns a language tag with the language tag must be well-formed according to BCP47
SMW\Exporter\Element\ExpLiteral::getLexicalForm | ( | ) |
Return the lexical form of the literal. The result does not use any escapings and might still need to be escaped in some contexts. The lexical form is not validated or canonicalized.
SMW\Exporter\Element\ExpLiteral::getSerialization | ( | ) |