ogc-na 0.4.3__tar.gz → 0.4.5__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.
- {ogc_na-0.4.3 → ogc_na-0.4.5}/PKG-INFO +1 -1
- {ogc_na-0.4.3 → ogc_na-0.4.5}/ogc/na/_version.py +3 -3
- {ogc_na-0.4.3 → ogc_na-0.4.5}/ogc/na/annotate_schema.py +4 -4
- {ogc_na-0.4.3 → ogc_na-0.4.5}/ogc_na.egg-info/PKG-INFO +1 -1
- {ogc_na-0.4.3 → ogc_na-0.4.5}/.github/workflows/mkdocs.yml +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/.github/workflows/python-publish.yml +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/.gitignore +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/LICENSE +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/MANIFEST.in +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/README.md +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/docs/examples.md +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/docs/gen_ref_pages.py +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/docs/index.md +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/docs/jsonld-uplift.md +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/docs/tutorials.md +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/mkdocs.yml +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/ogc/na/__init__.py +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/ogc/na/domain_config.py +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/ogc/na/download.py +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/ogc/na/exceptions.py +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/ogc/na/gsp.py +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/ogc/na/ingest_json.py +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/ogc/na/input_filters/__init__.py +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/ogc/na/input_filters/csv.py +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/ogc/na/input_filters/xlsx.py +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/ogc/na/input_filters/xml.py +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/ogc/na/models.py +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/ogc/na/profile.py +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/ogc/na/provenance.py +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/ogc/na/update_vocabs.py +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/ogc/na/util.py +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/ogc/na/validation.py +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/ogc_na.egg-info/SOURCES.txt +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/ogc_na.egg-info/dependency_links.txt +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/ogc_na.egg-info/requires.txt +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/ogc_na.egg-info/top_level.txt +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/pyproject.toml +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/rdf/catalog-v001.xml +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/rdf/domaincfg.vocab.ttl +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/requirements.txt +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/setup.cfg +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/setup.py +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/test/__init__.py +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/test/data/annotate-defs-schema.yml +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/test/data/empty.ttl +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/test/data/headers.csv +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/test/data/headers.xlsx +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/test/data/no-headers.csv +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/test/data/no-headers.xlsx +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/test/data/profile_tree.ttl +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/test/data/profile_tree_cyclic.ttl +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/test/data/sample-context.jsonld +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/test/data/sample-schema-prop-c.yml +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/test/data/sample-schema.yml +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/test/data/schema-anchors.json +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/test/data/schema-vocab.yml +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/test/data/two-sheets.xlsx +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/test/data/uplift_context_valid.yml +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/test/test_annotate_schema.py +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/test/test_ingest_json.py +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/test/test_input_filters_csv.py +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/test/test_input_filters_xlsx.py +0 -0
- {ogc_na-0.4.3 → ogc_na-0.4.5}/test/test_profile.py +0 -0
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '0.4.
|
|
32
|
-
__version_tuple__ = version_tuple = (0, 4,
|
|
31
|
+
__version__ = version = '0.4.5'
|
|
32
|
+
__version_tuple__ = version_tuple = (0, 4, 5)
|
|
33
33
|
|
|
34
|
-
__commit_id__ = commit_id = '
|
|
34
|
+
__commit_id__ = commit_id = 'gf687441ec'
|
|
@@ -559,8 +559,8 @@ class SchemaAnnotator:
|
|
|
559
559
|
elif ':' not in prop_id and prop_id not in JSON_LD_KEYWORDS:
|
|
560
560
|
result['@id'] = f"{vocab}{prop_id}"
|
|
561
561
|
return result
|
|
562
|
-
|
|
563
|
-
|
|
562
|
+
if vocab != UNDEFINED and isinstance(vocab, str):
|
|
563
|
+
return {'@id': f"{vocab}{prop}"}
|
|
564
564
|
|
|
565
565
|
def process_properties(obj: dict, context_stack: list[dict[str, Any]],
|
|
566
566
|
from_schema: ReferencedSchema, level) -> Iterable[str]:
|
|
@@ -824,8 +824,6 @@ class ContextBuilder:
|
|
|
824
824
|
if top_level_value:
|
|
825
825
|
onto_context[f"@{key[len(ANNOTATION_PREFIX):]}"] = top_level_value
|
|
826
826
|
|
|
827
|
-
read_properties(subschema, from_schema, onto_context, schema_path)
|
|
828
|
-
|
|
829
827
|
if '$ref' in subschema:
|
|
830
828
|
ref = subschema['$ref']
|
|
831
829
|
ref_path_str = f"{from_schema.location}{ref}"
|
|
@@ -860,6 +858,8 @@ class ContextBuilder:
|
|
|
860
858
|
for k, v in extra_term_context.items()}
|
|
861
859
|
onto_context[extra_term] = extra_term_context
|
|
862
860
|
|
|
861
|
+
read_properties(subschema, from_schema, onto_context, schema_path)
|
|
862
|
+
|
|
863
863
|
if from_schema:
|
|
864
864
|
current_ref = f"{from_schema.location}{from_schema.ref}"
|
|
865
865
|
if current_ref not in imported_prefixes:
|
|
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
|
|
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
|