ontolutils 0.2.16__tar.gz → 0.2.17__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.
Files changed (39) hide show
  1. {ontolutils-0.2.16 → ontolutils-0.2.17}/PKG-INFO +1 -1
  2. {ontolutils-0.2.16 → ontolutils-0.2.17}/ontolutils/namespacelib/__dev.py +6 -3
  3. {ontolutils-0.2.16 → ontolutils-0.2.17}/ontolutils/namespacelib/codemeta.py +2 -2
  4. {ontolutils-0.2.16 → ontolutils-0.2.17}/ontolutils/namespacelib/m4i.py +2 -2
  5. {ontolutils-0.2.16 → ontolutils-0.2.17}/ontolutils/namespacelib/obo.py +2 -2
  6. {ontolutils-0.2.16 → ontolutils-0.2.17}/ontolutils/namespacelib/pivmeta.py +25 -9
  7. {ontolutils-0.2.16 → ontolutils-0.2.17}/ontolutils/namespacelib/qudt_kind.py +1081 -1081
  8. {ontolutils-0.2.16 → ontolutils-0.2.17}/ontolutils/namespacelib/qudt_unit.py +2443 -2443
  9. {ontolutils-0.2.16 → ontolutils-0.2.17}/ontolutils/namespacelib/schema.py +2767 -2767
  10. {ontolutils-0.2.16 → ontolutils-0.2.17}/ontolutils/namespacelib/ssno.py +2 -2
  11. {ontolutils-0.2.16 → ontolutils-0.2.17}/ontolutils.egg-info/PKG-INFO +1 -1
  12. {ontolutils-0.2.16 → ontolutils-0.2.17}/setup.cfg +1 -1
  13. {ontolutils-0.2.16 → ontolutils-0.2.17}/LICENSE +0 -0
  14. {ontolutils-0.2.16 → ontolutils-0.2.17}/README.md +0 -0
  15. {ontolutils-0.2.16 → ontolutils-0.2.17}/ontolutils/__init__.py +0 -0
  16. {ontolutils-0.2.16 → ontolutils-0.2.17}/ontolutils/_version.py +0 -0
  17. {ontolutils-0.2.16 → ontolutils-0.2.17}/ontolutils/cache.py +0 -0
  18. {ontolutils-0.2.16 → ontolutils-0.2.17}/ontolutils/classes/__init__.py +0 -0
  19. {ontolutils-0.2.16 → ontolutils-0.2.17}/ontolutils/classes/decorator.py +0 -0
  20. {ontolutils-0.2.16 → ontolutils-0.2.17}/ontolutils/classes/query_util.py +0 -0
  21. {ontolutils-0.2.16 → ontolutils-0.2.17}/ontolutils/classes/thing.py +0 -0
  22. {ontolutils-0.2.16 → ontolutils-0.2.17}/ontolutils/classes/typing.py +0 -0
  23. {ontolutils-0.2.16 → ontolutils-0.2.17}/ontolutils/classes/utils.py +0 -0
  24. {ontolutils-0.2.16 → ontolutils-0.2.17}/ontolutils/namespacelib/__init__.py +0 -0
  25. {ontolutils-0.2.16 → ontolutils-0.2.17}/ontolutils/namespacelib/_iana_utils.py +0 -0
  26. {ontolutils-0.2.16 → ontolutils-0.2.17}/ontolutils.egg-info/SOURCES.txt +0 -0
  27. {ontolutils-0.2.16 → ontolutils-0.2.17}/ontolutils.egg-info/dependency_links.txt +0 -0
  28. {ontolutils-0.2.16 → ontolutils-0.2.17}/ontolutils.egg-info/requires.txt +0 -0
  29. {ontolutils-0.2.16 → ontolutils-0.2.17}/ontolutils.egg-info/top_level.txt +0 -0
  30. {ontolutils-0.2.16 → ontolutils-0.2.17}/pyproject.toml +0 -0
  31. {ontolutils-0.2.16 → ontolutils-0.2.17}/setup.py +0 -0
  32. {ontolutils-0.2.16 → ontolutils-0.2.17}/tests/test_classes.py +0 -0
  33. {ontolutils-0.2.16 → ontolutils-0.2.17}/tests/test_decorator.py +0 -0
  34. {ontolutils-0.2.16 → ontolutils-0.2.17}/tests/test_namespaces.py +0 -0
  35. {ontolutils-0.2.16 → ontolutils-0.2.17}/tests/test_query.py +0 -0
  36. {ontolutils-0.2.16 → ontolutils-0.2.17}/tests/test_readme.py +0 -0
  37. {ontolutils-0.2.16 → ontolutils-0.2.17}/tests/test_typing.py +0 -0
  38. {ontolutils-0.2.16 → ontolutils-0.2.17}/tests/test_utils.py +0 -0
  39. {ontolutils-0.2.16 → ontolutils-0.2.17}/tests/test_version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ontolutils
3
- Version: 0.2.16
3
+ Version: 0.2.17
4
4
  Summary: Utility library for the work with ontologies.
5
5
  Home-page: https://github.com/matthiasprobst/ontology-utils
6
6
  Author: Matthias Probst
@@ -123,7 +123,10 @@ def generate_namespace_file_from_context(namespace: str,
123
123
  for k, v in iris.items():
124
124
  if k not in fields:
125
125
  fields.append(k)
126
- f.write(f'\n {k}: URIRef # {v["keys"]}')
126
+ if '-' in k:
127
+ f.write(f'\n {k.replace("-", "_")} = URIRef("{url}{k}") # {v["keys"]}')
128
+ else:
129
+ f.write(f'\n {k}: URIRef # {v["keys"]}')
127
130
 
128
131
  f.write(f'\n\n _NS = Namespace("{url}")')
129
132
 
@@ -138,10 +141,10 @@ def generate_namespace_file_from_context(namespace: str,
138
141
  key = kk.replace(' ', '_')
139
142
  for lang_key, lang_values in languages.items():
140
143
  if key in lang_values:
141
- f.write(f'\nsetattr({lang_key}, "{key}", {namespace.upper()}.{k})')
144
+ f.write(f'\nsetattr({lang_key}, "{key}", {namespace.upper()}.{k.replace("-", "_")})')
142
145
  found_language_key = True
143
146
  if not found_language_key:
144
- f.write(f'\nsetattr({namespace.upper()}, "{key}", {namespace.upper()}.{k})')
147
+ f.write(f'\nsetattr({namespace.upper()}, "{key}", {namespace.upper()}.{k.replace("-", "_")})')
145
148
 
146
149
  for lang in languages:
147
150
  f.write(f'\n\nsetattr({namespace.upper()}, "{lang}", {lang})')
@@ -7,8 +7,8 @@ class LanguageExtension:
7
7
 
8
8
  class CODEMETA(DefinedNamespace):
9
9
  # uri = "https://w3id.org/nfdi4ing/metadata4ing#"
10
- # Generated with None version 0.2.15
11
- # Date: 2024-04-03 22:35:04.151807
10
+ # Generated with None version 0.2.16
11
+ # Date: 2024-04-08 15:01:30.249226
12
12
  _fail = True
13
13
  softwareSuggestions: URIRef # ['softwareSuggestions']
14
14
  contIntegration: URIRef # ['contIntegration']
@@ -7,8 +7,8 @@ class LanguageExtension:
7
7
 
8
8
  class M4I(DefinedNamespace):
9
9
  # uri = "https://w3id.org/nfdi4ing/metadata4ing#"
10
- # Generated with None version 0.2.15
11
- # Date: 2024-04-03 22:34:52.789096
10
+ # Generated with None version 0.2.16
11
+ # Date: 2024-04-08 15:01:17.817984
12
12
  _fail = True
13
13
  Method: URIRef # ['Methode', 'method']
14
14
  NumericalAssignment: URIRef # ['numerical assignment', 'numerische Zuweisung']
@@ -7,8 +7,8 @@ class LanguageExtension:
7
7
 
8
8
  class OBO(DefinedNamespace):
9
9
  # uri = "https://w3id.org/nfdi4ing/metadata4ing#"
10
- # Generated with None version 0.2.15
11
- # Date: 2024-04-03 22:34:54.041082
10
+ # Generated with None version 0.2.16
11
+ # Date: 2024-04-08 15:01:18.852145
12
12
  _fail = True
13
13
  BFO_0000015: URIRef # ['Prozess', 'process']
14
14
  BFO_0000017: URIRef # ['realisierbare Entität', 'realizable entity']
@@ -7,8 +7,8 @@ class LanguageExtension:
7
7
 
8
8
  class PIVMETA(DefinedNamespace):
9
9
  # uri = "https://w3id.org/nfdi4ing/metadata4ing#"
10
- # Generated with None version 0.2.15
11
- # Date: 2024-04-03 22:35:03.807320
10
+ # Generated with None version 0.2.16
11
+ # Date: 2024-04-08 15:01:29.767768
12
12
  _fail = True
13
13
  time: URIRef # ['time']
14
14
  BackgroundImageGeneration: URIRef # ['background image generation']
@@ -61,7 +61,8 @@ class PIVMETA(DefinedNamespace):
61
61
  HannWindow: URIRef # ['Hann Window']
62
62
  Interpolation: URIRef # ['Interpolation']
63
63
  LeftRightFlip: URIRef # ['left right flip']
64
- MilliM_PER_PIXEL: URIRef # ['millimetre per pixel']
64
+ MilliM_PER_PIXEL = URIRef("https://matthiasprobst.github.io/pivmeta#MilliM-PER-PIXEL") # ['millimetre per pixel']
65
+ PER_PIXEL = URIRef("https://matthiasprobst.github.io/pivmeta#PER-PIXEL") # ['per pixel']
65
66
  ParticleImageVelocimetry: URIRef # ['Particle Image Velocimetry']
66
67
  ParticleTrackingVelocimetry: URIRef # ['Particle Tracking Velocimetry']
67
68
  ReEvaluateWithLargerSample: URIRef # ['re-evaluate with larger sample']
@@ -79,13 +80,20 @@ class PIVMETA(DefinedNamespace):
79
80
  piv_third_peak_correlation_coefficient: URIRef # ['piv_third_peak_correlation_coefficient']
80
81
  first_peak_x_displacement: URIRef # ['first_peak_x_displacement']
81
82
  first_peak_y_displacement: URIRef # ['first_peak_y_displacement']
83
+ x_derivative_of_x_velocity: URIRef # ['x_derivative_of_x_velocity']
84
+ x_derivative_of_y_velocity: URIRef # ['x_derivative_of_y_velocity']
85
+ y_derivative_of_x_velocity: URIRef # ['y_derivative_of_x_velocity']
86
+ y_derivative_of_y_velocity: URIRef # ['y_derivative_of_y_velocity']
87
+ x_derivative_of_z_velocity: URIRef # ['x_derivative_of_z_velocity']
88
+ y_derivative_of_z_velocity: URIRef # ['y_derivative_of_z_velocity']
89
+ z_derivative_of_x_velocity: URIRef # ['z_derivative_of_x_velocity']
82
90
  piv_flag: URIRef # ['piv_flag']
83
91
  image_particle_density: URIRef # ['image_particle_density']
84
92
  image_density: URIRef # ['image_density']
85
93
  image_particle_diameter: URIRef # ['image_particle_diameter']
86
94
  arithmetic_mean_of_image_particle_diameter: URIRef # ['arithmetic_mean_of_image_particle_diameter']
87
95
  standard_deviation_of_image_particle_diameter: URIRef # ['standard_deviation_of_image_particle_diameter']
88
- piv_image_index: URIRef # ['piv_image_index']
96
+ image_index: URIRef # ['image_index']
89
97
  inplane_velocity: URIRef # ['inplane_velocity']
90
98
  x_inplane_velocity: URIRef # ['x_inplane_velocity']
91
99
  y_inplane_velocity: URIRef # ['y_inplane_velocity']
@@ -119,9 +127,9 @@ class PIVMETA(DefinedNamespace):
119
127
  y_final_interrogation_window_size: URIRef # ['y_final_interrogation_window_size']
120
128
  y_initial_interrogation_window_size: URIRef # ['y_initial_interrogation_window_size']
121
129
  y_pixel_coordinate: URIRef # ['y_pixel_coordinate']
122
- x_image_origin_coordinate: URIRef # ['x_image_origin_coordinate']
130
+ x_image_coordinate: URIRef # ['x_image_coordinate']
123
131
  x_origin_offset: URIRef # ['x_origin_offset']
124
- y_image_origin_coordinate: URIRef # ['y_image_origin_coordinate']
132
+ y_image_coordinate: URIRef # ['y_image_coordinate']
125
133
  y_origin_offset: URIRef # ['y_origin_offset']
126
134
  x_coordinate: URIRef # ['x_coordinate']
127
135
  y_coordinate: URIRef # ['y_coordinate']
@@ -194,6 +202,7 @@ setattr(PIVMETA, "Hann_Window", PIVMETA.HannWindow)
194
202
  setattr(PIVMETA, "Interpolation", PIVMETA.Interpolation)
195
203
  setattr(PIVMETA, "left_right_flip", PIVMETA.LeftRightFlip)
196
204
  setattr(PIVMETA, "millimetre_per_pixel", PIVMETA.MilliM_PER_PIXEL)
205
+ setattr(PIVMETA, "per_pixel", PIVMETA.PER_PIXEL)
197
206
  setattr(PIVMETA, "Particle_Image_Velocimetry", PIVMETA.ParticleImageVelocimetry)
198
207
  setattr(PIVMETA, "Particle_Tracking_Velocimetry", PIVMETA.ParticleTrackingVelocimetry)
199
208
  setattr(PIVMETA, "re-evaluate_with_larger_sample", PIVMETA.ReEvaluateWithLargerSample)
@@ -211,13 +220,20 @@ setattr(PIVMETA, "piv_second_peak_correlation_coefficient", PIVMETA.piv_second_p
211
220
  setattr(PIVMETA, "piv_third_peak_correlation_coefficient", PIVMETA.piv_third_peak_correlation_coefficient)
212
221
  setattr(PIVMETA, "first_peak_x_displacement", PIVMETA.first_peak_x_displacement)
213
222
  setattr(PIVMETA, "first_peak_y_displacement", PIVMETA.first_peak_y_displacement)
223
+ setattr(PIVMETA, "x_derivative_of_x_velocity", PIVMETA.x_derivative_of_x_velocity)
224
+ setattr(PIVMETA, "x_derivative_of_y_velocity", PIVMETA.x_derivative_of_y_velocity)
225
+ setattr(PIVMETA, "y_derivative_of_x_velocity", PIVMETA.y_derivative_of_x_velocity)
226
+ setattr(PIVMETA, "y_derivative_of_y_velocity", PIVMETA.y_derivative_of_y_velocity)
227
+ setattr(PIVMETA, "x_derivative_of_z_velocity", PIVMETA.x_derivative_of_z_velocity)
228
+ setattr(PIVMETA, "y_derivative_of_z_velocity", PIVMETA.y_derivative_of_z_velocity)
229
+ setattr(PIVMETA, "z_derivative_of_x_velocity", PIVMETA.z_derivative_of_x_velocity)
214
230
  setattr(PIVMETA, "piv_flag", PIVMETA.piv_flag)
215
231
  setattr(PIVMETA, "image_particle_density", PIVMETA.image_particle_density)
216
232
  setattr(PIVMETA, "image_density", PIVMETA.image_density)
217
233
  setattr(PIVMETA, "image_particle_diameter", PIVMETA.image_particle_diameter)
218
234
  setattr(PIVMETA, "arithmetic_mean_of_image_particle_diameter", PIVMETA.arithmetic_mean_of_image_particle_diameter)
219
235
  setattr(PIVMETA, "standard_deviation_of_image_particle_diameter", PIVMETA.standard_deviation_of_image_particle_diameter)
220
- setattr(PIVMETA, "piv_image_index", PIVMETA.piv_image_index)
236
+ setattr(PIVMETA, "image_index", PIVMETA.image_index)
221
237
  setattr(PIVMETA, "inplane_velocity", PIVMETA.inplane_velocity)
222
238
  setattr(PIVMETA, "x_inplane_velocity", PIVMETA.x_inplane_velocity)
223
239
  setattr(PIVMETA, "y_inplane_velocity", PIVMETA.y_inplane_velocity)
@@ -251,9 +267,9 @@ setattr(PIVMETA, "y_final_interrogation_window_overlap_size", PIVMETA.y_final_in
251
267
  setattr(PIVMETA, "y_final_interrogation_window_size", PIVMETA.y_final_interrogation_window_size)
252
268
  setattr(PIVMETA, "y_initial_interrogation_window_size", PIVMETA.y_initial_interrogation_window_size)
253
269
  setattr(PIVMETA, "y_pixel_coordinate", PIVMETA.y_pixel_coordinate)
254
- setattr(PIVMETA, "x_image_origin_coordinate", PIVMETA.x_image_origin_coordinate)
270
+ setattr(PIVMETA, "x_image_coordinate", PIVMETA.x_image_coordinate)
255
271
  setattr(PIVMETA, "x_origin_offset", PIVMETA.x_origin_offset)
256
- setattr(PIVMETA, "y_image_origin_coordinate", PIVMETA.y_image_origin_coordinate)
272
+ setattr(PIVMETA, "y_image_coordinate", PIVMETA.y_image_coordinate)
257
273
  setattr(PIVMETA, "y_origin_offset", PIVMETA.y_origin_offset)
258
274
  setattr(PIVMETA, "x_coordinate", PIVMETA.x_coordinate)
259
275
  setattr(PIVMETA, "y_coordinate", PIVMETA.y_coordinate)