BHoM / RDF_Prototypes

Research project of the Cluster of Excellence "Integrative Computational Design and Construction for Architecture" (IntCDC) https://www.intcdc.uni-stuttgart.de/ **Project Name**: Knowledge Representation for Multi-Disciplinary Co-Design of Buildings. https://www.intcdc.uni-stuttgart.de/research/research-projects/rp-20/
GNU Lesser General Public License v3.0
9 stars 4 forks source link

RDF_Engine: Class Relations (Object/Data Properties) to have a Domain Type that is the basemost type which defines the relation #118

Closed alelom closed 12 months ago

alelom commented 1 year ago

Issues addressed by this PR

Closes #49 Closes #109

This PR changes the mechanism that builds the Ontology, so that Class Relations (Object Properties and Data Properties) have a Domain Type that is the basemost type which defines the relation. To make an example:

for the class BH.oM.Architecture.Elements.Room, the property (class relation) called Perimiter is defined with a Domain Type that is BH.oM.Analytical.Elements.IRegion. Previously, the Domain Type would have been BH.oM.Architecture.Elements.Room. See #49.

This change has several positive side effects:

This PR only changes the behaviour of the mechanism that builds the Ontology (no changes to TTL_Adapter or other adapters).

Test files

Please make sure that:

Changelog