pylode 3.4.2__tar.gz → 3.4.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.
- {pylode-3.4.2 → pylode-3.4.3}/PKG-INFO +2 -2
- {pylode-3.4.2 → pylode-3.4.3}/pylode/profiles/vocpub.py +0 -2
- {pylode-3.4.2 → pylode-3.4.3}/pylode/utils.py +10 -4
- pylode-3.4.3/pylode/version.py +3 -0
- {pylode-3.4.2 → pylode-3.4.3}/pyproject.toml +3 -3
- pylode-3.4.2/pylode/version.py +0 -8
- {pylode-3.4.2 → pylode-3.4.3}/README.md +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/__init__.py +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/__main__.py +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/cli.py +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/profiles/__init__.py +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/profiles/ontpub.py +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/profiles/supermodel/__init__.py +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/profiles/supermodel/component/__init__.py +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/profiles/supermodel/component/example.py +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/profiles/supermodel/component/heading.py +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/profiles/supermodel/component/link.py +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/profiles/supermodel/component/preamble.py +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/profiles/supermodel/component/properties_table.py +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/profiles/supermodel/component/tooltip.py +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/profiles/supermodel/dataset.py +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/profiles/supermodel/fragment.py +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/profiles/supermodel/html.py +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/profiles/supermodel/loader.py +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/profiles/supermodel/model.py +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/profiles/supermodel/namespace.py +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/profiles/supermodel/query/__init__.py +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/profiles/supermodel/query/common.py +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/profiles/supermodel/query/property_shape.py +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/profiles/supermodel/random.py +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/profiles/supermodel/state.py +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/pylode.css +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/rdf/dcterms-mod.ttl +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/rdf/licenses.ttl +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/rdf/ontdoc.ttl +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/rdf/owl.ttl +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/rdf/prov.ttl +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/rdf/rdf.ttl +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/rdf/rdfs-mod.ttl +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/rdf/sdo-mod.ttl +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/rdf/skos.ttl +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/rdf/void.ttl +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/rdf_elements.py +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/server.py +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/static/asciidoc.css +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/static/hierarchy.css +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/static/hierarchy.js +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/static/property-table-row.js +0 -0
- {pylode-3.4.2 → pylode-3.4.3}/pylode/static/pylode.css +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pylode
|
|
3
|
-
Version: 3.4.
|
|
3
|
+
Version: 3.4.3
|
|
4
4
|
Summary: An OWL ontology documentation tool using Python, based on LODE.
|
|
5
5
|
Author: Nicholas Car
|
|
6
6
|
Author-email: Nicholas Car <nick@kurrawong.ai>
|
|
@@ -17,7 +17,7 @@ Requires-Dist: dominate>=2.6.0,<3
|
|
|
17
17
|
Requires-Dist: html5lib>=1.1,<2
|
|
18
18
|
Requires-Dist: httpx>=0.25.0,<1.0.0
|
|
19
19
|
Requires-Dist: tqdm>=4.67.3
|
|
20
|
-
Requires-Dist: kurra>=2.3.
|
|
20
|
+
Requires-Dist: kurra>=2.3.4
|
|
21
21
|
Requires-Dist: bs4>=0.0.2 ; extra == 'server'
|
|
22
22
|
Requires-Dist: falcon>=4.2.0 ; extra == 'server'
|
|
23
23
|
Requires-Dist: validators>=0.35.0 ; extra == 'server'
|
|
@@ -382,7 +382,6 @@ class VocPub:
|
|
|
382
382
|
return ordered | remaining
|
|
383
383
|
|
|
384
384
|
def render_literal(l):
|
|
385
|
-
print(l, type(l))
|
|
386
385
|
if isinstance(l, dict):
|
|
387
386
|
return "BN"
|
|
388
387
|
|
|
@@ -397,7 +396,6 @@ class VocPub:
|
|
|
397
396
|
for k, v in order_dict_by_key_list_keep_rest(
|
|
398
397
|
props, CONCEPT_SCHEME_PROPS
|
|
399
398
|
).items():
|
|
400
|
-
print(render_rdf_object(v["objects"]))
|
|
401
399
|
d.appendChild(
|
|
402
400
|
div(dt(a(v["p_name"], href=k)), dd(render_rdf_object(v["objects"])))
|
|
403
401
|
)
|
|
@@ -630,6 +630,9 @@ def rdf_obj_html(
|
|
|
630
630
|
if px != RDF.type:
|
|
631
631
|
if px == OWL.onProperty:
|
|
632
632
|
prop = _hyperlink_html(ont__, back_onts_, ns__, o, fids_)
|
|
633
|
+
#Added the onClass restriction otherwise the class name is ignored in the HTML output.
|
|
634
|
+
elif px == OWL.onClass:
|
|
635
|
+
cls = _hyperlink_html(ont__, back_onts_, ns__, o, fids_, OWL.Class)
|
|
633
636
|
elif px in RESTRICTION_TYPES + OWL_SET_TYPES:
|
|
634
637
|
if px in [
|
|
635
638
|
OWL.minCardinality,
|
|
@@ -676,10 +679,13 @@ def rdf_obj_html(
|
|
|
676
679
|
),
|
|
677
680
|
)
|
|
678
681
|
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
span(
|
|
682
|
-
|
|
682
|
+
#Combined the check for card and cls so that only one br is added.
|
|
683
|
+
if card is not None and cls is not None:
|
|
684
|
+
restriction = span(prop, card, cls, br())
|
|
685
|
+
elif card is not None:
|
|
686
|
+
restriction = span(prop, card, br())
|
|
687
|
+
else:
|
|
688
|
+
restriction = prop
|
|
683
689
|
|
|
684
690
|
return span(restriction) if restriction is not None else "None"
|
|
685
691
|
|
|
@@ -7,7 +7,7 @@ Changelog = "https://github.com/RDFLib/pyLODE/releases"
|
|
|
7
7
|
|
|
8
8
|
[project]
|
|
9
9
|
name = "pylode"
|
|
10
|
-
version = "3.4.
|
|
10
|
+
version = "3.4.3"
|
|
11
11
|
description = "An OWL ontology documentation tool using Python, based on LODE."
|
|
12
12
|
authors = [{ name = "Nicholas Car", email = "nick@kurrawong.ai" }]
|
|
13
13
|
requires-python = ">=3.12,<4"
|
|
@@ -28,7 +28,7 @@ dependencies = [
|
|
|
28
28
|
"html5lib>=1.1,<2",
|
|
29
29
|
"httpx>=0.25.0,<1.0.0",
|
|
30
30
|
"tqdm>=4.67.3",
|
|
31
|
-
"kurra>=2.3.
|
|
31
|
+
"kurra>=2.3.4",
|
|
32
32
|
]
|
|
33
33
|
|
|
34
34
|
[project.scripts]
|
|
@@ -43,7 +43,7 @@ server = [
|
|
|
43
43
|
|
|
44
44
|
[dependency-groups]
|
|
45
45
|
dev = [
|
|
46
|
-
"pytest>=7.2.0,<
|
|
46
|
+
"pytest>=7.2.0,<10",
|
|
47
47
|
"ruff>=0.9.0",
|
|
48
48
|
"pyinstaller>=6.0,<7 ; python_full_version >= '3.9' and python_full_version < '3.11'",
|
|
49
49
|
]
|
pylode-3.4.2/pylode/version.py
DELETED
|
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
|