abstract class SchemaTermBase

Base class to define an RDF term in a schema.

Hierarchy

Expanded class hierarchy of SchemaTermBase

1 file declares its use of SchemaTermBase
EntitySchema.php in drupal/core/modules/rdf/lib/Drupal/rdf/SiteSchema/EntitySchema.php
Contains EntitySchema.

File

drupal/core/modules/rdf/lib/Drupal/rdf/SiteSchema/SchemaTermBase.php, line 15
Contains SchemaTermBase.

Namespace

Drupal\rdf\SiteSchema
View source
abstract class SchemaTermBase implements SchemaTermInterface {

  /**
   * The URI pattern for this type of site schema term.
   *
   * @var string
   */
  public static $uriPattern;

  /**
   * The schema in which this term is defined.
   *
   * @var \Drupal\rdf\SiteSchema\SiteSchema
   */
  protected $siteSchema;

  /**
   * Constructor.
   *
   * @param \Drupal\rdf\SiteSchema\SiteSchema $site_schema
   *   The namespace.
   */
  public function __construct($site_schema) {
    $this->siteSchema = $site_schema;
  }

  /**
   * Implements \Drupal\rdf\SiteSchema\SchemaTermInterface::getProperties().
   */
  public function getProperties() {
    return array(
      RdfConstants::RDFS_IS_DEFINED_BY => $this->siteSchema
        ->getUri(),
    );
  }

}

Members

Namesort descending Modifiers Type Description Overrides
SchemaTermBase::$siteSchema protected property The schema in which this term is defined.
SchemaTermBase::$uriPattern public static property The URI pattern for this type of site schema term. 1
SchemaTermBase::getProperties public function Implements \Drupal\rdf\SiteSchema\SchemaTermInterface::getProperties(). Overrides SchemaTermInterface::getProperties 1
SchemaTermBase::__construct public function Constructor. 1
SchemaTermInterface::getGraph public function Get the full graph of terms and properties to display. 1
SchemaTermInterface::getUri public function Get the URI of the term. 1