-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Datatypes and Units of Measure #38
Comments
Fixed Units RepresentationWe want to fix the representation as follows, First we correct the property: give a numeric range, @prefix qudt: <http://qudt.org/schema/qudt/> .
@prefix unit: <http://qudt.org/vocab/unit/> .
cim:ACDCConverter.baseS a owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:domain cim:ACDCConverter ;
rdfs:range xsd:float ;
qudt:hasQuantityKind cim:ApparentPower;
qudt:hasUnit unit:MegaV-A;
cims:multiplier cim:UnitMultiplier.M;
cims:unitSymbol cim:UnitSymbol.VA. Then we correct the QuantityKind and relate it to QUDT.
@prefix qudt: <http://qudt.org/schema/qudt/> .
@prefix quantitykind: <http://qudt.org/vocab/quantitykind/> .
cim:ApparentPower a qudt:QuantityKind ;
rdfs:label "ApparentPower"@en ;
eq:Package "Package_CoreEquipmentProfile" ;
eq:isCIMDatatype "True" ;
qudt:applicableUnit cim:cim:UnitSymbol.VA;
skos:broader quantitykind:ComplexPower;
skos:definition "\nProduct of the RMS value of the voltage and the RMS value of the current.\n\n\t"@en . We delete We delete We correct CIM unit symbols and relate them to QUDT: cim:UnitSymbol a owl:Class ;
rdfs:label "UnitSymbol"@en ;
owl:oneOf (... cim:UnitSymbol.VA ...);
skos:exactMatch qudt:Unit.
cim:UnitSymbol.VA a cim:UnitSymbol ;
rdfs:label "VA" ;
cims:isenum "True" ;
skos:definition "Apparent power in volt amperes. See also real power and reactive power."@en;
qudt:hasQuantityKind cim:ApparentPower;
skos:exactMatch unit:V-A. We correct CIM multipliers and relate them to QUDT (where they are called "prefixes"): @prefix prefix: <http://qudt.org/vocab/prefix/> .
cim:UnitMultiplier a owl:Class ;
rdfs:label "UnitMultiplier"@en ;
owl:oneOf (... cim:UnitMultiplier.M ...);
skos:exactMatch qudt:DecimalPrefix.
cim:UnitMultiplier.M a cim:UnitMultiplier;
rdfs:label "M" ;
cims:isenum "True" ;
skos:definition "Mega 10**6."@en ;
skos:exactMatch prefix:Mega. |
|
Yes, the direction would be to be more explicit with QUDT. we need to see if we need cim: properties in RDFS - maybe not as this will be result of transformation from UML to the RDFS |
This statement is rich since QUDT has all sort of info about cim:ACDCConverter.baseS qudt:hasUnit unit:MegaV-A including info what is its base unit, and what is its multiplier. But @Sveino also suggested we keep props cim:ACDCConverter.baseS
cims:multiplier cim:UnitMultiplier.M;
cims:unitSymbol cim:UnitSymbol.VA. (I eliminated the parasitic intermediate props
We should keep an object to represent "Mega", not just the multiplication factor. When we link multipliers to QUDT: cim:UnitMultiplier.M a cim:UnitMultiplier;
skos:exactMatch prefix:Mega. people can get rich info: prefix:Mega
a qudt:DecimalPrefix ;
a qudt:Prefix ;
dcterms:description "'mega' is a decimal prefix for expressing a value with a scaling of \\(10^{6}\\)."^^qudt:LatexString ;
qudt:dbpediaMatch "http://dbpedia.org/resource/Mega"^^xsd:anyURI ;
qudt:informativeReference "http://en.wikipedia.org/wiki/Mega?oldid=494040441"^^xsd:anyURI ;
qudt:prefixMultiplier 1.0E6 ;
qudt:siExactMatch si-prefix:mega ;
qudt:symbol "M" ;
qudt:ucumCode "M" ;
rdfs:isDefinedBy <http://qudt.org/2.1/vocab/prefix> ;
rdfs:label "Mega"@en ;
. Of course, we can copy selected info from QUDT, eg |
This was a big one, the fix queries are: |
CGMES datatype properties are defined like this:
There are numerous problems:
cim:ApparentPower
is a class, and datatype properties cannot point to a classcim:ApparentPower
is not used in any CGMES instance dataACDCConverter.baseS
is a string, but should be marked as^^xsd:float
eq:isCIMDatatype, eq:isFixed
use profile dataspaces rather thancims
multiplier, unit
CIM defines a large set of units of measure, eg:
cim:ApparentPower.unit
says it hasrdfs:range cim:UnitSymbol
, but uses a string value "VA". Same forcim:ApparentPower.multiplier
cim:UnitSymbol.VA
uses a different labelrdfs:label "VA "@en
, which has two mistakes:@en
(in fact it's a SI symbol that has no language)cim:UnitSymbol.VA
wrongly saysa owl:Thing; rdfs:domain cim:UnitSymbol
.a cim:UnitSymbol
.cim:UnitMultiplier.M
, and:1e6
but only as a string"Mega 10**6"
See sec
## Datatypes and Units of Measure
for more analysis and a fixing plan .But I only plan to fix datatype props: so we need to discuss whether to:
The text was updated successfully, but these errors were encountered: