-
Notifications
You must be signed in to change notification settings - Fork 5
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
leverage QUDT to represent quantity kinds and units #338
Comments
I like this a lot. This is fairly inline with what I expected. |
Great ideas, excited to see CIM moving this way. I have some questions and thoughts. @VladimirAlexiev I believe the Furthermore you speak of leveraging the "default unit" for a certain quantity kind. Can you tell me where this default is specified? It seems you mean
@Sveino That's an interesting point. My first hunch would be to support the flexibility of providing units in the instance data. If left out in the instance data, a default from the ontology can be inferred (if possible). Finally, are you aware there's also a QUDT SHACL schema? I'd imagine extending the SAHCL validation of the profile with some statements/rules that verify the correct use of units etc. that are specific to a specific profile is highly desired. Not only does it seem more suitable, I also believe it would be more useful, since I'd say fewer people use OWL reasoners than SHACL validators. (Note that I'm not arguing only OWL or only SHACL be used; both could play their own suitable role. Just thinking oud loud.) |
|
@Sveino Clear. And yes I agree SHACL should not be used for the vocabulary, I was talking about using SHACL for use in profiles. Just wanted to point out that there exists a QUDT SHACL model we can use for validating profiles. |
@bartkl Can you add a link tot eh QUDT SHACL? |
@Sveino: QUDT SHACL graph: https://qudt.org/2.1/schema/shacl/qudt |
@bartkl You're right,
That would be the inverse of I think these are the units with |
@bartkl, https://qudt.org/2.1/schema/shacl/qudt is quite big and not modular: qudt/qudt-public-repo#953 |
Sveino/Inst4CIM-KG#29 is very similar to this but addresses some other aspects. |
Closed by Sveino/Inst4CIM-KG#38 |
This is documented at https://github.com/Sveino/Inst4CIM-KG/tree/develop/rdfs-improved#quantitykinds-and-units-of-measure. @bartkl I'd appreciate if you can review this fairly large section. Thanks in advance! |
Hi Vladimir, This looks really good. As you know I applaud the effort of moving towards QUDT. I do have some questions and remarks. Questions of compliance with the CIMHow do these choices affect questions of CIM compatibility? The master CIM model is still the UML in Sparx EA, and - whether we like it or not (and we don't) - in it the CIM data types are represtented as classes and not scalars. Changing this breaks backward compatibility, which can be worthwile, but we should be aware of this and not take this too lightly. Note This is not just theoretical. As discussed before, there are users who actually adhere to the standard as precisely as to represent CIM data types as classes. In fact, the data products created by my team for Netbeheer Nederland do too. Mapping to QUDT or using it directlyUsing QUDT quantity kinds directlyAgain, happy to see QUDT being leveraged. Having values be actual scalars of a proper datatype is proper and simply much, much better than the convoluted CIM data type classes we have now. I do have a few questions though. You write:
Just asking out loud: can't we just use the QUDT quantity kind directly and add extra descriptions to it? These extra statements would be part of our ontology, and therefore their scope is clear. For example: qk:ApparentPower rdfs:comment "Product of the RMS value of the voltage and the RMS value of the current." . or perhaps something more semantically rich like: cim:description rdfs:subPropertyOf rdfs:comment .
qk:ApparentPower cim:description "Product of the RMS value of the voltage and the RMS value of the current." . On the other hand, semantically it does seem more explicit to maintain our own URI ( One last question regarding the alignment between the CIM and QUDT: I take it you deliberately align using SKOS and not more formally using OWL. Why is that? Would a statement like Why
|
By the way, if this is not the best place for the review, please let me know. |
moved the discussion to Sveino/Inst4CIM-KG#152 |
The latest CIM version that I have (2022-07)
eg
IEC61970-600-2_CGMES_3_0_1_ApplicationProfiles\v3.0\RDFSEd2Beta\RDFS\IEC61970-600-2_CGMES_3_0_0_RDFS_501Ed2CD_EQ.rdf
defines data properties something like this:
There are serious problems with this representation:
xsd:float
), not any of the "decorations" declared by its "datatype" classcim:ActivePower
(unit, multiplier, etc).owl:DatatypeProperty
. Butcim:ActivePower
is a class, so it cannot be the range of a data propertyActivePower
individuals, it's not a class. It's a QuantityKind (borrowing a term from QUDT)ActivePower
because the same "MW" is used for many other kinds of "Power"A week ago you had a presentation of QUDT and I assume you liked it.
Here's what info QUDT includes about these items:
(Sorry this uses long URLs: I got it from https://qudt.org/vocab/unit/MegaW, since the downloaded version 2.1 of 2020-11 that I have is poorer).
As you see, it has all the info from CIM above, plus a lot more: links to UNECE and UCUM, prefix and conversionMultiplier, dimension vector, and which quantityKinds it applies to.
Its sibling unit "megawatt per hour" has a bit more info: also link to IEC CDD ("0112/2///62720#UAA225" is called an IRDI).
Here's the quantityKind:
Or see https://qudt.org/vocab/quantitykind/ActivePower for a bit more info and rendered formulas.
My proposal is to:
range
of the data prop and usehasQuantityKind
andapplicableUnit
to bind to those characteristicsqudt:unit
but it would be used in an observation that doesn't leverage the default unitskos:exactMatch
becauseowl:sameAs
semantics would merge (smush) their characteristics.skos:broader
to make a hierarchy, so usingNot only this representation is more correct, it's also a lot simpler than above!
It will cut the number of "UoM related terms" from 5n to 2n.
The text was updated successfully, but these errors were encountered: