ontolutils 0.2.20__tar.gz → 0.2.22__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ontolutils-0.2.20 → ontolutils-0.2.22}/PKG-INFO +1 -1
- {ontolutils-0.2.20 → ontolutils-0.2.22}/ontolutils/__init__.py +2 -0
- ontolutils-0.2.22/ontolutils/utils/__init__.py +0 -0
- ontolutils-0.2.22/ontolutils/utils/qudt_units.py +235 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/ontolutils.egg-info/PKG-INFO +1 -1
- {ontolutils-0.2.20 → ontolutils-0.2.22}/ontolutils.egg-info/SOURCES.txt +2 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/setup.cfg +1 -1
- {ontolutils-0.2.20 → ontolutils-0.2.22}/tests/test_utils.py +5 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/LICENSE +0 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/README.md +0 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/ontolutils/_version.py +0 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/ontolutils/cache.py +0 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/ontolutils/classes/__init__.py +0 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/ontolutils/classes/decorator.py +0 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/ontolutils/classes/query_util.py +0 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/ontolutils/classes/thing.py +0 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/ontolutils/classes/typing.py +0 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/ontolutils/classes/utils.py +0 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/ontolutils/namespacelib/__dev.py +0 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/ontolutils/namespacelib/__init__.py +0 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/ontolutils/namespacelib/_iana_utils.py +0 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/ontolutils/namespacelib/codemeta.py +0 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/ontolutils/namespacelib/m4i.py +0 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/ontolutils/namespacelib/obo.py +0 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/ontolutils/namespacelib/qudt_kind.py +0 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/ontolutils/namespacelib/qudt_unit.py +0 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/ontolutils/namespacelib/schema.py +0 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/ontolutils/namespacelib/ssno.py +0 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/ontolutils.egg-info/dependency_links.txt +0 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/ontolutils.egg-info/requires.txt +0 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/ontolutils.egg-info/top_level.txt +0 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/pyproject.toml +0 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/setup.py +0 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/tests/test_classes.py +0 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/tests/test_decorator.py +0 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/tests/test_namespaces.py +0 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/tests/test_query.py +0 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/tests/test_readme.py +0 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/tests/test_typing.py +0 -0
- {ontolutils-0.2.20 → ontolutils-0.2.22}/tests/test_version.py +0 -0
|
@@ -7,6 +7,7 @@ from .classes import namespaces, urirefs
|
|
|
7
7
|
from .classes import query, dquery
|
|
8
8
|
from .classes.utils import merge_jsonld
|
|
9
9
|
from .namespacelib import *
|
|
10
|
+
from .utils.qudt_units import parse_unit
|
|
10
11
|
|
|
11
12
|
DEFAULT_LOGGING_LEVEL = logging.WARNING
|
|
12
13
|
_formatter = logging.Formatter(
|
|
@@ -38,4 +39,5 @@ __all__ = ['Thing',
|
|
|
38
39
|
'dquery',
|
|
39
40
|
'get_urirefs',
|
|
40
41
|
'get_namespaces',
|
|
42
|
+
'parse_unit'
|
|
41
43
|
]
|
|
File without changes
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import rdflib
|
|
2
|
+
|
|
3
|
+
from ontolutils import QUDT_UNIT
|
|
4
|
+
|
|
5
|
+
qudt_lookup = {
|
|
6
|
+
's': QUDT_UNIT.SEC, # time
|
|
7
|
+
'm': QUDT_UNIT.M, # length
|
|
8
|
+
'mm': QUDT_UNIT.MilliM,
|
|
9
|
+
'cm': QUDT_UNIT.CentiM,
|
|
10
|
+
'um': QUDT_UNIT.MicroM,
|
|
11
|
+
'nm': QUDT_UNIT.NanoM,
|
|
12
|
+
'km': QUDT_UNIT.KiloM,
|
|
13
|
+
# derived units
|
|
14
|
+
# velocity
|
|
15
|
+
'm/s': QUDT_UNIT.M_PER_SEC,
|
|
16
|
+
'm s-1': QUDT_UNIT.M_PER_SEC,
|
|
17
|
+
'm*s-1': QUDT_UNIT.M_PER_SEC,
|
|
18
|
+
'm*s^-1': QUDT_UNIT.M_PER_SEC,
|
|
19
|
+
'm*s**-1': QUDT_UNIT.M_PER_SEC,
|
|
20
|
+
'm s**-1': QUDT_UNIT.M_PER_SEC,
|
|
21
|
+
# acceleration
|
|
22
|
+
'm/s2': QUDT_UNIT.M_PER_SEC2,
|
|
23
|
+
'm/s^2': QUDT_UNIT.M_PER_SEC2,
|
|
24
|
+
'm/s**2': QUDT_UNIT.M_PER_SEC2,
|
|
25
|
+
'm s^-2': QUDT_UNIT.M_PER_SEC2,
|
|
26
|
+
'm s**-2': QUDT_UNIT.M_PER_SEC2,
|
|
27
|
+
'm s-2': QUDT_UNIT.M_PER_SEC2,
|
|
28
|
+
# velocity squared
|
|
29
|
+
'm2/s2': QUDT_UNIT.M2_PER_SEC2,
|
|
30
|
+
'm2/s^2': QUDT_UNIT.M2_PER_SEC2,
|
|
31
|
+
'm2/s**2': QUDT_UNIT.M2_PER_SEC2,
|
|
32
|
+
'm2 s^-2': QUDT_UNIT.M2_PER_SEC2,
|
|
33
|
+
'm2 s-2': QUDT_UNIT.M2_PER_SEC2,
|
|
34
|
+
'm2 s**-2': QUDT_UNIT.M2_PER_SEC2,
|
|
35
|
+
'm**2/s**2': QUDT_UNIT.M2_PER_SEC2,
|
|
36
|
+
'm**2/s^2': QUDT_UNIT.M2_PER_SEC2,
|
|
37
|
+
# dynamic viscosity
|
|
38
|
+
'kg m^-1 s^-1': QUDT_UNIT.KiloGM_PER_M_SEC,
|
|
39
|
+
# SI unit of dynamic viscosity
|
|
40
|
+
'Pa s': QUDT_UNIT.PA_SEC,
|
|
41
|
+
'Pa*s': QUDT_UNIT.PA_SEC,
|
|
42
|
+
# kinematic viscosity
|
|
43
|
+
'm2/s': QUDT_UNIT.M2_PER_SEC,
|
|
44
|
+
'm2 s-1': QUDT_UNIT.M2_PER_SEC,
|
|
45
|
+
'm2*s-1': QUDT_UNIT.M2_PER_SEC,
|
|
46
|
+
'm**2/s': QUDT_UNIT.M2_PER_SEC,
|
|
47
|
+
'm**2 s-1': QUDT_UNIT.M2_PER_SEC,
|
|
48
|
+
# area
|
|
49
|
+
'm2': QUDT_UNIT.M2,
|
|
50
|
+
'm^2': QUDT_UNIT.M2,
|
|
51
|
+
'm**2': QUDT_UNIT.M2,
|
|
52
|
+
'mm2': QUDT_UNIT.MilliM2,
|
|
53
|
+
'mm^2': QUDT_UNIT.MilliM2,
|
|
54
|
+
'mm**2': QUDT_UNIT.MilliM2,
|
|
55
|
+
# volume
|
|
56
|
+
'm3': QUDT_UNIT.M3,
|
|
57
|
+
'm^3': QUDT_UNIT.M3,
|
|
58
|
+
'm**3': QUDT_UNIT.M3,
|
|
59
|
+
'mm3': QUDT_UNIT.MilliM3,
|
|
60
|
+
'mm^3': QUDT_UNIT.MilliM3,
|
|
61
|
+
'mm**3': QUDT_UNIT.MilliM3,
|
|
62
|
+
# volume flow rate
|
|
63
|
+
'm3/s': QUDT_UNIT.M3_PER_SEC,
|
|
64
|
+
'm3 s-1': QUDT_UNIT.M3_PER_SEC,
|
|
65
|
+
'm3*s-1': QUDT_UNIT.M3_PER_SEC,
|
|
66
|
+
'm3*s^-1': QUDT_UNIT.M3_PER_SEC,
|
|
67
|
+
'm3*s**-1': QUDT_UNIT.M3_PER_SEC,
|
|
68
|
+
'm**3/s': QUDT_UNIT.M3_PER_SEC,
|
|
69
|
+
'm**3 s-1': QUDT_UNIT.M3_PER_SEC,
|
|
70
|
+
'm**3*s-1': QUDT_UNIT.M3_PER_SEC,
|
|
71
|
+
'm**3 s-1': QUDT_UNIT.M3_PER_SEC,
|
|
72
|
+
# density
|
|
73
|
+
'kg/m**3': QUDT_UNIT.KiloGM_PER_M3,
|
|
74
|
+
'kg/m^3': QUDT_UNIT.KiloGM_PER_M3,
|
|
75
|
+
'kg/m3': QUDT_UNIT.KiloGM_PER_M3,
|
|
76
|
+
'kg m-3': QUDT_UNIT.KiloGM_PER_M3,
|
|
77
|
+
'kg m^-3': QUDT_UNIT.KiloGM_PER_M3,
|
|
78
|
+
'kg*m-3': QUDT_UNIT.KiloGM_PER_M3,
|
|
79
|
+
'kg*m^-3': QUDT_UNIT.KiloGM_PER_M3,
|
|
80
|
+
# per length
|
|
81
|
+
'1/m': QUDT_UNIT.PER_M,
|
|
82
|
+
'm-1': QUDT_UNIT.PER_M,
|
|
83
|
+
'm^-1': QUDT_UNIT.PER_M,
|
|
84
|
+
'm**-1': QUDT_UNIT.PER_M,
|
|
85
|
+
# per length squared
|
|
86
|
+
'1/m2': QUDT_UNIT.PER_M2,
|
|
87
|
+
'1/m**2': QUDT_UNIT.PER_M2,
|
|
88
|
+
'1/m^2': QUDT_UNIT.PER_M2,
|
|
89
|
+
'm-2': QUDT_UNIT.PER_M2,
|
|
90
|
+
'm^-2': QUDT_UNIT.PER_M2,
|
|
91
|
+
'm**-2': QUDT_UNIT.PER_M2,
|
|
92
|
+
# per length cubed
|
|
93
|
+
'1/m3': QUDT_UNIT.PER_M3,
|
|
94
|
+
'1/m**3': QUDT_UNIT.PER_M3,
|
|
95
|
+
'1/m^3': QUDT_UNIT.PER_M3,
|
|
96
|
+
'm-3': QUDT_UNIT.PER_M3,
|
|
97
|
+
'm^-3': QUDT_UNIT.PER_M3,
|
|
98
|
+
'm**-3': QUDT_UNIT.PER_M3,
|
|
99
|
+
# per second
|
|
100
|
+
'1/s': QUDT_UNIT.PER_SEC,
|
|
101
|
+
'1 s-1': QUDT_UNIT.PER_SEC,
|
|
102
|
+
'1*s-1': QUDT_UNIT.PER_SEC,
|
|
103
|
+
'1*s^-1': QUDT_UNIT.PER_SEC,
|
|
104
|
+
'1*s**-1': QUDT_UNIT.PER_SEC,
|
|
105
|
+
's-1': QUDT_UNIT.PER_SEC,
|
|
106
|
+
's^-1': QUDT_UNIT.PER_SEC,
|
|
107
|
+
's**-1': QUDT_UNIT.PER_SEC,
|
|
108
|
+
# per second squared
|
|
109
|
+
'1/s**2': QUDT_UNIT.PER_SEC2,
|
|
110
|
+
'1/s^2': QUDT_UNIT.PER_SEC2,
|
|
111
|
+
's^-2': QUDT_UNIT.PER_SEC2,
|
|
112
|
+
's-2': QUDT_UNIT.PER_SEC2,
|
|
113
|
+
's**-2': QUDT_UNIT.PER_SEC2,
|
|
114
|
+
# frequency
|
|
115
|
+
'Hz': QUDT_UNIT.HZ,
|
|
116
|
+
# energy
|
|
117
|
+
'joule': QUDT_UNIT.J,
|
|
118
|
+
'Joule': QUDT_UNIT.J,
|
|
119
|
+
'J': QUDT_UNIT.J,
|
|
120
|
+
# power
|
|
121
|
+
'W': QUDT_UNIT.W,
|
|
122
|
+
'watt': QUDT_UNIT.W,
|
|
123
|
+
'Watt': QUDT_UNIT.W,
|
|
124
|
+
# pressure
|
|
125
|
+
'Pa': QUDT_UNIT.PA,
|
|
126
|
+
'pascal': QUDT_UNIT.PA,
|
|
127
|
+
'Pascal': QUDT_UNIT.PA,
|
|
128
|
+
# mass
|
|
129
|
+
'kg': QUDT_UNIT.KiloGM,
|
|
130
|
+
'kilogram': QUDT_UNIT.KiloGM,
|
|
131
|
+
'kilograms': QUDT_UNIT.KiloGM,
|
|
132
|
+
'Kilogram': QUDT_UNIT.KiloGM,
|
|
133
|
+
'Kilograms': QUDT_UNIT.KiloGM,
|
|
134
|
+
# mass flow rate
|
|
135
|
+
'kg/s': QUDT_UNIT.KiloGM_PER_SEC,
|
|
136
|
+
'kg s-1': QUDT_UNIT.KiloGM_PER_SEC,
|
|
137
|
+
'kg*s-1': QUDT_UNIT.KiloGM_PER_SEC,
|
|
138
|
+
# temperature
|
|
139
|
+
'K': QUDT_UNIT.K,
|
|
140
|
+
'kelvin': QUDT_UNIT.K,
|
|
141
|
+
'Kelvin': QUDT_UNIT.K,
|
|
142
|
+
'degree_C': QUDT_UNIT.DEG_C,
|
|
143
|
+
'degree_Celsius': QUDT_UNIT.DEG_C,
|
|
144
|
+
# torque
|
|
145
|
+
'N m': QUDT_UNIT.N_M,
|
|
146
|
+
'N*m': QUDT_UNIT.N_M,
|
|
147
|
+
'rad': QUDT_UNIT.RAD,
|
|
148
|
+
# force
|
|
149
|
+
'N': QUDT_UNIT.N,
|
|
150
|
+
# dimensionless
|
|
151
|
+
'dimensionless': QUDT_UNIT.UNITLESS,
|
|
152
|
+
'': QUDT_UNIT.UNITLESS,
|
|
153
|
+
' ': QUDT_UNIT.UNITLESS,
|
|
154
|
+
'None': QUDT_UNIT.UNITLESS,
|
|
155
|
+
# other:
|
|
156
|
+
'Pa m-1': QUDT_UNIT.PA_PER_M,
|
|
157
|
+
'degree': QUDT_UNIT.DEG,
|
|
158
|
+
'kg m-2': QUDT_UNIT.KiloGM_PER_M2,
|
|
159
|
+
'kg m-2 s-1': QUDT_UNIT.KiloGM_PER_M2_SEC,
|
|
160
|
+
'm-1 sr-1': QUDT_UNIT.PER_M_SR,
|
|
161
|
+
'm-1 s': QUDT_UNIT.PER_M_SEC,
|
|
162
|
+
'K m-1': QUDT_UNIT.K_PER_M,
|
|
163
|
+
'year': QUDT_UNIT.YR,
|
|
164
|
+
'day': QUDT_UNIT.DAY,
|
|
165
|
+
'mol kg-1': QUDT_UNIT.MOL_PER_KiloGM,
|
|
166
|
+
'mol m-3': QUDT_UNIT.MOL_PER_M3,
|
|
167
|
+
'J kg-1': QUDT_UNIT.J_PER_KiloGM,
|
|
168
|
+
'J m-2': QUDT_UNIT.J_PER_M2,
|
|
169
|
+
'mol': QUDT_UNIT.MOL,
|
|
170
|
+
'mol s-1': QUDT_UNIT.MOL_PER_SEC,
|
|
171
|
+
'mol m-2': QUDT_UNIT.MOL_PER_M2,
|
|
172
|
+
'g kg-1:': QUDT_UNIT.GM_PER_KiloGM,
|
|
173
|
+
'Pa m': QUDT_UNIT.PA_M,
|
|
174
|
+
'K m s-1': QUDT_UNIT.K_M_PER_SEC,
|
|
175
|
+
's-1 m-3': QUDT_UNIT.PER_M3_SEC,
|
|
176
|
+
'dBZ': QUDT_UNIT.DeciB_Z,
|
|
177
|
+
'K m2 kg-1 s-1': QUDT_UNIT.K_M2_PER_KiloGM_SEC,
|
|
178
|
+
'mol m-3 s-1': QUDT_UNIT.MOL_PER_M3_SEC,
|
|
179
|
+
'kg m-3 s-1': QUDT_UNIT.KiloGM_PER_M3_SEC,
|
|
180
|
+
'kg degree_C m-2': QUDT_UNIT.DEG_C_KiloGM_PER_M2,
|
|
181
|
+
'K m': QUDT_UNIT.K_M,
|
|
182
|
+
'mol m-2 s-1': QUDT_UNIT.MOL_PER_M2_SEC,
|
|
183
|
+
'mol m-2 s-1 m-1': QUDT_UNIT.MOL_PER_M2_SEC_M,
|
|
184
|
+
'W m-2 m-1': QUDT_UNIT.W_PER_M2_M,
|
|
185
|
+
'W m-1': QUDT_UNIT.W_PER_M,
|
|
186
|
+
'W m-2': QUDT_UNIT.W_PER_M2,
|
|
187
|
+
'W m-3': QUDT_UNIT.W_PER_M3,
|
|
188
|
+
'W m-2 sr-1': QUDT_UNIT.W_PER_M2_SR,
|
|
189
|
+
'W m-2 m-1 sr-1': QUDT_UNIT.W_PER_M2_M_SR,
|
|
190
|
+
'm3 s-2': QUDT_UNIT.M3_PER_SEC2,
|
|
191
|
+
'degree m-1': QUDT_UNIT.DEG_PER_M,
|
|
192
|
+
'W m-1 K-1': QUDT_UNIT.W_PER_M_K,
|
|
193
|
+
'K s-1': QUDT_UNIT.K_PER_SEC,
|
|
194
|
+
'Bq m-2': QUDT_UNIT.BQ_PER_M2,
|
|
195
|
+
'Bq m-3': QUDT_UNIT.BQ_PER_M3,
|
|
196
|
+
'Bq s m-3': QUDT_UNIT.BQ_SEC_PER_M3,
|
|
197
|
+
'Pa s-1': QUDT_UNIT.PA_PER_SEC,
|
|
198
|
+
'N m-2': QUDT_UNIT.N_PER_M2,
|
|
199
|
+
'm s': QUDT_UNIT.M_SEC,
|
|
200
|
+
'm2 s': QUDT_UNIT.M_SEC2,
|
|
201
|
+
'kg s-1 m-1': QUDT_UNIT.KiloGM_PER_M_SEC,
|
|
202
|
+
'dB': QUDT_UNIT.DeciB,
|
|
203
|
+
'W kg-1': QUDT_UNIT.W_PER_KiloGM,
|
|
204
|
+
'Pa2 s-2': QUDT_UNIT.PA2_PER_SEC2,
|
|
205
|
+
'kg2 s-2': QUDT_UNIT.KiloGM2_PER_SEC2,
|
|
206
|
+
'W m-2 sr-1 m-1': QUDT_UNIT.W_PER_M2_M_SR,
|
|
207
|
+
# image pixel ("both, the smallest unit of a digital raster graphic as well as the display on a screen with raster control")
|
|
208
|
+
'px': QUDT_UNIT.PIXEL,
|
|
209
|
+
'pixel': QUDT_UNIT.PIXEL,
|
|
210
|
+
'1/pixel': "https://matthiasprobst.github.io/pivmeta#PER-PIXEL", # TODO: define this!!!
|
|
211
|
+
'mm/pixel': "https://matthiasprobst.github.io/pivmeta#MilliM-PER-PIXEL", # TODO: define this!!!
|
|
212
|
+
'deg': QUDT_UNIT.DEG,
|
|
213
|
+
'degC': QUDT_UNIT.DEG_C,
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
def parse_unit(unit_str: str) -> rdflib.URIRef:
|
|
218
|
+
"""Return IRI for a unit str. E.g. 'm/s' returns QUDT_UNIT.M_PER_SEC.
|
|
219
|
+
|
|
220
|
+
Parameters
|
|
221
|
+
----------
|
|
222
|
+
unit_str: str
|
|
223
|
+
Input unit string, e.g. 'm/s'
|
|
224
|
+
|
|
225
|
+
Returns
|
|
226
|
+
-------
|
|
227
|
+
rdflib.URIRef
|
|
228
|
+
IRI for the unit string
|
|
229
|
+
|
|
230
|
+
Raises
|
|
231
|
+
------
|
|
232
|
+
KeyError
|
|
233
|
+
If the unit string is not in the lookup table
|
|
234
|
+
"""
|
|
235
|
+
return qudt_lookup[unit_str]
|
|
@@ -27,6 +27,8 @@ ontolutils/namespacelib/qudt_kind.py
|
|
|
27
27
|
ontolutils/namespacelib/qudt_unit.py
|
|
28
28
|
ontolutils/namespacelib/schema.py
|
|
29
29
|
ontolutils/namespacelib/ssno.py
|
|
30
|
+
ontolutils/utils/__init__.py
|
|
31
|
+
ontolutils/utils/qudt_units.py
|
|
30
32
|
tests/test_classes.py
|
|
31
33
|
tests/test_decorator.py
|
|
32
34
|
tests/test_namespaces.py
|
|
@@ -3,8 +3,10 @@ import shutil
|
|
|
3
3
|
import unittest
|
|
4
4
|
from hashlib import sha256
|
|
5
5
|
|
|
6
|
+
import rdflib
|
|
6
7
|
from pydantic import EmailStr
|
|
7
8
|
|
|
9
|
+
import ontolutils
|
|
8
10
|
from ontolutils import Thing
|
|
9
11
|
from ontolutils import namespaces, urirefs
|
|
10
12
|
from ontolutils import set_logging_level
|
|
@@ -81,3 +83,6 @@ class TestUtils(unittest.TestCase):
|
|
|
81
83
|
|
|
82
84
|
if pathlib.Path('not/existing/dir').exists():
|
|
83
85
|
shutil.rmtree('not/existing/dir')
|
|
86
|
+
|
|
87
|
+
def test_parse_qudt_units(self):
|
|
88
|
+
self.assertEqual(ontolutils.parse_unit('m/s'), rdflib.URIRef('http://qudt.org/vocab/unit/M-PER-SEC'))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|