public function EasyRdf_Literal::getDatatype in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Literal.php \EasyRdf_Literal::getDatatype()
Returns the shortened datatype URI of the literal.
Return value
string Datatype of this literal (e.g. xsd:integer).
File
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Literal.php, line 257
Class
- EasyRdf_Literal
- Class that represents an RDF Literal
Code
public function getDatatype() {
if ($this->datatype) {
return EasyRdf_Namespace::shorten($this->datatype);
}
else {
return null;
}
}