private function EasyRdfConverter::addType in Schema.org configuration tool (RDF UI) 8
Adds Type label to list.
Parameters
\EasyRdf\Resource $type: An EasyRdf_Resource which is a type.
1 call to EasyRdfConverter::addType()
- EasyRdfConverter::iterateGraph in src/
EasyRdfConverter.php - Identifies all types and properties of the graph separately.
File
- src/
EasyRdfConverter.php, line 124
Class
- EasyRdfConverter
- Extracts details of RDF resources from an RDFa document.
Namespace
Drupal\rdfuiCode
private function addType(Resource $type) {
if ($type != NULL) {
// Omit deprecated types.
if ($type
->get("schema:supersededBy")) {
return;
}
$this->listTypes[$type
->shorten()] = $type
->label();
}
}