ogc-na 0.3.51__tar.gz → 0.3.52__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.3.51 → ogc_na-0.3.52}/PKG-INFO +1 -1
- {ogc_na-0.3.51 → ogc_na-0.3.52}/ogc/na/_version.py +2 -2
- {ogc_na-0.3.51 → ogc_na-0.3.52}/ogc/na/ingest_json.py +2 -1
- {ogc_na-0.3.51 → ogc_na-0.3.52}/ogc/na/update_vocabs.py +21 -2
- {ogc_na-0.3.51 → ogc_na-0.3.52}/ogc_na.egg-info/PKG-INFO +1 -1
- {ogc_na-0.3.51 → ogc_na-0.3.52}/.github/workflows/mkdocs.yml +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/.github/workflows/python-publish.yml +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/.gitignore +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/MANIFEST.in +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/README.md +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/docs/examples.md +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/docs/gen_ref_pages.py +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/docs/index.md +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/docs/jsonld-uplift.md +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/docs/tutorials.md +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/mkdocs.yml +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/ogc/na/__init__.py +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/ogc/na/annotate_schema.py +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/ogc/na/domain_config.py +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/ogc/na/download.py +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/ogc/na/gsp.py +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/ogc/na/input_filters/__init__.py +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/ogc/na/input_filters/csv.py +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/ogc/na/input_filters/xml.py +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/ogc/na/models.py +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/ogc/na/profile.py +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/ogc/na/provenance.py +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/ogc/na/util.py +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/ogc/na/validation.py +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/ogc_na.egg-info/SOURCES.txt +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/ogc_na.egg-info/dependency_links.txt +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/ogc_na.egg-info/requires.txt +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/ogc_na.egg-info/top_level.txt +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/pyproject.toml +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/rdf/catalog-v001.xml +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/rdf/domaincfg.vocab.ttl +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/requirements.txt +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/setup.cfg +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/setup.py +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/test/__init__.py +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/test/data/empty.ttl +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/test/data/headers.csv +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/test/data/no-headers.csv +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/test/data/profile_tree.ttl +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/test/data/profile_tree_cyclic.ttl +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/test/data/sample-context.jsonld +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/test/data/sample-schema-prop-c.yml +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/test/data/sample-schema.yml +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/test/data/schema-vocab.yml +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/test/data/uplift_context_valid.yml +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/test/test_annotate_schema.py +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/test/test_ingest_json.py +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/test/test_input_filters_csv.py +0 -0
- {ogc_na-0.3.51 → ogc_na-0.3.52}/test/test_profile.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ogc_na
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.52
|
|
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/
|
|
@@ -869,8 +869,9 @@ def _process_cmdln():
|
|
|
869
869
|
|
|
870
870
|
parser.add_argument(
|
|
871
871
|
'--transform-arg',
|
|
872
|
+
metavar='ARG=VALUE',
|
|
872
873
|
nargs='*',
|
|
873
|
-
help='Additional argument to pass to the jq transforms in the form
|
|
874
|
+
help='Additional argument to pass to the jq transforms in the form argument=value'
|
|
874
875
|
)
|
|
875
876
|
|
|
876
877
|
parser.add_argument(
|
|
@@ -13,6 +13,16 @@ This script can be used as a library, or run directly from the cli;
|
|
|
13
13
|
please refer to the
|
|
14
14
|
[OGC NamingAuthority repository](https://github.com/opengeospatial/NamingAuthority)
|
|
15
15
|
for usage details on the latter.
|
|
16
|
+
|
|
17
|
+
## Defining the SPARQL graph URI
|
|
18
|
+
|
|
19
|
+
The graph URI that will be used for an RDF document when pushing the data to a SPARQL endpoint can
|
|
20
|
+
be defined by adding a `http://www.opengis.net/ogc-na#targetGraph` predicate anywhere
|
|
21
|
+
inside it, for example:
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
[] <http://www.opengis.net/ogc-na#targetGraph> <https://example.com/target-graph> .
|
|
25
|
+
```
|
|
16
26
|
"""
|
|
17
27
|
|
|
18
28
|
from __future__ import annotations
|
|
@@ -26,7 +36,7 @@ from pathlib import Path
|
|
|
26
36
|
from typing import Union, Generator
|
|
27
37
|
|
|
28
38
|
import requests
|
|
29
|
-
from rdflib import Graph, RDF, SKOS
|
|
39
|
+
from rdflib import Graph, RDF, SKOS, URIRef
|
|
30
40
|
|
|
31
41
|
from ogc.na import util
|
|
32
42
|
from ogc.na.domain_config import DomainConfiguration, DomainConfigurationEntry
|
|
@@ -108,12 +118,21 @@ def get_graph_uri_for_vocab(g: Graph = None) -> Generator[str, None, None]:
|
|
|
108
118
|
"""
|
|
109
119
|
Find a target graph URI in a vocabulary [Graph][rdflib.Graph].
|
|
110
120
|
|
|
111
|
-
|
|
121
|
+
This function looks for any object of the http://www.opengis.net/ogc-na#targetGraph
|
|
122
|
+
predicate, and in its absence for a
|
|
112
123
|
[SKOS ConceptScheme's](https://www.w3.org/TR/2008/WD-skos-reference-20080829/skos.html#ConceptScheme).
|
|
113
124
|
|
|
125
|
+
The following can be included in a Turtle document to specify its graph:
|
|
126
|
+
|
|
127
|
+
```
|
|
128
|
+
[] <http://www.opengis.net/ogc-na#targetGraph> <https://example.com/target/graph> .
|
|
129
|
+
```
|
|
130
|
+
|
|
114
131
|
:param g: the [Graph][rdflib.Graph] for which to find the target URI
|
|
115
132
|
:return: a [Node][rdflib.term.Node] generator
|
|
116
133
|
"""
|
|
134
|
+
for o in g.objects(predicate=URIRef('http://www.opengis.net/ogc-na#targetGraph')):
|
|
135
|
+
yield str(o)
|
|
117
136
|
for s in g.subjects(predicate=RDF.type, object=SKOS.ConceptScheme):
|
|
118
137
|
yield str(s)
|
|
119
138
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ogc_na
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.52
|
|
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
|
|
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
|