ontolutils 0.2.9__tar.gz → 0.2.11__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 (42) hide show
  1. {ontolutils-0.2.9 → ontolutils-0.2.11}/PKG-INFO +1 -1
  2. {ontolutils-0.2.9 → ontolutils-0.2.11}/ontolutils/classes/query_util.py +13 -5
  3. {ontolutils-0.2.9 → ontolutils-0.2.11}/ontolutils/classes/thing.py +22 -31
  4. {ontolutils-0.2.9 → ontolutils-0.2.11}/ontolutils/classes/utils.py +2 -1
  5. {ontolutils-0.2.9 → ontolutils-0.2.11}/ontolutils/namespacelib/__dev.py +34 -28
  6. {ontolutils-0.2.9 → ontolutils-0.2.11}/ontolutils/namespacelib/__init__.py +4 -4
  7. {ontolutils-0.2.9 → ontolutils-0.2.11}/ontolutils/namespacelib/codemeta.py +2 -2
  8. {ontolutils-0.2.9 → ontolutils-0.2.11}/ontolutils/namespacelib/m4i.py +2 -2
  9. {ontolutils-0.2.9 → ontolutils-0.2.11}/ontolutils/namespacelib/obo.py +2 -2
  10. {ontolutils-0.2.9 → ontolutils-0.2.11}/ontolutils/namespacelib/pivmeta.py +38 -14
  11. ontolutils-0.2.11/ontolutils/namespacelib/qudt_kind.py +1156 -0
  12. ontolutils-0.2.11/ontolutils/namespacelib/qudt_unit.py +2521 -0
  13. ontolutils-0.2.11/ontolutils/namespacelib/schema.py +2858 -0
  14. {ontolutils-0.2.9 → ontolutils-0.2.11}/ontolutils/namespacelib/ssno.py +6 -4
  15. {ontolutils-0.2.9 → ontolutils-0.2.11}/ontolutils.egg-info/PKG-INFO +1 -1
  16. {ontolutils-0.2.9 → ontolutils-0.2.11}/setup.cfg +1 -1
  17. {ontolutils-0.2.9 → ontolutils-0.2.11}/tests/test_classes.py +105 -7
  18. {ontolutils-0.2.9 → ontolutils-0.2.11}/tests/test_namespaces.py +12 -0
  19. ontolutils-0.2.9/ontolutils/namespacelib/qudt_kind.py +0 -22591
  20. ontolutils-0.2.9/ontolutils/namespacelib/qudt_unit.py +0 -35763
  21. ontolutils-0.2.9/ontolutils/namespacelib/schema.py +0 -16584
  22. {ontolutils-0.2.9 → ontolutils-0.2.11}/LICENSE +0 -0
  23. {ontolutils-0.2.9 → ontolutils-0.2.11}/README.md +0 -0
  24. {ontolutils-0.2.9 → ontolutils-0.2.11}/ontolutils/__init__.py +0 -0
  25. {ontolutils-0.2.9 → ontolutils-0.2.11}/ontolutils/_version.py +0 -0
  26. {ontolutils-0.2.9 → ontolutils-0.2.11}/ontolutils/cache.py +0 -0
  27. {ontolutils-0.2.9 → ontolutils-0.2.11}/ontolutils/classes/__init__.py +0 -0
  28. {ontolutils-0.2.9 → ontolutils-0.2.11}/ontolutils/classes/decorator.py +0 -0
  29. {ontolutils-0.2.9 → ontolutils-0.2.11}/ontolutils/classes/typing.py +0 -0
  30. {ontolutils-0.2.9 → ontolutils-0.2.11}/ontolutils/namespacelib/_iana_utils.py +0 -0
  31. {ontolutils-0.2.9 → ontolutils-0.2.11}/ontolutils.egg-info/SOURCES.txt +0 -0
  32. {ontolutils-0.2.9 → ontolutils-0.2.11}/ontolutils.egg-info/dependency_links.txt +0 -0
  33. {ontolutils-0.2.9 → ontolutils-0.2.11}/ontolutils.egg-info/requires.txt +0 -0
  34. {ontolutils-0.2.9 → ontolutils-0.2.11}/ontolutils.egg-info/top_level.txt +0 -0
  35. {ontolutils-0.2.9 → ontolutils-0.2.11}/pyproject.toml +0 -0
  36. {ontolutils-0.2.9 → ontolutils-0.2.11}/setup.py +0 -0
  37. {ontolutils-0.2.9 → ontolutils-0.2.11}/tests/test_decorator.py +0 -0
  38. {ontolutils-0.2.9 → ontolutils-0.2.11}/tests/test_query.py +0 -0
  39. {ontolutils-0.2.9 → ontolutils-0.2.11}/tests/test_readme.py +0 -0
  40. {ontolutils-0.2.9 → ontolutils-0.2.11}/tests/test_typing.py +0 -0
  41. {ontolutils-0.2.9 → ontolutils-0.2.11}/tests/test_utils.py +0 -0
  42. {ontolutils-0.2.9 → ontolutils-0.2.11}/tests/test_version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ontolutils
3
- Version: 0.2.9
3
+ Version: 0.2.11
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
@@ -2,9 +2,8 @@
2
2
  import json
3
3
  import logging
4
4
  import pathlib
5
- from typing import Union, Dict, List, Optional
6
-
7
5
  import rdflib
6
+ from typing import Union, Dict, List, Optional
8
7
 
9
8
  from .decorator import URIRefManager, NamespaceManager
10
9
  from .thing import Thing
@@ -291,12 +290,21 @@ def query(cls: Thing,
291
290
 
292
291
  logger.debug(f'Expanding SPARQL results...')
293
292
  kwargs: Dict = expand_sparql_res(res.bindings, g, False, False)
293
+
294
+ # in case that the model field names are different than the IRI names, we need to find the
295
+ # corresponding names. The urirefs translate the class model fields to a <prefix>:<name> format.
296
+ # As we have the latter, the inverse dictionary let's us find the model field names.
297
+ from . import get_urirefs
298
+ inverse_urirefs = {v.split(':', 1)[-1]: k for k, v in get_urirefs(cls).items()}
299
+
294
300
  if limit is not None:
295
301
  out = []
296
302
  for i, (k, v) in enumerate(kwargs.items()):
303
+ model_field_dict = {inverse_urirefs[key]: value for key, value in v.items()}
297
304
  if limit == 1:
298
- return cls.model_validate({'id': k, **v})
299
- out.append(cls.model_validate({'id': k, **v}))
305
+ return cls.model_validate({'id': k, **model_field_dict})
306
+ out.append(cls.model_validate({'id': k, **model_field_dict}))
300
307
  if i == limit:
301
308
  return out
302
- return [cls.model_validate({'id': k, **v}) for k, v in kwargs.items()]
309
+ return [cls.model_validate({'id': k, **{inverse_urirefs[key]: value for key, value in v.items()}}) for k, v in
310
+ kwargs.items()]
@@ -3,6 +3,7 @@ import json
3
3
  import logging
4
4
  import pathlib
5
5
  import rdflib
6
+ import warnings
6
7
  from datetime import datetime
7
8
  from pydantic import HttpUrl, FileUrl, BaseModel, ConfigDict
8
9
  from typing import Dict, Union, Optional
@@ -162,7 +163,7 @@ class Thing(ThingModel):
162
163
  logger.debug('Initializing RDF graph to dump the Thing to JSON-LD')
163
164
 
164
165
  # lets auto-generate the context
165
- at_context: Dict = NamespaceManager.get(self.__class__, {})
166
+ at_context: Dict = NamespaceManager.get(self.__class__, {}).copy()
166
167
 
167
168
  if context is None:
168
169
  context = {}
@@ -204,38 +205,25 @@ class Thing(ThingModel):
204
205
 
205
206
  uri_ref_manager = URIRefManager.get(obj.__class__, None)
206
207
  at_context.update(NamespaceManager.get(obj.__class__, {}))
208
+
207
209
  if uri_ref_manager is None:
208
210
  return obj
209
211
 
210
212
  try:
211
- if exclude_none:
212
- serialized_fields = {}
213
- for k in obj.model_dump(exclude_none=True):
214
- value = getattr(obj, k)
215
- if value is not None and k not in ('id', '@id'):
216
- iri = uri_ref_manager.get(k, k)
217
- if _is_http_url(iri):
218
- serialized_fields[iri] = value
219
- if isinstance(value, str): # this turn URLs into base strings
220
- ns, key = split_URIRef(iri)
221
- if key != k and not resolve_keys:
222
- at_context[k] = resolve_iri(iri,
223
- at_context) # the key is not resolved, hence the key and iri is put into context dict:
224
- serialized_fields[k] = str(value)
225
- else:
226
- serialized_fields[iri] = str(value)
227
- else:
228
- serialized_fields[iri] = value
229
- else:
230
- serialized_fields = {}
231
- for k in obj.model_dump(exclude_none=True):
232
- value = getattr(obj, k)
233
- if value not in ('id', '@id'):
234
- iri = uri_ref_manager[k]
235
- if _is_http_url(iri):
236
- serialized_fields[k] = value
237
- else:
238
- serialized_fields[iri] = value
213
+ serialized_fields = {}
214
+ for k in obj.model_dump(exclude_none=exclude_none):
215
+ value = getattr(obj, k)
216
+ if value is not None and k not in ('id', '@id'):
217
+ iri = uri_ref_manager.get(k, k)
218
+ if _is_http_url(iri):
219
+ serialized_fields[iri] = value
220
+
221
+ ns, key = split_URIRef(iri)
222
+ if key != k and not resolve_keys:
223
+ at_context[k] = resolve_iri(iri, at_context)
224
+ serialized_fields[k] = value
225
+ else:
226
+ serialized_fields[iri] = value
239
227
  except AttributeError as e:
240
228
  raise AttributeError(f"Could not serialize {obj} ({obj.__class__}). Orig. err: {e}") from e
241
229
 
@@ -257,6 +245,8 @@ class Thing(ThingModel):
257
245
  serialized_fields[key] = serialize_fields(v, exclude_none=exclude_none)
258
246
  elif isinstance(v, list):
259
247
  serialized_fields[key] = [serialize_fields(i, exclude_none=exclude_none) for i in v]
248
+ elif isinstance(v, (int, float)):
249
+ serialized_fields[key] = v
260
250
  else:
261
251
  serialized_fields[key] = str(v)
262
252
 
@@ -381,8 +371,9 @@ class Thing(ThingModel):
381
371
  from . import query
382
372
  if data is not None and isinstance(data, str):
383
373
  if 'http://schema.org/' in data:
384
- print(
385
- 'Replacing http with https in the JSON-LD data. This is a workaround for the schema.org inconsistency.')
374
+ warnings.warn('Replacing http with https in the JSON-LD data. '
375
+ 'This is a workaround for the schema.org inconsistency.',
376
+ UserWarning)
386
377
  data = data.replace('http://schema.org/', 'https://schema.org/')
387
378
  return query(cls, source=source, data=data, limit=limit, context=context)
388
379
 
@@ -43,7 +43,8 @@ def split_URIRef(uri: rdflib.URIRef) -> List[Union[str, None]]:
43
43
  _uri = str(uri)
44
44
  if _uri.startswith('http'):
45
45
  if '#' in _uri:
46
- return _uri.rsplit('#', 1)
46
+ _split = _uri.rsplit('#', 1)
47
+ return [f'{_split[0]}#', _split[1]]
47
48
  _split = _uri.rsplit('/', 1)
48
49
  return [f'{_split[0]}/', _split[1]]
49
50
  if ':' in _uri:
@@ -35,6 +35,7 @@ def generate_namespace_file_from_ttl(namespace: str,
35
35
  else:
36
36
  target_dir = pathlib.Path(target_dir)
37
37
 
38
+ fields = []
38
39
  with open(target_dir / f'{namespace}.py', 'w',
39
40
  encoding='UTF8') as f:
40
41
  f.write('from rdflib.namespace import DefinedNamespace, Namespace\n')
@@ -45,15 +46,18 @@ def generate_namespace_file_from_ttl(namespace: str,
45
46
 
46
47
  for s in g.subjects():
47
48
  u = str(s).rsplit('/', 1)[-1].replace('-', '_')
48
- if '#' in u:
49
- warnings.warn(f'Skipping {u} ({s}) because it has a "#" in it.')
50
- elif u[0].isdigit():
51
- warnings.warn(f'Skipping {u} ({s}) because it starts with a digit.')
52
- elif u in ('True', 'False', 'yield'):
53
- warnings.warn(f'Skipping {u} ({s}) because it starts with "yield".')
54
- else:
55
- uri = str(s)
56
- f.write(f'\n {u} = URIRef("{uri}")')
49
+ if u not in fields:
50
+ fields.append(u)
51
+ if '#' in u:
52
+ warnings.warn(f'Skipping {u} ({s}) because it has a "#" in it.')
53
+ elif u[0].isdigit():
54
+ warnings.warn(f'Skipping {u} ({s}) because it starts with a digit.')
55
+ elif u in ('True', 'False', 'yield'):
56
+ warnings.warn(f'Skipping {u} ({s}) because it starts with "yield".')
57
+ else:
58
+ uri = str(s)
59
+ f.write(f'\n {u} = URIRef("{uri}")')
60
+ # f.write(f'\n {u}: URIRef')
57
61
 
58
62
  f.write(f'\n\n _NS = Namespace("{ns}")')
59
63
 
@@ -103,6 +107,7 @@ def generate_namespace_file_from_context(namespace: str,
103
107
  else:
104
108
  target_dir = pathlib.Path(target_dir)
105
109
 
110
+ fields = []
106
111
  with open(target_dir / f'{namespace}.py', 'w',
107
112
  encoding='UTF8') as f:
108
113
  f.write('from rdflib.namespace import DefinedNamespace, Namespace\n')
@@ -114,7 +119,9 @@ def generate_namespace_file_from_context(namespace: str,
114
119
  f.write(f'\n # Date: {datetime.datetime.now()}')
115
120
  f.write(f'\n _fail = {fail}')
116
121
  for k, v in iris.items():
117
- f.write(f'\n {k}: URIRef # {v["keys"]}')
122
+ if k not in fields:
123
+ fields.append(k)
124
+ f.write(f'\n {k}: URIRef # {v["keys"]}')
118
125
 
119
126
  f.write(f'\n\n _NS = Namespace("{url}")')
120
127
 
@@ -296,35 +303,34 @@ def codemeta():
296
303
  def build_namespace_files():
297
304
  """Call this only if you are a developer and want to build the namespace files"""
298
305
  with open(__package_dir__ / '__init__.py', 'w') as f:
299
- f.write('Auto-generated file. Do not edit!\n')
306
+ f.write('"""Auto-generated file. Do not edit!"""\n')
300
307
  # f.write('from ._version import __version__\n')
301
308
 
302
309
  with open(__package_dir__ / '__init__.py', 'a') as f:
303
- if False:
304
- m4i()
305
- f.write('from .m4i import M4I\n')
310
+ m4i()
306
311
 
307
- obo()
308
- f.write('from .obo import OBO\n')
312
+ obo()
309
313
 
310
- qudt_unit()
311
- f.write('from .qudt_unit import QUDT_UNIT\n')
314
+ qudt_unit()
312
315
 
313
- qudt_quantitykind()
314
- f.write('from .qudt_kind import QUDT_KIND\n')
316
+ qudt_quantitykind()
315
317
 
316
318
  pivmeta()
317
- f.write('from .pivmeta import PIVMETA\n')
318
319
 
319
- if False:
320
- codemeta()
321
- f.write('from .codemeta import CODEMETA\n')
320
+ codemeta()
322
321
 
323
- schema()
324
- f.write('from .schema import SCHEMA\n')
322
+ schema()
325
323
 
326
- ssno()
327
- f.write('from .ssno import SSNO\n')
324
+ ssno()
325
+ f.write('from .m4i import M4I\n')
326
+ f.write('from .obo import OBO\n')
327
+ f.write('from .pivmeta import PIVMETA\n')
328
+ f.write('from .codemeta import CODEMETA\n')
329
+ f.write('from .qudt_unit import QUDT_UNIT\n')
330
+ f.write('from .qudt_kind import QUDT_KIND\n')
331
+ f.write('from .schema import SCHEMA\n')
332
+ f.write('from .ssno import SSNO\n')
333
+ f.write('from ._iana_utils import IANA\n')
328
334
 
329
335
  for jld in __package_dir__.glob('*.jsonld'):
330
336
  jld.unlink()
@@ -1,10 +1,10 @@
1
- """Namespace library for ontologies and vocabularies."""
2
- from ._iana_utils import IANA
3
- from .codemeta import CODEMETA
1
+ """Auto-generated file. Do not edit!"""
4
2
  from .m4i import M4I
5
3
  from .obo import OBO
6
4
  from .pivmeta import PIVMETA
7
- from .qudt_kind import QUDT_KIND
5
+ from .codemeta import CODEMETA
8
6
  from .qudt_unit import QUDT_UNIT
7
+ from .qudt_kind import QUDT_KIND
9
8
  from .schema import SCHEMA
10
9
  from .ssno import SSNO
10
+ from ._iana_utils import IANA
@@ -7,8 +7,8 @@ class LanguageExtension:
7
7
 
8
8
  class CODEMETA(DefinedNamespace):
9
9
  # uri = "https://w3id.org/nfdi4ing/metadata4ing#"
10
- # Generated with namespacelib version 0.3.0
11
- # Date: 2024-03-02 13:35:43.964145
10
+ # Generated with None version 0.2.10
11
+ # Date: 2024-03-24 15:10:54.311802
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 namespacelib version 0.3.0
11
- # Date: 2024-03-02 13:33:42.436694
10
+ # Generated with None version 0.2.10
11
+ # Date: 2024-03-24 15:10:44.476048
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 namespacelib version 0.3.0
11
- # Date: 2024-03-02 13:33:47.083605
10
+ # Generated with None version 0.2.10
11
+ # Date: 2024-03-24 15:10:45.600748
12
12
  _fail = True
13
13
  BFO_0000015: URIRef # ['Prozess', 'process']
14
14
  BFO_0000017: URIRef # ['realisierbare Entität', 'realizable entity']
@@ -7,13 +7,12 @@ class LanguageExtension:
7
7
 
8
8
  class PIVMETA(DefinedNamespace):
9
9
  # uri = "https://w3id.org/nfdi4ing/metadata4ing#"
10
- # Generated with None version 0.2.8
11
- # Date: 2024-03-21 14:56:33.894991
10
+ # Generated with None version 0.2.10
11
+ # Date: 2024-03-24 15:10:53.848424
12
12
  _fail = True
13
13
  time: URIRef # ['time']
14
14
  BackgroundImageGeneration: URIRef # ['background image generation']
15
15
  BackgroundSubtractionMethod: URIRef # ['background subtraction']
16
- CorrelationMethod: URIRef # ['correlation method']
17
16
  DigitalCamera: URIRef # ['Digital Camera']
18
17
  DigitalCameraModel: URIRef # ['Digital Camera Model']
19
18
  ImageDewarp: URIRef # ['image dewarp']
@@ -42,6 +41,7 @@ class PIVMETA(DefinedNamespace):
42
41
  useOutlierReplacementScheme: URIRef # ['uses outlier replacement scheme']
43
42
  filenamePattern: URIRef # ['filename pattern']
44
43
  fnumber: URIRef # ['fnumber']
44
+ material: URIRef # ['material']
45
45
  numberOfRecords: URIRef # ['number of records']
46
46
  ExperimentalImage: URIRef # ['experimental image']
47
47
  GaussWindowWeightingFunction: URIRef # ['gauss']
@@ -66,26 +66,37 @@ class PIVMETA(DefinedNamespace):
66
66
  image_particle_density: URIRef # ['image_particle_density']
67
67
  image_density: URIRef # ['image_density']
68
68
  image_particle_diameter: URIRef # ['image_particle_diameter']
69
+ arithmetic_mean_of_image_particle_diameter: URIRef # ['arithmetic_mean_of_image_particle_diameter']
70
+ standard_deviation_of_image_particle_diameter: URIRef # ['standard_deviation_of_image_particle_diameter']
69
71
  piv_image_index: URIRef # ['piv_image_index']
70
72
  inplane_velocity: URIRef # ['inplane_velocity']
73
+ x_inplane_velocity: URIRef # ['x_inplane_velocity']
74
+ y_inplane_velocity: URIRef # ['y_inplane_velocity']
71
75
  model_laser_sheet_thickness: URIRef # ['model_laser_sheet_thickness']
72
76
  laser_sheet_thickness: URIRef # ['laser_sheet_thickness']
73
77
  model_laser_sheet_shape_factor: URIRef # ['model_laser_sheet_shape_factor']
74
- mean_seeding_particle_size: URIRef # ['mean_seeding_particle_size']
78
+ arithmetic_mean_of_seeding_particle_size: URIRef # ['arithmetic_mean_of_seeding_particle_size']
79
+ standard_deviation_of_seeding_particle_size: URIRef # ['standard_deviation_of_seeding_particle_size']
75
80
  number_of_particles: URIRef # ['number_of_particles']
76
81
  laser_pulse_delay: URIRef # ['laser_pulse_delay']
77
82
  saturated_pixel_number: URIRef # ['saturated_pixel_number']
78
83
  second_peak_x_displacement: URIRef # ['second_peak_x_displacement']
79
84
  second_peak_y_displacement: URIRef # ['second_peak_y_displacement']
80
- seeding_material: URIRef # ['seeding_material']
81
- standard_deviation_of_image_particle_diameter: URIRef # ['standard_deviation_of_image_particle_diameter']
82
85
  third_peak_x_displacement: URIRef # ['third_peak_x_displacement']
83
86
  third_peak_y_displacement: URIRef # ['third_peak_y_displacement']
84
87
  relative_time: URIRef # ['relative_time']
85
- velocity: URIRef # ['velocity']
88
+ magnitude_of_velocity: URIRef # ['magnitude_of_velocity']
89
+ x_velocity: URIRef # ['x_velocity']
90
+ y_velocity: URIRef # ['y_velocity']
91
+ z_velocity: URIRef # ['z_velocity']
86
92
  displacement: URIRef # ['displacement']
93
+ x_displacement: URIRef # ['x_displacement']
94
+ y_displacement: URIRef # ['y_displacement']
95
+ final_interrogation_window_overlap_size: URIRef # ['final_interrogation_window_overlap_size']
87
96
  x_final_interrogation_window_overlap_size: URIRef # ['x_final_interrogation_window_overlap_size']
97
+ final_interrogation_window_size: URIRef # ['final_interrogation_window_size']
88
98
  x_final_interrogation_window_size: URIRef # ['x_final_interrogation_window_size']
99
+ initial_interrogation_window_size: URIRef # ['initial_interrogation_window_size']
89
100
  x_initial_interrogation_window_size: URIRef # ['x_initial_interrogation_window_size']
90
101
  x_pixel_coordinate: URIRef # ['x_pixel_coordinate']
91
102
  y_final_interrogation_window_overlap_size: URIRef # ['y_final_interrogation_window_overlap_size']
@@ -93,7 +104,8 @@ class PIVMETA(DefinedNamespace):
93
104
  y_initial_interrogation_window_size: URIRef # ['y_initial_interrogation_window_size']
94
105
  y_pixel_coordinate: URIRef # ['y_pixel_coordinate']
95
106
  pixel_origin: URIRef # ['pixel_origin']
96
- coordinate: URIRef # ['coordinate']
107
+ x_coordinate: URIRef # ['x_coordinate']
108
+ y_coordinate: URIRef # ['y_coordinate']
97
109
  signal_to_noise_ratio: URIRef # ['signal_to_noise_ratio']
98
110
  least_square_residual_of_z_displacement_reconstruction: URIRef # ['least_square_residual_of_z_displacement_reconstruction']
99
111
  piv_scaling_factor: URIRef # ['piv_scaling_factor']
@@ -112,7 +124,6 @@ class PIVMETA(DefinedNamespace):
112
124
  setattr(PIVMETA, "time", PIVMETA.time)
113
125
  setattr(PIVMETA, "background_image_generation", PIVMETA.BackgroundImageGeneration)
114
126
  setattr(PIVMETA, "background_subtraction", PIVMETA.BackgroundSubtractionMethod)
115
- setattr(PIVMETA, "correlation_method", PIVMETA.CorrelationMethod)
116
127
  setattr(PIVMETA, "Digital_Camera", PIVMETA.DigitalCamera)
117
128
  setattr(PIVMETA, "Digital_Camera_Model", PIVMETA.DigitalCameraModel)
118
129
  setattr(PIVMETA, "image_dewarp", PIVMETA.ImageDewarp)
@@ -141,6 +152,7 @@ setattr(PIVMETA, "piv_image_type", PIVMETA.pivImageType)
141
152
  setattr(PIVMETA, "uses_outlier_replacement_scheme", PIVMETA.useOutlierReplacementScheme)
142
153
  setattr(PIVMETA, "filename_pattern", PIVMETA.filenamePattern)
143
154
  setattr(PIVMETA, "fnumber", PIVMETA.fnumber)
155
+ setattr(PIVMETA, "material", PIVMETA.material)
144
156
  setattr(PIVMETA, "number_of_records", PIVMETA.numberOfRecords)
145
157
  setattr(PIVMETA, "experimental_image", PIVMETA.ExperimentalImage)
146
158
  setattr(PIVMETA, "gauss", PIVMETA.GaussWindowWeightingFunction)
@@ -165,26 +177,37 @@ setattr(PIVMETA, "piv_flag", PIVMETA.piv_flag)
165
177
  setattr(PIVMETA, "image_particle_density", PIVMETA.image_particle_density)
166
178
  setattr(PIVMETA, "image_density", PIVMETA.image_density)
167
179
  setattr(PIVMETA, "image_particle_diameter", PIVMETA.image_particle_diameter)
180
+ setattr(PIVMETA, "arithmetic_mean_of_image_particle_diameter", PIVMETA.arithmetic_mean_of_image_particle_diameter)
181
+ setattr(PIVMETA, "standard_deviation_of_image_particle_diameter", PIVMETA.standard_deviation_of_image_particle_diameter)
168
182
  setattr(PIVMETA, "piv_image_index", PIVMETA.piv_image_index)
169
183
  setattr(PIVMETA, "inplane_velocity", PIVMETA.inplane_velocity)
184
+ setattr(PIVMETA, "x_inplane_velocity", PIVMETA.x_inplane_velocity)
185
+ setattr(PIVMETA, "y_inplane_velocity", PIVMETA.y_inplane_velocity)
170
186
  setattr(PIVMETA, "model_laser_sheet_thickness", PIVMETA.model_laser_sheet_thickness)
171
187
  setattr(PIVMETA, "laser_sheet_thickness", PIVMETA.laser_sheet_thickness)
172
188
  setattr(PIVMETA, "model_laser_sheet_shape_factor", PIVMETA.model_laser_sheet_shape_factor)
173
- setattr(PIVMETA, "mean_seeding_particle_size", PIVMETA.mean_seeding_particle_size)
189
+ setattr(PIVMETA, "arithmetic_mean_of_seeding_particle_size", PIVMETA.arithmetic_mean_of_seeding_particle_size)
190
+ setattr(PIVMETA, "standard_deviation_of_seeding_particle_size", PIVMETA.standard_deviation_of_seeding_particle_size)
174
191
  setattr(PIVMETA, "number_of_particles", PIVMETA.number_of_particles)
175
192
  setattr(PIVMETA, "laser_pulse_delay", PIVMETA.laser_pulse_delay)
176
193
  setattr(PIVMETA, "saturated_pixel_number", PIVMETA.saturated_pixel_number)
177
194
  setattr(PIVMETA, "second_peak_x_displacement", PIVMETA.second_peak_x_displacement)
178
195
  setattr(PIVMETA, "second_peak_y_displacement", PIVMETA.second_peak_y_displacement)
179
- setattr(PIVMETA, "seeding_material", PIVMETA.seeding_material)
180
- setattr(PIVMETA, "standard_deviation_of_image_particle_diameter", PIVMETA.standard_deviation_of_image_particle_diameter)
181
196
  setattr(PIVMETA, "third_peak_x_displacement", PIVMETA.third_peak_x_displacement)
182
197
  setattr(PIVMETA, "third_peak_y_displacement", PIVMETA.third_peak_y_displacement)
183
198
  setattr(PIVMETA, "relative_time", PIVMETA.relative_time)
184
- setattr(PIVMETA, "velocity", PIVMETA.velocity)
199
+ setattr(PIVMETA, "magnitude_of_velocity", PIVMETA.magnitude_of_velocity)
200
+ setattr(PIVMETA, "x_velocity", PIVMETA.x_velocity)
201
+ setattr(PIVMETA, "y_velocity", PIVMETA.y_velocity)
202
+ setattr(PIVMETA, "z_velocity", PIVMETA.z_velocity)
185
203
  setattr(PIVMETA, "displacement", PIVMETA.displacement)
204
+ setattr(PIVMETA, "x_displacement", PIVMETA.x_displacement)
205
+ setattr(PIVMETA, "y_displacement", PIVMETA.y_displacement)
206
+ setattr(PIVMETA, "final_interrogation_window_overlap_size", PIVMETA.final_interrogation_window_overlap_size)
186
207
  setattr(PIVMETA, "x_final_interrogation_window_overlap_size", PIVMETA.x_final_interrogation_window_overlap_size)
208
+ setattr(PIVMETA, "final_interrogation_window_size", PIVMETA.final_interrogation_window_size)
187
209
  setattr(PIVMETA, "x_final_interrogation_window_size", PIVMETA.x_final_interrogation_window_size)
210
+ setattr(PIVMETA, "initial_interrogation_window_size", PIVMETA.initial_interrogation_window_size)
188
211
  setattr(PIVMETA, "x_initial_interrogation_window_size", PIVMETA.x_initial_interrogation_window_size)
189
212
  setattr(PIVMETA, "x_pixel_coordinate", PIVMETA.x_pixel_coordinate)
190
213
  setattr(PIVMETA, "y_final_interrogation_window_overlap_size", PIVMETA.y_final_interrogation_window_overlap_size)
@@ -192,7 +215,8 @@ setattr(PIVMETA, "y_final_interrogation_window_size", PIVMETA.y_final_interrogat
192
215
  setattr(PIVMETA, "y_initial_interrogation_window_size", PIVMETA.y_initial_interrogation_window_size)
193
216
  setattr(PIVMETA, "y_pixel_coordinate", PIVMETA.y_pixel_coordinate)
194
217
  setattr(PIVMETA, "pixel_origin", PIVMETA.pixel_origin)
195
- setattr(PIVMETA, "coordinate", PIVMETA.coordinate)
218
+ setattr(PIVMETA, "x_coordinate", PIVMETA.x_coordinate)
219
+ setattr(PIVMETA, "y_coordinate", PIVMETA.y_coordinate)
196
220
  setattr(PIVMETA, "signal_to_noise_ratio", PIVMETA.signal_to_noise_ratio)
197
221
  setattr(PIVMETA, "least_square_residual_of_z_displacement_reconstruction", PIVMETA.least_square_residual_of_z_displacement_reconstruction)
198
222
  setattr(PIVMETA, "piv_scaling_factor", PIVMETA.piv_scaling_factor)