pylode 3.2.3__tar.gz → 3.3.3__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 (51) hide show
  1. {pylode-3.2.3 → pylode-3.3.3}/PKG-INFO +17 -11
  2. {pylode-3.2.3 → pylode-3.3.3}/README.md +1 -1
  3. {pylode-3.2.3 → pylode-3.3.3}/pylode/profiles/supermodel/query/__init__.py +5 -0
  4. {pylode-3.2.3 → pylode-3.3.3}/pylode/utils.py +5 -0
  5. pylode-3.3.3/pyproject.toml +55 -0
  6. pylode-3.2.3/LICENSE +0 -29
  7. pylode-3.2.3/pylode/rdf/refs.pickle +0 -0
  8. pylode-3.2.3/pylode/rdf/refs_titles.pickle +0 -0
  9. pylode-3.2.3/pyproject.toml +0 -30
  10. {pylode-3.2.3 → pylode-3.3.3}/pylode/__init__.py +0 -0
  11. {pylode-3.2.3 → pylode-3.3.3}/pylode/__main__.py +0 -0
  12. {pylode-3.2.3 → pylode-3.3.3}/pylode/cli.py +0 -0
  13. {pylode-3.2.3 → pylode-3.3.3}/pylode/profiles/__init__.py +0 -0
  14. {pylode-3.2.3 → pylode-3.3.3}/pylode/profiles/ontpub.py +0 -0
  15. {pylode-3.2.3 → pylode-3.3.3}/pylode/profiles/supermodel/__init__.py +0 -0
  16. {pylode-3.2.3 → pylode-3.3.3}/pylode/profiles/supermodel/component/__init__.py +0 -0
  17. {pylode-3.2.3 → pylode-3.3.3}/pylode/profiles/supermodel/component/example.py +0 -0
  18. {pylode-3.2.3 → pylode-3.3.3}/pylode/profiles/supermodel/component/heading.py +0 -0
  19. {pylode-3.2.3 → pylode-3.3.3}/pylode/profiles/supermodel/component/link.py +0 -0
  20. {pylode-3.2.3 → pylode-3.3.3}/pylode/profiles/supermodel/component/preamble.py +0 -0
  21. {pylode-3.2.3 → pylode-3.3.3}/pylode/profiles/supermodel/component/properties_table.py +0 -0
  22. {pylode-3.2.3 → pylode-3.3.3}/pylode/profiles/supermodel/component/tooltip.py +0 -0
  23. {pylode-3.2.3 → pylode-3.3.3}/pylode/profiles/supermodel/dataset.py +0 -0
  24. {pylode-3.2.3 → pylode-3.3.3}/pylode/profiles/supermodel/fragment.py +0 -0
  25. {pylode-3.2.3 → pylode-3.3.3}/pylode/profiles/supermodel/html.py +0 -0
  26. {pylode-3.2.3 → pylode-3.3.3}/pylode/profiles/supermodel/loader.py +0 -0
  27. {pylode-3.2.3 → pylode-3.3.3}/pylode/profiles/supermodel/model.py +0 -0
  28. {pylode-3.2.3 → pylode-3.3.3}/pylode/profiles/supermodel/namespace.py +0 -0
  29. {pylode-3.2.3 → pylode-3.3.3}/pylode/profiles/supermodel/query/common.py +0 -0
  30. {pylode-3.2.3 → pylode-3.3.3}/pylode/profiles/supermodel/query/property_shape.py +0 -0
  31. {pylode-3.2.3 → pylode-3.3.3}/pylode/profiles/supermodel/random.py +0 -0
  32. {pylode-3.2.3 → pylode-3.3.3}/pylode/profiles/supermodel/state.py +0 -0
  33. {pylode-3.2.3 → pylode-3.3.3}/pylode/profiles/vocpub.py +0 -0
  34. {pylode-3.2.3 → pylode-3.3.3}/pylode/pylode.css +0 -0
  35. {pylode-3.2.3 → pylode-3.3.3}/pylode/rdf/dcterms-mod.ttl +0 -0
  36. {pylode-3.2.3 → pylode-3.3.3}/pylode/rdf/licenses.ttl +0 -0
  37. {pylode-3.2.3 → pylode-3.3.3}/pylode/rdf/ontdoc.ttl +0 -0
  38. {pylode-3.2.3 → pylode-3.3.3}/pylode/rdf/owl.ttl +0 -0
  39. {pylode-3.2.3 → pylode-3.3.3}/pylode/rdf/prov.ttl +0 -0
  40. {pylode-3.2.3 → pylode-3.3.3}/pylode/rdf/rdf.ttl +0 -0
  41. {pylode-3.2.3 → pylode-3.3.3}/pylode/rdf/rdfs-mod.ttl +0 -0
  42. {pylode-3.2.3 → pylode-3.3.3}/pylode/rdf/sdo-mod.ttl +0 -0
  43. {pylode-3.2.3 → pylode-3.3.3}/pylode/rdf/skos.ttl +0 -0
  44. {pylode-3.2.3 → pylode-3.3.3}/pylode/rdf/void.ttl +0 -0
  45. {pylode-3.2.3 → pylode-3.3.3}/pylode/rdf_elements.py +0 -0
  46. {pylode-3.2.3 → pylode-3.3.3}/pylode/static/asciidoc.css +0 -0
  47. {pylode-3.2.3 → pylode-3.3.3}/pylode/static/hierarchy.css +0 -0
  48. {pylode-3.2.3 → pylode-3.3.3}/pylode/static/hierarchy.js +0 -0
  49. {pylode-3.2.3 → pylode-3.3.3}/pylode/static/property-table-row.js +0 -0
  50. {pylode-3.2.3 → pylode-3.3.3}/pylode/static/pylode.css +0 -0
  51. {pylode-3.2.3 → pylode-3.3.3}/pylode/version.py +0 -0
@@ -1,21 +1,27 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: pylode
3
- Version: 3.2.3
3
+ Version: 3.3.3
4
4
  Summary: An OWL ontology documentation tool using Python, based on LODE.
5
5
  Author: Nicholas Car
6
- Author-email: nick@kurrawong.ai
7
- Requires-Python: >=3.9,<4.0
6
+ Author-email: Nicholas Car <nick@kurrawong.ai>
7
+ License-Expression: BSD-3-Clause
8
8
  Classifier: Programming Language :: Python :: 3
9
9
  Classifier: Programming Language :: Python :: 3.9
10
10
  Classifier: Programming Language :: Python :: 3.10
11
11
  Classifier: Programming Language :: Python :: 3.11
12
12
  Classifier: Programming Language :: Python :: 3.12
13
13
  Classifier: Programming Language :: Python :: 3.13
14
- Requires-Dist: Markdown (>=3.3.7,<4.0.0)
15
- Requires-Dist: dominate (>=2.6.0,<3.0.0)
16
- Requires-Dist: html5lib (>=1.1,<2.0)
17
- Requires-Dist: httpx (>=0.25.0,<1.0.0)
18
- Requires-Dist: rdflib (>=7.0.0,<8.0.0)
14
+ Classifier: Programming Language :: Python :: 3.14
15
+ Requires-Dist: rdflib>=7.5.0,<8.0.0
16
+ Requires-Dist: markdown>=3.3.7,<4
17
+ Requires-Dist: dominate>=2.6.0,<3
18
+ Requires-Dist: html5lib>=1.1,<2
19
+ Requires-Dist: httpx>=0.25.0,<1.0.0
20
+ Requires-Python: >=3.9, <4
21
+ Project-URL: Homepage, https://github.com/RDFLib/pyLODE
22
+ Project-URL: Documentation, https://github.com/RDFLib/pyLODE
23
+ Project-URL: Source, https://github.com/RDFLib/pyLODE
24
+ Project-URL: Changelog, https://github.com/RDFLib/pyLODE/releases
19
25
  Description-Content-Type: text/markdown
20
26
 
21
27
  ![pyLODE logo](https://rawcdn.githack.com/RDFLib/pyLODE/master/img/pyLODE-250.png)
@@ -296,7 +302,7 @@ Nicholas Car
296
302
  * `poetry build`
297
303
  * `poetry publish -u __token__ -p {TOKEN}`
298
304
  9. make a GitHub release
299
- * include `/dist` build artifacts
305
+ * include `/dist` build artefacts
300
306
  10. increment version number to next release in `pyproject.toml`
301
307
  11. commit all changes `$ git commit -a "..."`
302
- 12. push changes `$ git push`
308
+ 12. push changes `$ git push`
@@ -276,7 +276,7 @@ Nicholas Car
276
276
  * `poetry build`
277
277
  * `poetry publish -u __token__ -p {TOKEN}`
278
278
  9. make a GitHub release
279
- * include `/dist` build artifacts
279
+ * include `/dist` build artefacts
280
280
  10. increment version number to next release in `pyproject.toml`
281
281
  11. commit all changes `$ git commit -a "..."`
282
282
  12. push changes `$ git push`
@@ -405,6 +405,11 @@ class Query:
405
405
  self.root_profile_iri = get_root_profile_iri(graph)
406
406
  self.db = load_profiles(self.root_profile_iri, graph.serialize())
407
407
  self.graph = self.db.root_graph
408
+
409
+ # We need this to see the prefixes in the loaded file
410
+ for prefix, namespace in graph.namespace_manager.namespaces():
411
+ self.graph.namespace_manager.bind(prefix, namespace, override=True)
412
+
408
413
  self.debug = True if (None, LODE.debug, None) in self.db.config_graph else False
409
414
 
410
415
  # An IRI index of classes that 'exist' within this documentation.
@@ -296,6 +296,11 @@ def sort_ontology(ont_orig: Graph) -> Graph:
296
296
  trpls = ont_orig.triples((None, None, None))
297
297
  trpls_srt = sorted(trpls)
298
298
  ont_sorted = Graph(bind_namespaces="core")
299
+
300
+ # Recover the namespaces from the original file
301
+ for prefix, namespace in ont_orig.namespace_manager.namespaces():
302
+ ont_sorted.namespace_manager.bind(prefix, namespace, override=True)
303
+
299
304
  for trpl in trpls_srt:
300
305
  ont_sorted.add(trpl)
301
306
  return ont_sorted
@@ -0,0 +1,55 @@
1
+ [project.urls]
2
+ Homepage = "https://github.com/RDFLib/pyLODE"
3
+ Documentation = "https://github.com/RDFLib/pyLODE"
4
+ Source = "https://github.com/RDFLib/pyLODE"
5
+ Changelog = "https://github.com/RDFLib/pyLODE/releases"
6
+
7
+
8
+ [project]
9
+ name = "pylode"
10
+ version = "3.3.3"
11
+ description = "An OWL ontology documentation tool using Python, based on LODE."
12
+ authors = [{ name = "Nicholas Car", email = "nick@kurrawong.ai" }]
13
+ requires-python = ">=3.9,<4"
14
+ readme = "README.md"
15
+ license = "BSD-3-Clause"
16
+ classifiers = [
17
+ "Programming Language :: Python :: 3",
18
+ "Programming Language :: Python :: 3.9",
19
+ "Programming Language :: Python :: 3.10",
20
+ "Programming Language :: Python :: 3.11",
21
+ "Programming Language :: Python :: 3.12",
22
+ "Programming Language :: Python :: 3.13",
23
+ "Programming Language :: Python :: 3.14",
24
+ ]
25
+ dependencies = [
26
+ "rdflib>=7.5.0,<8.0.0",
27
+ "Markdown>=3.3.7,<4",
28
+ "dominate>=2.6.0,<3",
29
+ "html5lib>=1.1,<2",
30
+ "httpx>=0.25.0,<1.0.0",
31
+ ]
32
+
33
+ [project.scripts]
34
+ pylode = "pylode.cli:main"
35
+
36
+ [dependency-groups]
37
+ dev = [
38
+ "pytest>=7.2.0,<8",
39
+ "ruff>=0.9.0",
40
+ "pyinstaller>=6.0,<7 ; python_full_version >= '3.9' and python_full_version < '3.11'",
41
+ ]
42
+
43
+ [tool.uv]
44
+ required-version = ">=0.7.9"
45
+ default-groups = "all"
46
+
47
+ [tool.uv.build-backend]
48
+ module-root = ""
49
+
50
+ [build-system]
51
+ requires = ["uv_build>=0.9.1,<0.10.0"]
52
+ build-backend = "uv_build"
53
+
54
+ [tool.ruff.lint]
55
+ extend-select = ["I"]
pylode-3.2.3/LICENSE DELETED
@@ -1,29 +0,0 @@
1
- BSD 3-Clause License
2
-
3
- Copyright (c) 2002-2021, RDFLib Team
4
- All rights reserved.
5
-
6
- Redistribution and use in source and binary forms, with or without
7
- modification, are permitted provided that the following conditions are met:
8
-
9
- 1. Redistributions of source code must retain the above copyright notice, this
10
- list of conditions and the following disclaimer.
11
-
12
- 2. Redistributions in binary form must reproduce the above copyright notice,
13
- this list of conditions and the following disclaimer in the documentation
14
- and/or other materials provided with the distribution.
15
-
16
- 3. Neither the name of the copyright holder nor the names of its
17
- contributors may be used to endorse or promote products derived from
18
- this software without specific prior written permission.
19
-
20
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Binary file
Binary file
@@ -1,30 +0,0 @@
1
- [tool.poetry]
2
- name = "pylode"
3
- version = "3.2.3"
4
- description = "An OWL ontology documentation tool using Python, based on LODE."
5
- authors = ["Nicholas Car <nick@kurrawong.ai>"]
6
- readme = "README.md"
7
-
8
- [tool.poetry.dependencies]
9
- python = "^3.9"
10
- rdflib = ">=7.0.0,<8.0.0"
11
- Markdown = "^3.3.7"
12
- dominate = "^2.6.0"
13
- html5lib = "^1.1"
14
- httpx = ">=0.25.0,<1.0.0"
15
-
16
- [tool.poetry.scripts]
17
- pylode = "pylode.cli:main"
18
-
19
- [tool.poetry.group.dev.dependencies]
20
- pytest = "^7.2.0"
21
- black = "^24.3.0"
22
- flake8 = "^4.0.1"
23
- pyinstaller = { version = "^6.0", python = ">=3.9,<3.11" }
24
-
25
- [build-system]
26
- requires = ["poetry-core>=1.0.0"]
27
- build-backend = "poetry.core.masonry.api"
28
-
29
- [tool.poetry.group.lint.dependencies]
30
- ruff = "0.14.3"
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