Sveino / Inst4CIM-KG

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

replace `eumd:DateTimeStamp` with standard datatype, remove `eu:URI` #20

Closed VladimirAlexiev closed 2 months ago

VladimirAlexiev commented 4 months ago

Header-AP-Voc-RDFS2020.ttl defines non-standard datatypes:

eu:URI  rdf:type rdfs:Class ; cims:stereotype "European" , "Primitive" .
eumd:DateTimeStamp  rdf:type rdfs:Class ; cims:stereotype  "eumd" , "Primitive" .

This is similar to https://github.com/Sveino/Inst4CIM-KG/issues/27, but unlike profcim these Primitives are used:

md:Model.modelingAuthoritySet cims:dataType eu:URI ;
md:Model.profile cims:dataType eu:URI ;
dcat:startDate cims:dataType eumd:DateTimeStamp

It's better to replace with standard prop classes and datatypes:

md:Model.modelingAuthoritySet a owl:ObjectProperty.
md:Model.profile a owl:ObjectProperty.
dcat:startDate a owl:DatatypeProperty; rdfs:range xsd:dateTimeStamp.

I prefer to represent URLs as real URLs (object props without range) not literals. If you prefer literals, use this (but the only benefit of xsd:anyURI is that it allows URLs with invalid chars):

md:Model.modelingAuthoritySet a owl:DatatypeProperty; rdfs:range xsd:anyURI.
md:Model.profile a owl:DatatypeProperty; rdfs:range xsd:anyURI.
dcat:startDate a owl:DatatypeProperty; rdfs:range xsd:dateTimeStamp.
Sveino commented 2 months ago

Yes, we should definitely remove eumd:DataTimeStamp and eu.URI. I also prefer the use of owl:DatatypeProperty;

griddigit-ci commented 2 months ago

We will need to see what we add in CIM on this - in the domain

VladimirAlexiev commented 2 months ago

fix02-datatypes-74.ru