ogc-na 0.3.56__tar.gz → 0.3.57__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.

Potentially problematic release.


This version of ogc-na might be problematic. Click here for more details.

Files changed (61) hide show
  1. {ogc_na-0.3.56 → ogc_na-0.3.57}/PKG-INFO +2 -2
  2. {ogc_na-0.3.56 → ogc_na-0.3.57}/ogc/na/_version.py +2 -2
  3. {ogc_na-0.3.56 → ogc_na-0.3.57}/ogc/na/annotate_schema.py +5 -4
  4. {ogc_na-0.3.56 → ogc_na-0.3.57}/ogc_na.egg-info/PKG-INFO +2 -2
  5. {ogc_na-0.3.56 → ogc_na-0.3.57}/.github/workflows/mkdocs.yml +0 -0
  6. {ogc_na-0.3.56 → ogc_na-0.3.57}/.github/workflows/python-publish.yml +0 -0
  7. {ogc_na-0.3.56 → ogc_na-0.3.57}/.gitignore +0 -0
  8. {ogc_na-0.3.56 → ogc_na-0.3.57}/MANIFEST.in +0 -0
  9. {ogc_na-0.3.56 → ogc_na-0.3.57}/README.md +0 -0
  10. {ogc_na-0.3.56 → ogc_na-0.3.57}/docs/examples.md +0 -0
  11. {ogc_na-0.3.56 → ogc_na-0.3.57}/docs/gen_ref_pages.py +0 -0
  12. {ogc_na-0.3.56 → ogc_na-0.3.57}/docs/index.md +0 -0
  13. {ogc_na-0.3.56 → ogc_na-0.3.57}/docs/jsonld-uplift.md +0 -0
  14. {ogc_na-0.3.56 → ogc_na-0.3.57}/docs/tutorials.md +0 -0
  15. {ogc_na-0.3.56 → ogc_na-0.3.57}/mkdocs.yml +0 -0
  16. {ogc_na-0.3.56 → ogc_na-0.3.57}/ogc/na/__init__.py +0 -0
  17. {ogc_na-0.3.56 → ogc_na-0.3.57}/ogc/na/domain_config.py +0 -0
  18. {ogc_na-0.3.56 → ogc_na-0.3.57}/ogc/na/download.py +0 -0
  19. {ogc_na-0.3.56 → ogc_na-0.3.57}/ogc/na/exceptions.py +0 -0
  20. {ogc_na-0.3.56 → ogc_na-0.3.57}/ogc/na/gsp.py +0 -0
  21. {ogc_na-0.3.56 → ogc_na-0.3.57}/ogc/na/ingest_json.py +0 -0
  22. {ogc_na-0.3.56 → ogc_na-0.3.57}/ogc/na/input_filters/__init__.py +0 -0
  23. {ogc_na-0.3.56 → ogc_na-0.3.57}/ogc/na/input_filters/csv.py +0 -0
  24. {ogc_na-0.3.56 → ogc_na-0.3.57}/ogc/na/input_filters/xlsx.py +0 -0
  25. {ogc_na-0.3.56 → ogc_na-0.3.57}/ogc/na/input_filters/xml.py +0 -0
  26. {ogc_na-0.3.56 → ogc_na-0.3.57}/ogc/na/models.py +0 -0
  27. {ogc_na-0.3.56 → ogc_na-0.3.57}/ogc/na/profile.py +0 -0
  28. {ogc_na-0.3.56 → ogc_na-0.3.57}/ogc/na/provenance.py +0 -0
  29. {ogc_na-0.3.56 → ogc_na-0.3.57}/ogc/na/update_vocabs.py +0 -0
  30. {ogc_na-0.3.56 → ogc_na-0.3.57}/ogc/na/util.py +0 -0
  31. {ogc_na-0.3.56 → ogc_na-0.3.57}/ogc/na/validation.py +0 -0
  32. {ogc_na-0.3.56 → ogc_na-0.3.57}/ogc_na.egg-info/SOURCES.txt +0 -0
  33. {ogc_na-0.3.56 → ogc_na-0.3.57}/ogc_na.egg-info/dependency_links.txt +0 -0
  34. {ogc_na-0.3.56 → ogc_na-0.3.57}/ogc_na.egg-info/requires.txt +0 -0
  35. {ogc_na-0.3.56 → ogc_na-0.3.57}/ogc_na.egg-info/top_level.txt +0 -0
  36. {ogc_na-0.3.56 → ogc_na-0.3.57}/pyproject.toml +0 -0
  37. {ogc_na-0.3.56 → ogc_na-0.3.57}/rdf/catalog-v001.xml +0 -0
  38. {ogc_na-0.3.56 → ogc_na-0.3.57}/rdf/domaincfg.vocab.ttl +0 -0
  39. {ogc_na-0.3.56 → ogc_na-0.3.57}/requirements.txt +0 -0
  40. {ogc_na-0.3.56 → ogc_na-0.3.57}/setup.cfg +0 -0
  41. {ogc_na-0.3.56 → ogc_na-0.3.57}/setup.py +0 -0
  42. {ogc_na-0.3.56 → ogc_na-0.3.57}/test/__init__.py +0 -0
  43. {ogc_na-0.3.56 → ogc_na-0.3.57}/test/data/empty.ttl +0 -0
  44. {ogc_na-0.3.56 → ogc_na-0.3.57}/test/data/headers.csv +0 -0
  45. {ogc_na-0.3.56 → ogc_na-0.3.57}/test/data/headers.xlsx +0 -0
  46. {ogc_na-0.3.56 → ogc_na-0.3.57}/test/data/no-headers.csv +0 -0
  47. {ogc_na-0.3.56 → ogc_na-0.3.57}/test/data/no-headers.xlsx +0 -0
  48. {ogc_na-0.3.56 → ogc_na-0.3.57}/test/data/profile_tree.ttl +0 -0
  49. {ogc_na-0.3.56 → ogc_na-0.3.57}/test/data/profile_tree_cyclic.ttl +0 -0
  50. {ogc_na-0.3.56 → ogc_na-0.3.57}/test/data/sample-context.jsonld +0 -0
  51. {ogc_na-0.3.56 → ogc_na-0.3.57}/test/data/sample-schema-prop-c.yml +0 -0
  52. {ogc_na-0.3.56 → ogc_na-0.3.57}/test/data/sample-schema.yml +0 -0
  53. {ogc_na-0.3.56 → ogc_na-0.3.57}/test/data/schema-anchors.json +0 -0
  54. {ogc_na-0.3.56 → ogc_na-0.3.57}/test/data/schema-vocab.yml +0 -0
  55. {ogc_na-0.3.56 → ogc_na-0.3.57}/test/data/two-sheets.xlsx +0 -0
  56. {ogc_na-0.3.56 → ogc_na-0.3.57}/test/data/uplift_context_valid.yml +0 -0
  57. {ogc_na-0.3.56 → ogc_na-0.3.57}/test/test_annotate_schema.py +0 -0
  58. {ogc_na-0.3.56 → ogc_na-0.3.57}/test/test_ingest_json.py +0 -0
  59. {ogc_na-0.3.56 → ogc_na-0.3.57}/test/test_input_filters_csv.py +0 -0
  60. {ogc_na-0.3.56 → ogc_na-0.3.57}/test/test_input_filters_xlsx.py +0 -0
  61. {ogc_na-0.3.56 → ogc_na-0.3.57}/test/test_profile.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: ogc_na
3
- Version: 0.3.56
3
+ Version: 0.3.57
4
4
  Summary: OGC Naming Authority tools
5
5
  Author-email: Rob Atkinson <ratkinson@ogc.org>, Piotr Zaborowski <pzaborowski@ogc.org>, Alejandro Villar <avillar@ogc.org>
6
6
  Project-URL: Homepage, https://github.com/opengeospatial/ogc-na-tools/
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.3.56'
16
- __version_tuple__ = version_tuple = (0, 3, 56)
15
+ __version__ = version = '0.3.57'
16
+ __version_tuple__ = version_tuple = (0, 3, 57)
@@ -548,7 +548,7 @@ class SchemaAnnotator:
548
548
  if vocab and ':' not in prop_ctx and prop_ctx not in JSON_LD_KEYWORDS:
549
549
  prop_ctx = f"{vocab}{prop_ctx}"
550
550
  return {'@id': prop_ctx}
551
- elif '@id' not in prop_ctx and not vocab:
551
+ elif '@id' not in prop_ctx and '@reverse' not in prop_ctx and not vocab:
552
552
  raise ValueError(f'Missing @id for property {prop} in context {json.dumps(ctx, indent=2)}')
553
553
  else:
554
554
  result = {k: v for k, v in prop_ctx.items() if k in JSON_LD_KEYWORDS}
@@ -777,10 +777,11 @@ class ContextBuilder:
777
777
  self._missed_properties[full_property_path_str] = False
778
778
  prop_context['@' + term[len(ANNOTATION_PREFIX):]] = term_val
779
779
 
780
- if isinstance(prop_context.get('@id'), str):
781
- self.visited_properties[full_property_path_str] = prop_context['@id']
780
+ if isinstance(prop_context.get('@id'), str) or isinstance(prop_context.get('@reverse'), str):
781
+ prop_id_value = prop_context.get('@id', prop_context.get('@reverse'))
782
+ self.visited_properties[full_property_path_str] = prop_id_value
782
783
  self._missed_properties[full_property_path_str] = False
783
- if prop_context['@id'] in ('@nest', '@graph'):
784
+ if prop_id_value in ('@nest', '@graph'):
784
785
  merge_contexts(onto_context, process_subschema(prop_val, from_schema, full_property_path))
785
786
  else:
786
787
  merge_contexts(prop_context['@context'],
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: ogc_na
3
- Version: 0.3.56
3
+ Version: 0.3.57
4
4
  Summary: OGC Naming Authority tools
5
5
  Author-email: Rob Atkinson <ratkinson@ogc.org>, Piotr Zaborowski <pzaborowski@ogc.org>, Alejandro Villar <avillar@ogc.org>
6
6
  Project-URL: Homepage, https://github.com/opengeospatial/ogc-na-tools/
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