ogc-na 0.3.56__py3-none-any.whl → 0.3.57__py3-none-any.whl
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/_version.py +2 -2
- ogc/na/annotate_schema.py +5 -4
- {ogc_na-0.3.56.dist-info → ogc_na-0.3.57.dist-info}/METADATA +2 -2
- {ogc_na-0.3.56.dist-info → ogc_na-0.3.57.dist-info}/RECORD +6 -6
- {ogc_na-0.3.56.dist-info → ogc_na-0.3.57.dist-info}/WHEEL +1 -1
- {ogc_na-0.3.56.dist-info → ogc_na-0.3.57.dist-info}/top_level.txt +0 -0
ogc/na/_version.py
CHANGED
ogc/na/annotate_schema.py
CHANGED
|
@@ -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
|
-
|
|
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
|
|
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
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: ogc_na
|
|
3
|
-
Version: 0.3.
|
|
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/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
ogc/na/__init__.py,sha256=uzcNiJ3uKFNJ1HBfKxIwgAy2HMUFsLAe5RkrUg8ncac,464
|
|
2
|
-
ogc/na/_version.py,sha256=
|
|
3
|
-
ogc/na/annotate_schema.py,sha256=
|
|
2
|
+
ogc/na/_version.py,sha256=KqIVwYBdIdahVzuj89W2dfY5Y-ewSsfE6L9PQnp8tPw,413
|
|
3
|
+
ogc/na/annotate_schema.py,sha256=YtxL9pOeeVk9CubvnByUMh7nZUJYZCDQ60hXEvtiR6g,43869
|
|
4
4
|
ogc/na/domain_config.py,sha256=ORzITa1rTrD1MQdpWYrIVW5SwSa9lJd3hnyHIxNgiIU,13947
|
|
5
5
|
ogc/na/download.py,sha256=2afrLyl4WsAlxkCgXsl47fs9mNKfDmhVpeT2iwNSoq0,3354
|
|
6
6
|
ogc/na/exceptions.py,sha256=cwvnq79ih90T9lfwJww0zOx_QwuICaUvlo3Mc8m8ouA,85
|
|
@@ -16,7 +16,7 @@ ogc/na/input_filters/__init__.py,sha256=AhE7n_yECwxFKwOM3Jc0ft96TtF5i_Z-fHrS4HYO
|
|
|
16
16
|
ogc/na/input_filters/csv.py,sha256=nFfB1XQF_QApcGGzMqEvzD_b3pBtCtsfUECsZ9UGE6s,2616
|
|
17
17
|
ogc/na/input_filters/xlsx.py,sha256=X9EpFgC9WwHQD8iUJRGdaDYfgiLKjXPdhTVhDmNPAQ0,2730
|
|
18
18
|
ogc/na/input_filters/xml.py,sha256=9qYjp_w5JLInFM48zB15IYH9eTafjp1Aqd_8kfuW3aA,2074
|
|
19
|
-
ogc_na-0.3.
|
|
20
|
-
ogc_na-0.3.
|
|
21
|
-
ogc_na-0.3.
|
|
22
|
-
ogc_na-0.3.
|
|
19
|
+
ogc_na-0.3.57.dist-info/METADATA,sha256=dcn9t_MBayKk9qKGfH5an7jKwcCpmK8QtDovmc5Ljmw,3843
|
|
20
|
+
ogc_na-0.3.57.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
21
|
+
ogc_na-0.3.57.dist-info/top_level.txt,sha256=Kvy3KhzcIhNPT4_nZuJCmS946ptRr_MDyU4IIhZJhCY,4
|
|
22
|
+
ogc_na-0.3.57.dist-info/RECORD,,
|
|
File without changes
|