protected function EasyRdf_Resource::checkHasGraph

Throw can exception if the resource does not belong to a graph @ignore

26 calls to EasyRdf_Resource::checkHasGraph()
EasyRdf_Resource::add in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php
Add values to for a property of the resource
EasyRdf_Resource::addLiteral in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php
Add a literal value as a property of the resource
EasyRdf_Resource::addResource in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php
Add a resource as a property of the resource
EasyRdf_Resource::addType in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php
Add one or more rdf:type properties to the resource
EasyRdf_Resource::all in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php
Get all values for a property

... See full list

File

drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php, line 233

Class

EasyRdf_Resource
Class that represents an RDF resource

Code

protected function checkHasGraph() {
  if (!$this->graph) {
    throw new EasyRdf_Exception("EasyRdf_Resource is not part of a graph.");
  }
}