private function EasyRdfConverter::iterateGraph in Schema.org configuration tool (RDF UI) 8
Identifies all types and properties of the graph separately.
1 call to EasyRdfConverter::iterateGraph()
- EasyRdfConverter::createGraph in src/
EasyRdfConverter.php - Creates an \EasyRdf\Graph object from the given URI.
File
- src/
EasyRdfConverter.php, line 86
Class
- EasyRdfConverter
- Extracts details of RDF resources from an RDFa document.
Namespace
Drupal\rdfuiCode
private function iterateGraph() {
$resource_list = $this->graph
->resources();
foreach ($resource_list as $value) {
if ($value
->prefix() !== "schema") {
continue;
}
if ($value
->isA("rdf:Property") || $value
->isA("rdfs:Property")) {
$this
->addProperties($value);
}
else {
$this
->addType($value);
}
}
}