public function EntitySchema::getGraph

Implements \Drupal\rdf\SiteSchema\SchemaTermInterface::getGraph().

@todo Loop through all fields and add their RDF descriptions.

Overrides SchemaTermInterface::getGraph

File

drupal/core/modules/rdf/lib/Drupal/rdf/SiteSchema/EntitySchema.php, line 50
Contains EntitySchema.

Class

EntitySchema
Defines RDF terms corresponding to Drupal entity types.

Namespace

Drupal\rdf\SiteSchema

Code

public function getGraph() {
  $graph = array();
  $graph[$this
    ->getUri()] = $this
    ->getProperties();
  return $graph;
}