ogc-na 0.2.30__tar.gz → 0.2.32__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 (48) hide show
  1. {ogc_na-0.2.30 → ogc_na-0.2.32}/PKG-INFO +1 -1
  2. {ogc_na-0.2.30 → ogc_na-0.2.32}/ogc/na/ingest_json.py +4 -1
  3. {ogc_na-0.2.30 → ogc_na-0.2.32}/ogc/na/util.py +3 -1
  4. {ogc_na-0.2.30 → ogc_na-0.2.32}/ogc_na.egg-info/PKG-INFO +1 -1
  5. {ogc_na-0.2.30 → ogc_na-0.2.32}/.github/workflows/python-publish.yml +0 -0
  6. {ogc_na-0.2.30 → ogc_na-0.2.32}/.gitignore +0 -0
  7. {ogc_na-0.2.30 → ogc_na-0.2.32}/MANIFEST.in +0 -0
  8. {ogc_na-0.2.30 → ogc_na-0.2.32}/README.md +0 -0
  9. {ogc_na-0.2.30 → ogc_na-0.2.32}/docs/examples.md +0 -0
  10. {ogc_na-0.2.30 → ogc_na-0.2.32}/docs/gen_ref_pages.py +0 -0
  11. {ogc_na-0.2.30 → ogc_na-0.2.32}/docs/index.md +0 -0
  12. {ogc_na-0.2.30 → ogc_na-0.2.32}/docs/tutorials.md +0 -0
  13. {ogc_na-0.2.30 → ogc_na-0.2.32}/mkdocs.yml +0 -0
  14. {ogc_na-0.2.30 → ogc_na-0.2.32}/ogc/na/__init__.py +0 -0
  15. {ogc_na-0.2.30 → ogc_na-0.2.32}/ogc/na/annotate_schema.py +0 -0
  16. {ogc_na-0.2.30 → ogc_na-0.2.32}/ogc/na/domain_config.py +0 -0
  17. {ogc_na-0.2.30 → ogc_na-0.2.32}/ogc/na/download.py +0 -0
  18. {ogc_na-0.2.30 → ogc_na-0.2.32}/ogc/na/gsp.py +0 -0
  19. {ogc_na-0.2.30 → ogc_na-0.2.32}/ogc/na/input_filters/__init__.py +0 -0
  20. {ogc_na-0.2.30 → ogc_na-0.2.32}/ogc/na/input_filters/csv.py +0 -0
  21. {ogc_na-0.2.30 → ogc_na-0.2.32}/ogc/na/profile.py +0 -0
  22. {ogc_na-0.2.30 → ogc_na-0.2.32}/ogc/na/provenance.py +0 -0
  23. {ogc_na-0.2.30 → ogc_na-0.2.32}/ogc/na/update_vocabs.py +0 -0
  24. {ogc_na-0.2.30 → ogc_na-0.2.32}/ogc/na/validation.py +0 -0
  25. {ogc_na-0.2.30 → ogc_na-0.2.32}/ogc_na.egg-info/SOURCES.txt +0 -0
  26. {ogc_na-0.2.30 → ogc_na-0.2.32}/ogc_na.egg-info/dependency_links.txt +0 -0
  27. {ogc_na-0.2.30 → ogc_na-0.2.32}/ogc_na.egg-info/requires.txt +0 -0
  28. {ogc_na-0.2.30 → ogc_na-0.2.32}/ogc_na.egg-info/top_level.txt +0 -0
  29. {ogc_na-0.2.30 → ogc_na-0.2.32}/pyproject.toml +0 -0
  30. {ogc_na-0.2.30 → ogc_na-0.2.32}/rdf/catalog-v001.xml +0 -0
  31. {ogc_na-0.2.30 → ogc_na-0.2.32}/rdf/domaincfg.vocab.ttl +0 -0
  32. {ogc_na-0.2.30 → ogc_na-0.2.32}/requirements.txt +0 -0
  33. {ogc_na-0.2.30 → ogc_na-0.2.32}/setup.cfg +0 -0
  34. {ogc_na-0.2.30 → ogc_na-0.2.32}/setup.py +0 -0
  35. {ogc_na-0.2.30 → ogc_na-0.2.32}/test/__init__.py +0 -0
  36. {ogc_na-0.2.30 → ogc_na-0.2.32}/test/data/empty.ttl +0 -0
  37. {ogc_na-0.2.30 → ogc_na-0.2.32}/test/data/headers.csv +0 -0
  38. {ogc_na-0.2.30 → ogc_na-0.2.32}/test/data/no-headers.csv +0 -0
  39. {ogc_na-0.2.30 → ogc_na-0.2.32}/test/data/profile_tree.ttl +0 -0
  40. {ogc_na-0.2.30 → ogc_na-0.2.32}/test/data/profile_tree_cyclic.ttl +0 -0
  41. {ogc_na-0.2.30 → ogc_na-0.2.32}/test/data/sample-context.jsonld +0 -0
  42. {ogc_na-0.2.30 → ogc_na-0.2.32}/test/data/sample-schema-prop-c.yml +0 -0
  43. {ogc_na-0.2.30 → ogc_na-0.2.32}/test/data/sample-schema.yml +0 -0
  44. {ogc_na-0.2.30 → ogc_na-0.2.32}/test/data/uplift_context_valid.yml +0 -0
  45. {ogc_na-0.2.30 → ogc_na-0.2.32}/test/test_annotate_schema.py +0 -0
  46. {ogc_na-0.2.30 → ogc_na-0.2.32}/test/test_ingest_json.py +0 -0
  47. {ogc_na-0.2.30 → ogc_na-0.2.32}/test/test_input_filters_csv.py +0 -0
  48. {ogc_na-0.2.30 → ogc_na-0.2.32}/test/test_profile.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ogc_na
3
- Version: 0.2.30
3
+ Version: 0.2.32
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/
@@ -377,7 +377,10 @@ def generate_graph(input_data: dict | list,
377
377
  continue
378
378
 
379
379
  for term, term_val in root_ctx.items():
380
- if isinstance(term_val, str) and re.match(r'.*[#/:]$', term_val) and is_iri(term_val):
380
+ if not term.startswith('@') \
381
+ and isinstance(term_val, str) \
382
+ and re.match(r'.+[#/:]$', term_val) \
383
+ and is_iri(term_val):
381
384
  g.bind(term, term_val)
382
385
 
383
386
  options = {}
@@ -186,8 +186,10 @@ def merge_dicts(src: dict, dst: dict) -> dict:
186
186
  if isinstance(v, dict):
187
187
  node = dst.setdefault(k, {})
188
188
  merge_dicts(v, node)
189
- else:
189
+ elif isinstance(dst, dict):
190
190
  dst[k] = v
191
+ else:
192
+ dst = { k: v }
191
193
  return dst
192
194
 
193
195
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ogc-na
3
- Version: 0.2.30
3
+ Version: 0.2.32
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