Ontology
Categories
Component ID
2927668
Component name
Ontology
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Downloads
14
Component created
Component changed
Component body
Publishes site structure as OWL ontology. Enable module and open /owl page.
It publishes entity type and bundles as OWL classes, RDF mapped fields as OWL object properties.
Drupal RDF-mappings are exported as OWL class subClassOf for entity types and OWL property equivalentProperties for fields.
Drupal 8 version ties commerce product variation entity bundles to schema.org/Offer and commerce price to schema.org/price.
Example output:
<!-- Classes for commerce_product_variation entities -->
<Class xmlns="http://www.w3.org/2002/07/owl#" rdf:about="#commerce_product_variation"/>
<Class xmlns="http://www.w3.org/2002/07/owl#" rdf:about="#commerce_product_variation--default">
<rdfs:label>Default</rdfs:label>
<rdfs:subClassOf rdf:resource="#commerce_product_variation"/>
<rdfs:subClassOf rdf:resource="schema:Offer"/>
</Class>
<!-- Property for field price-->
<ObjectProperty xmlns="http://www.w3.org/2002/07/owl#" rdf:about="#price">
<equivalentProperty rdf:resource="&schema;price"/>
<rdfs:domain rdf:resource="#commerce_product_variation--default"/>
<rdfs:range rdf:resource="&xsd;string"/>
</ObjectProperty>