Class: Literal ---------------------------------------------------------------------------------- An RDF literal. The literal supports the xml:lang and rdf:datatype property. For XML datatypes see: http://www.w3.org/TR/xmlschema-2/ <BR><BR>History:<UL> <LI>11-08-2003 : Method setLanguage() added</LI> <LI>12-04-2002 : Datatype support added ($dtype, getDatatype, toString, setDatatype, equals)</LI> <LI>09-10-2002 : First version of this class.</LI>
|
PHP | boolean equals(unknown $that) |
---|
Checks if ihe literal equals another literal. Two literals are equal, if they have the same label and they have the same language/datatype or both have no language/datatype property set.
Arguments
PHP | Literal(string $str, string $language) |
---|
Constructor
Arguments
label of the literal
optional language identifier
PHP | setDatatype(unknown $datatype) |
---|
Sets the datatype of the literal. Instead of datatype URI, you can also use an datatype shortcuts like STRING or INTEGER. The array $short_datatype with the possible shortcuts is definded in ../constants.php
Arguments