Base class to define an RDF term in a schema.
Expanded class hierarchy of SchemaTermBase
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(),
);
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SchemaTermBase:: |
protected | property | The schema in which this term is defined. | |
SchemaTermBase:: |
public static | property | The URI pattern for this type of site schema term. | 1 |
SchemaTermBase:: |
public | function |
Implements \Drupal\rdf\SiteSchema\SchemaTermInterface::getProperties(). Overrides SchemaTermInterface:: |
1 |
SchemaTermBase:: |
public | function | Constructor. | 1 |
SchemaTermInterface:: |
public | function | Get the full graph of terms and properties to display. | 1 |
SchemaTermInterface:: |
public | function | Get the URI of the term. | 1 |