ogc-na 0.5.11__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.
Files changed (67) hide show
  1. ogc_na-0.5.11/.github/workflows/mkdocs.yml +44 -0
  2. ogc_na-0.5.11/.github/workflows/python-publish.yml +48 -0
  3. ogc_na-0.5.11/.gitignore +288 -0
  4. ogc_na-0.5.11/LICENSE +201 -0
  5. ogc_na-0.5.11/MANIFEST.in +3 -0
  6. ogc_na-0.5.11/PKG-INFO +97 -0
  7. ogc_na-0.5.11/README.md +50 -0
  8. ogc_na-0.5.11/docs/examples.md +146 -0
  9. ogc_na-0.5.11/docs/gen_ref_pages.py +29 -0
  10. ogc_na-0.5.11/docs/index.md +26 -0
  11. ogc_na-0.5.11/docs/jsonld-uplift.md +34 -0
  12. ogc_na-0.5.11/docs/tutorials.md +186 -0
  13. ogc_na-0.5.11/mkdocs.yml +35 -0
  14. ogc_na-0.5.11/ogc/na/__init__.py +16 -0
  15. ogc_na-0.5.11/ogc/na/_version.py +34 -0
  16. ogc_na-0.5.11/ogc/na/annotate_schema.py +1128 -0
  17. ogc_na-0.5.11/ogc/na/domain_config.py +345 -0
  18. ogc_na-0.5.11/ogc/na/download.py +128 -0
  19. ogc_na-0.5.11/ogc/na/exceptions.py +6 -0
  20. ogc_na-0.5.11/ogc/na/gsp.py +207 -0
  21. ogc_na-0.5.11/ogc/na/ingest_json.py +975 -0
  22. ogc_na-0.5.11/ogc/na/input_filters/__init__.py +41 -0
  23. ogc_na-0.5.11/ogc/na/input_filters/csv.py +80 -0
  24. ogc_na-0.5.11/ogc/na/input_filters/xlsx.py +87 -0
  25. ogc_na-0.5.11/ogc/na/input_filters/xml.py +56 -0
  26. ogc_na-0.5.11/ogc/na/models.py +21 -0
  27. ogc_na-0.5.11/ogc/na/profile.py +391 -0
  28. ogc_na-0.5.11/ogc/na/provenance.py +177 -0
  29. ogc_na-0.5.11/ogc/na/update_vocabs.py +585 -0
  30. ogc_na-0.5.11/ogc/na/util.py +435 -0
  31. ogc_na-0.5.11/ogc/na/validation.py +109 -0
  32. ogc_na-0.5.11/ogc_na.egg-info/PKG-INFO +97 -0
  33. ogc_na-0.5.11/ogc_na.egg-info/SOURCES.txt +65 -0
  34. ogc_na-0.5.11/ogc_na.egg-info/dependency_links.txt +1 -0
  35. ogc_na-0.5.11/ogc_na.egg-info/requires.txt +29 -0
  36. ogc_na-0.5.11/ogc_na.egg-info/top_level.txt +1 -0
  37. ogc_na-0.5.11/pyproject.toml +57 -0
  38. ogc_na-0.5.11/rdf/catalog-v001.xml +4 -0
  39. ogc_na-0.5.11/rdf/domaincfg.vocab.ttl +87 -0
  40. ogc_na-0.5.11/requirements.txt +19 -0
  41. ogc_na-0.5.11/setup.cfg +4 -0
  42. ogc_na-0.5.11/setup.py +6 -0
  43. ogc_na-0.5.11/test/__init__.py +0 -0
  44. ogc_na-0.5.11/test/data/annotate-defs-schema.yml +20 -0
  45. ogc_na-0.5.11/test/data/binding-bubbling/external-schema.yaml +5 -0
  46. ogc_na-0.5.11/test/data/binding-bubbling/parent-schema.yaml +7 -0
  47. ogc_na-0.5.11/test/data/binding-bubbling/root-schema.yaml +25 -0
  48. ogc_na-0.5.11/test/data/binding-bubbling/vocab-schema.yaml +6 -0
  49. ogc_na-0.5.11/test/data/empty.ttl +0 -0
  50. ogc_na-0.5.11/test/data/headers.csv +89 -0
  51. ogc_na-0.5.11/test/data/headers.xlsx +0 -0
  52. ogc_na-0.5.11/test/data/no-headers.csv +6 -0
  53. ogc_na-0.5.11/test/data/no-headers.xlsx +0 -0
  54. ogc_na-0.5.11/test/data/profile_tree.ttl +24 -0
  55. ogc_na-0.5.11/test/data/profile_tree_cyclic.ttl +18 -0
  56. ogc_na-0.5.11/test/data/sample-context.jsonld +13 -0
  57. ogc_na-0.5.11/test/data/sample-schema-prop-c.yml +7 -0
  58. ogc_na-0.5.11/test/data/sample-schema.yml +12 -0
  59. ogc_na-0.5.11/test/data/schema-anchors.json +29 -0
  60. ogc_na-0.5.11/test/data/schema-vocab.yml +12 -0
  61. ogc_na-0.5.11/test/data/two-sheets.xlsx +0 -0
  62. ogc_na-0.5.11/test/data/uplift_context_valid.yml +31 -0
  63. ogc_na-0.5.11/test/test_annotate_schema.py +173 -0
  64. ogc_na-0.5.11/test/test_ingest_json.py +20 -0
  65. ogc_na-0.5.11/test/test_input_filters_csv.py +86 -0
  66. ogc_na-0.5.11/test/test_input_filters_xlsx.py +94 -0
  67. ogc_na-0.5.11/test/test_profile.py +59 -0
@@ -0,0 +1,44 @@
1
+ name: Deploy documentation
2
+ on:
3
+ push:
4
+ branches:
5
+ - main
6
+ workflow_dispatch:
7
+
8
+ permissions:
9
+ contents: read
10
+ pages: write
11
+ id-token: write
12
+
13
+ concurrency:
14
+ group: pages
15
+ cancel-in-progress: true
16
+
17
+ jobs:
18
+ deploy-docs:
19
+ runs-on: ubuntu-latest
20
+ steps:
21
+ - uses: actions/checkout@v4
22
+ - name: Configure Git Credentials
23
+ run: |
24
+ git config user.name github-actions[bot]
25
+ git config user.email 41898282+github-actions[bot]@users.noreply.github.com
26
+ - uses: actions/setup-python@v5
27
+ with:
28
+ python-version: 3.11
29
+ - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
30
+ - uses: actions/cache@v4
31
+ with:
32
+ key: mkdocs-material-${{ env.cache_id }}
33
+ path: .cache
34
+ restore-keys: |
35
+ mkdocs-material-
36
+ - run: pip install .[dev] && mkdocs build
37
+ - name: Setup GH Pages
38
+ uses: actions/configure-pages@v4
39
+ - name: Upload GH Pages
40
+ uses: actions/upload-pages-artifact@v3
41
+ with:
42
+ path: './site'
43
+ - name: Deploy GH Pages
44
+ uses: actions/deploy-pages@v4
@@ -0,0 +1,48 @@
1
+ # This workflow will upload a Python Package using Twine when a release is created
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3
+
4
+ # This workflow uses actions that are not certified by GitHub.
5
+ # They are provided by a third-party and are governed by
6
+ # separate terms of service, privacy policy, and support
7
+ # documentation.
8
+
9
+ name: Create release and upload Python Package
10
+
11
+ on:
12
+ push:
13
+ tags:
14
+ - 'v*'
15
+ workflow_dispatch:
16
+
17
+ permissions:
18
+ contents: read
19
+
20
+ jobs:
21
+ pypi-publish:
22
+
23
+ runs-on: ubuntu-latest
24
+
25
+ steps:
26
+ - uses: actions/checkout@v3
27
+ #- name: Create release
28
+ # uses: actions/create-release@latest
29
+ # env:
30
+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31
+ # with:
32
+ # tag_name: ${{ github.ref }}
33
+ # release_name: ${{ github.ref }}
34
+ - name: Set up Python
35
+ uses: actions/setup-python@v3
36
+ with:
37
+ python-version: '3.x'
38
+ - name: Install dependencies
39
+ run: |
40
+ python -m pip install --upgrade pip
41
+ pip install build
42
+ - name: Build package
43
+ run: python -m build
44
+ - name: Publish package
45
+ uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
46
+ with:
47
+ user: __token__
48
+ password: ${{ secrets.PYPI_API_TOKEN }}
@@ -0,0 +1,288 @@
1
+ # Created by https://www.toptal.com/developers/gitignore/api/python,pycharm
2
+ # Edit at https://www.toptal.com/developers/gitignore?templates=python,pycharm
3
+
4
+ ### PyCharm ###
5
+ # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
6
+ # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
7
+
8
+ # User-specific stuff
9
+ .idea/**/workspace.xml
10
+ .idea/**/tasks.xml
11
+ .idea/**/usage.statistics.xml
12
+ .idea/**/dictionaries
13
+ .idea/**/shelf
14
+
15
+ # AWS User-specific
16
+ .idea/**/aws.xml
17
+
18
+ # Generated files
19
+ .idea/**/contentModel.xml
20
+
21
+ # Sensitive or high-churn files
22
+ .idea/**/dataSources/
23
+ .idea/**/dataSources.ids
24
+ .idea/**/dataSources.local.xml
25
+ .idea/**/sqlDataSources.xml
26
+ .idea/**/dynamic.xml
27
+ .idea/**/uiDesigner.xml
28
+ .idea/**/dbnavigator.xml
29
+
30
+ # Gradle
31
+ .idea/**/gradle.xml
32
+ .idea/**/libraries
33
+
34
+ # Gradle and Maven with auto-import
35
+ # When using Gradle or Maven with auto-import, you should exclude module files,
36
+ # since they will be recreated, and may cause churn. Uncomment if using
37
+ # auto-import.
38
+ # .idea/artifacts
39
+ # .idea/compiler.xml
40
+ # .idea/jarRepositories.xml
41
+ # .idea/modules.xml
42
+ # .idea/*.iml
43
+ # .idea/modules
44
+ # *.iml
45
+ # *.ipr
46
+
47
+ # CMake
48
+ cmake-build-*/
49
+
50
+ # Mongo Explorer plugin
51
+ .idea/**/mongoSettings.xml
52
+
53
+ # File-based project format
54
+ *.iws
55
+
56
+ # IntelliJ
57
+ out/
58
+
59
+ # mpeltonen/sbt-idea plugin
60
+ .idea_modules/
61
+
62
+ # JIRA plugin
63
+ atlassian-ide-plugin.xml
64
+
65
+ # Cursive Clojure plugin
66
+ .idea/replstate.xml
67
+
68
+ # SonarLint plugin
69
+ .idea/sonarlint/
70
+
71
+ # Crashlytics plugin (for Android Studio and IntelliJ)
72
+ com_crashlytics_export_strings.xml
73
+ crashlytics.properties
74
+ crashlytics-build.properties
75
+ fabric.properties
76
+
77
+ # Editor-based Rest Client
78
+ .idea/httpRequests
79
+
80
+ # Android studio 3.1+ serialized cache file
81
+ .idea/caches/build_file_checksums.ser
82
+
83
+ ### PyCharm Patch ###
84
+ # Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
85
+
86
+ # *.iml
87
+ # modules.xml
88
+ # .idea/misc.xml
89
+ # *.ipr
90
+
91
+ # Sonarlint plugin
92
+ # https://plugins.jetbrains.com/plugin/7973-sonarlint
93
+ .idea/**/sonarlint/
94
+
95
+ # SonarQube Plugin
96
+ # https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin
97
+ .idea/**/sonarIssues.xml
98
+
99
+ # Markdown Navigator plugin
100
+ # https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced
101
+ .idea/**/markdown-navigator.xml
102
+ .idea/**/markdown-navigator-enh.xml
103
+ .idea/**/markdown-navigator/
104
+
105
+ # Cache file creation bug
106
+ # See https://youtrack.jetbrains.com/issue/JBR-2257
107
+ .idea/$CACHE_FILE$
108
+
109
+ # CodeStream plugin
110
+ # https://plugins.jetbrains.com/plugin/12206-codestream
111
+ .idea/codestream.xml
112
+
113
+ # Azure Toolkit for IntelliJ plugin
114
+ # https://plugins.jetbrains.com/plugin/8053-azure-toolkit-for-intellij
115
+ .idea/**/azureSettings.xml
116
+
117
+ ### Python ###
118
+ # Byte-compiled / optimized / DLL files
119
+ __pycache__/
120
+ *.py[cod]
121
+ *$py.class
122
+
123
+ # C extensions
124
+ *.so
125
+
126
+ # Distribution / packaging
127
+ .Python
128
+ build/
129
+ develop-eggs/
130
+ dist/
131
+ downloads/
132
+ eggs/
133
+ .eggs/
134
+ lib/
135
+ lib64/
136
+ parts/
137
+ sdist/
138
+ var/
139
+ wheels/
140
+ share/python-wheels/
141
+ *.egg-info/
142
+ .installed.cfg
143
+ *.egg
144
+ MANIFEST
145
+
146
+ # PyInstaller
147
+ # Usually these files are written by a python script from a template
148
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
149
+ *.manifest
150
+ *.spec
151
+
152
+ # Installer logs
153
+ pip-log.txt
154
+ pip-delete-this-directory.txt
155
+
156
+ # Unit test / coverage reports
157
+ htmlcov/
158
+ .tox/
159
+ .nox/
160
+ .coverage
161
+ .coverage.*
162
+ .cache
163
+ nosetests.xml
164
+ coverage.xml
165
+ *.cover
166
+ *.py,cover
167
+ .hypothesis/
168
+ .pytest_cache/
169
+ cover/
170
+
171
+ # Translations
172
+ *.mo
173
+ *.pot
174
+
175
+ # Django stuff:
176
+ *.log
177
+ local_settings.py
178
+ db.sqlite3
179
+ db.sqlite3-journal
180
+
181
+ # Flask stuff:
182
+ instance/
183
+ .webassets-cache
184
+
185
+ # Scrapy stuff:
186
+ .scrapy
187
+
188
+ # Sphinx documentation
189
+ docs/_build/
190
+
191
+ # PyBuilder
192
+ .pybuilder/
193
+ target/
194
+
195
+ # Jupyter Notebook
196
+ .ipynb_checkpoints
197
+
198
+ # IPython
199
+ profile_default/
200
+ ipython_config.py
201
+
202
+ # pyenv
203
+ # For a library or package, you might want to ignore these files since the code is
204
+ # intended to run in multiple environments; otherwise, check them in:
205
+ # .python-version
206
+
207
+ # pipenv
208
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
209
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
210
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
211
+ # install all needed dependencies.
212
+ #Pipfile.lock
213
+
214
+ # poetry
215
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
216
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
217
+ # commonly ignored for libraries.
218
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
219
+ #poetry.lock
220
+
221
+ # pdm
222
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
223
+ #pdm.lock
224
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
225
+ # in version control.
226
+ # https://pdm.fming.dev/#use-with-ide
227
+ .pdm.toml
228
+
229
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
230
+ __pypackages__/
231
+
232
+ # Celery stuff
233
+ celerybeat-schedule
234
+ celerybeat.pid
235
+
236
+ # SageMath parsed files
237
+ *.sage.py
238
+
239
+ # Environments
240
+ .env
241
+ .venv
242
+ env/
243
+ venv/
244
+ ENV/
245
+ env.bak/
246
+ venv.bak/
247
+
248
+ # Spyder project settings
249
+ .spyderproject
250
+ .spyproject
251
+
252
+ # Rope project settings
253
+ .ropeproject
254
+
255
+ # mkdocs documentation
256
+ /site
257
+
258
+ # mypy
259
+ .mypy_cache/
260
+ .dmypy.json
261
+ dmypy.json
262
+
263
+ # Pyre type checker
264
+ .pyre/
265
+
266
+ # pytype static type analyzer
267
+ .pytype/
268
+
269
+ # Cython debug symbols
270
+ cython_debug/
271
+
272
+ # PyCharm
273
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
274
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
275
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
276
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
277
+ #.idea/
278
+
279
+ ### Python Patch ###
280
+ # Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration
281
+ poetry.toml
282
+
283
+
284
+ # End of https://www.toptal.com/developers/gitignore/api/python,pycharm
285
+
286
+ ogc/na/_version.py
287
+ .idea/modules.xml
288
+ .idea/
ogc_na-0.5.11/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,3 @@
1
+ include README.md ogc/na/_version.py
2
+ recursive-include ogc *.ttl
3
+ exclude test docs
ogc_na-0.5.11/PKG-INFO ADDED
@@ -0,0 +1,97 @@
1
+ Metadata-Version: 2.4
2
+ Name: ogc_na
3
+ Version: 0.5.11
4
+ Summary: OGC Naming Authority tools
5
+ Author-email: Rob Atkinson <ratkinson@ogc.org>, Piotr Zaborowski <pzaborowski@ogc.org>, Alejandro Villar <avillar@ogc.org>
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/opengeospatial/ogc-na-tools/
8
+ Project-URL: Documentation, https://opengeospatial.github.io/ogc-na-tools/
9
+ Project-URL: Repository, https://github.com/opengeospatial/ogc-na-tools.git
10
+ Keywords: ogc,ogc-na,naming authority,ogc rainbow,definitions server
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Topic :: Scientific/Engineering
13
+ Classifier: Topic :: Utilities
14
+ Classifier: Topic :: Software Development :: Libraries
15
+ Requires-Python: >=3.7
16
+ Description-Content-Type: text/markdown
17
+ License-File: LICENSE
18
+ Requires-Dist: pyshacl>=0.19
19
+ Requires-Dist: rdflib>=6.3.0
20
+ Requires-Dist: html5lib
21
+ Requires-Dist: jq
22
+ Requires-Dist: jsonpath-ng
23
+ Requires-Dist: PyYAML
24
+ Requires-Dist: wcmatch
25
+ Requires-Dist: requests>=2.30
26
+ Requires-Dist: jsonschema
27
+ Requires-Dist: GitPython>=3.1.32
28
+ Requires-Dist: rfc3987
29
+ Requires-Dist: requests-cache
30
+ Requires-Dist: xmltodict
31
+ Requires-Dist: jsonpointer~=2.4
32
+ Requires-Dist: openpyxl~=3.1.5
33
+ Requires-Dist: setuptools
34
+ Provides-Extra: dev
35
+ Requires-Dist: mkdocs>=1.4.2; extra == "dev"
36
+ Requires-Dist: mkdocs-autorefs; extra == "dev"
37
+ Requires-Dist: mkdocs-gen-files; extra == "dev"
38
+ Requires-Dist: mkdocs-literate-nav; extra == "dev"
39
+ Requires-Dist: mkdocs-material; extra == "dev"
40
+ Requires-Dist: mkdocs-material-extensions; extra == "dev"
41
+ Requires-Dist: mkdocs-pymdownx-material-extras; extra == "dev"
42
+ Requires-Dist: mkdocs-section-index; extra == "dev"
43
+ Requires-Dist: mkdocstrings; extra == "dev"
44
+ Requires-Dist: mkdocstrings-python; extra == "dev"
45
+ Requires-Dist: mkdocs-markdownextradata-plugin; extra == "dev"
46
+ Dynamic: license-file
47
+
48
+ # ogc-na-tools
49
+
50
+ ## TL;DR
51
+
52
+ You can install the tools with `pip`:
53
+
54
+ ```shell
55
+ pip install ogc-na
56
+ ```
57
+
58
+ ## Purpose
59
+ This repository contains tools used to maintain controlled vocabularies and knowledge assets managed by the OGC Naming Authority. Such tools may have wider general applicability and be refactored into tool specific repositories.
60
+
61
+ ## Scope
62
+ The tools here manage ETL processes for ingesting source data into a dynamic knowledge graph. Whilst this is quite a generic scope, this provides examples of how to use a range of resources that others may reuse to achieve similar results.
63
+
64
+ ## Highlights
65
+
66
+ * JSON ingest and conversion to RDF using semantic annotations and conversions to a target model schema.
67
+ * entailment and validation pipeline for RDF resources.
68
+ * specific scripts to convert OGC source material into a form compatible with the OGC Linked Data environment
69
+ * tutorial for docker deployment and testing of available tools.
70
+
71
+ ## Documentation and tools
72
+
73
+ The full documentation can be found [here](https://opengeospatial.github.io/ogc-na-tools/).
74
+
75
+ The following tools are currently available:
76
+
77
+ * `ingest_json`: Performs JSON-to-JSON-LD semantic uplifts [(read more)](https://opengeospatial.github.io/ogc-na-tools/reference/ogc/na/ingest_json/)
78
+ * `update_vocabs`: Allows defining RDF entailment + validation + upload pipelines [(read more)](https://opengeospatial.github.io/ogc-na-tools/reference/ogc/na/update_vocabs/)
79
+ * `annotate_schema`: Annotates JSON schemas by leveraging `@modelReference` links to JSON-LD contexts [(read more)](https://opengeospatial.github.io/ogc-na-tools/reference/ogc/na/annotate_schema/)
80
+
81
+ ## Development
82
+
83
+ Note: This is only necessary if you are going to work *on* the tools themselves, not *with* them (see [TL;DR](#tldr)
84
+ above).
85
+
86
+ To install runtime and development dependencies, run:
87
+
88
+ ```shell
89
+ pip install -e .[dev]
90
+ ```
91
+
92
+ ### Building the documentation
93
+
94
+ `mkdocs` is used for generating documentation pages.
95
+
96
+ * To build the documentation (will be written to the `site/` directory): `mkdocs build`
97
+ * To deploy to GitHub pages: `mkdocs gh-deploy`