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
8 stars 4 forks source link

BHoM Custom Objects to RDF #18

Closed DiellzaElshani closed 2 years ago

DiellzaElshani commented 2 years ago

Description:

Here is an example on how an RDF graph of a converted BHoM CustomObject could look like. As example I created an object with 3 inputs: a name as string, a geometry as point, and a color as string. Column grasshoppxzxzer

The expected RDF graph can look like the following picture. Despite the new individuals, a new class should be added to the graph. However this class does not have BHoM as domain (like the rest of classes), but it lives on the domain of the instances. I hope that is possible in RDF world (I think yes, but I can double check with Daniel). image

Here is also the RDF as text:

#################################################################
#    Classes
#################################################################

### www.uni-stuttgart.de/cassette
<www.uni-stuttgart.de/cassette> rdf:type owl:Class,
                           :BH.oM.Base.CustomObject
        rdfs:subClassOf :BH.oM.Base.IBHoMObject;
        rdfs:subClassOf :BH.oM.Base.IObject;
        rdfs:subClassOf :BH.oM.Base.BHoMObject;
        rdfs:label"Cassette"@en .

#################################################################
#    Individuals
#################################################################

### www.uni-stuttgart.de/0f9cac27-c9cb-405d-8ed3
<www.uni-stuttgart.de/0f9cac27-c9cb-405d-8ed3> rdf:type owl:NamedIndividual,
                             :BH.oM.Base.CustomObject;

            :BH.oM.Base.BHoMObject.BHoM_Guid "0f9cac27-c9cb-405d-8ed3"^^xsd:string;

            :BH.oM.Base.BHoMObject.Name "myCostumObject"^^xsd:string;
            :BH.oM.Base.BHoMObject.Color "black"^^xsd:string;
            :BH.oM.Base.BHoMObject.Geometry   <www.uni-stuttgart.de/206839>.

<www.uni-stuttgart.de/206839>   rdf:type    owl:NamedIndividual,
                            :BH.oM.Geometry.Point;

<www.uni-stuttgart.de/206839>  :BH.oM.Geometry.PointX  "0.0" ^^ xsd:double;
                               :BH.oM.Geometry.PointY  "0.0" ^^ xsd:double;
                               :BH.oM.Geometry.PointZ  "0.0" ^^ xsd:double.