You are here

private function EasyRdfConverter::addProperties in Schema.org configuration tool (RDF UI) 8

Adds Property label to list.

Parameters

\EasyRdf\Resource $value: An EasyRdf_Resource which is a property.

1 call to EasyRdfConverter::addProperties()
EasyRdfConverter::iterateGraph in src/EasyRdfConverter.php
Identifies all types and properties of the graph separately.

File

src/EasyRdfConverter.php, line 108

Class

EasyRdfConverter
Extracts details of RDF resources from an RDFa document.

Namespace

Drupal\rdfui

Code

private function addProperties(Resource $value) {
  if ($value != NULL) {

    // Omit deprecated properties.
    if ($value
      ->get("schema:supersededBy")) {
      return;
    }
    $this->listProperties[$value
      ->shorten()] = $value
      ->label();
  }
}