Sveino / Inst4CIM-KG

Instance of CIM Knowledge Graph
Apache License 2.0
5 stars 1 forks source link

remove "Compounds"? what is cim:Status? #78

Open VladimirAlexiev opened 2 months ago

VladimirAlexiev commented 2 months ago

"Compounds" are cims:dataTypes that are neither Primitive, nor have unit/multiplier:

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX cims: <http://iec.ch/TC57/1999/rdf-schema-extensions-19990926#>
select * where {
  ?prop a rdf:Property; cims:dataType ?compound. 
  ?compound cims:stereotype "Compound"
}
prop compound
dm: DifferenceModel.forwardDifferences rdf: Statements
dm: DifferenceModel.preconditions rdf: Statements
dm: DifferenceModel.reverseDifferences rdf: Statements
dm: DifferenceModel.forwardDifferences rdf: Statement
dm: DifferenceModel.preconditions rdf: Statement
dm: DifferenceModel.reverseDifferences rdf: Statement
cim: StreetAddress.status cim: Status
cim: Location.mainAddress cim: StreetAddress
cim: StreetAddress.streetDetail cim: StreetDetail
cim: StreetAddress.townDetail cim: TownDetail

cim:Status is the only compound that has no fields. It's not an Enumeration either:

cim:Status cims:stereotype "Compound".
cim:StreetAddress.status cims:dataType cim:Status.

So it's undecided what it is ;-)

Currently links to Compounds are mapped ObjectProperty. I think cim:Status needs to be defined, or maybe all "Compounds" should be removed?

griddigit-ci commented 3 weeks ago

We may need to discuss but here some feedback

VladimirAlexiev commented 3 weeks ago