public function EasyRdf_Literal::getDatatype

Returns the shortened datatype URI of the literal.

Return value

string Datatype of this literal (e.g. xsd:integer).

File

drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Literal.php, line 253

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;
  }
}