From 2fda97675ba683d8a030c77aec546e05aeb15bcd Mon Sep 17 00:00:00 2001 From: Nathan Merritt Date: Thu, 21 Apr 2022 11:36:30 -0600 Subject: [PATCH] ignore kind HeatCapacity --- qudt/ontology/qudt.py | 1 + qudt/ontology/resources/v2_1_4/VOCAB_QUDT-UNITS-ALL-v2.1.ttl | 1 + qudt/ontology/unit_factory.py | 1 + 3 files changed, 3 insertions(+) diff --git a/qudt/ontology/qudt.py b/qudt/ontology/qudt.py index 0181327..9555631 100644 --- a/qudt/ontology/qudt.py +++ b/qudt/ontology/qudt.py @@ -41,3 +41,4 @@ class QUDT(object): LIQUID_VOLUME = OntologyUtils.get_iri('kind', 'LiquidVolume') VOLUME_FLOW_RATE = OntologyUtils.get_iri('kind', 'VolumeFlowRate') IONIZATION_ENERGY = OntologyUtils.get_iri('kind', 'IonizationEnergy') + HEAT_CAPACITY = OntologyUtils.get_iri('kind', 'HeatCapacity') diff --git a/qudt/ontology/resources/v2_1_4/VOCAB_QUDT-UNITS-ALL-v2.1.ttl b/qudt/ontology/resources/v2_1_4/VOCAB_QUDT-UNITS-ALL-v2.1.ttl index 05ac1a8..4452ef5 100644 --- a/qudt/ontology/resources/v2_1_4/VOCAB_QUDT-UNITS-ALL-v2.1.ttl +++ b/qudt/ontology/resources/v2_1_4/VOCAB_QUDT-UNITS-ALL-v2.1.ttl @@ -9260,6 +9260,7 @@ unit:KiloJ-PER-KiloGM qudt:conversionMultiplier 1e+03 ; qudt:conversionOffset 0e+00 ; qudt:hasQuantityKind quantitykind:HeatCapacity ; + qudt:hasQuantityKind quantitykind:SpecificEnergy ; qudt:iec61360Code "0112/2///62720#UAA570" ; qudt:plainTextDescription "1 000-fold of the SI derived unit joule divided by the SI base unit kilogram" ; qudt:uneceCommonCode "B42" ; diff --git a/qudt/ontology/unit_factory.py b/qudt/ontology/unit_factory.py index 62b0e56..fc33745 100644 --- a/qudt/ontology/unit_factory.py +++ b/qudt/ontology/unit_factory.py @@ -276,6 +276,7 @@ def _should_be_ignored(type_iri: str) -> bool: QUDT.LIQUID_VOLUME, QUDT.VOLUME_FLOW_RATE, QUDT.IONIZATION_ENERGY, + QUDT.HEAT_CAPACITY, ]: return True