pylode 2.8.3__tar.gz → 2.9.1__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-2.9.1/.gitignore +119 -0
- pyLODE-2.9.1/Dockerfile +27 -0
- {pyLODE-2.8.3 → pyLODE-2.9.1}/PKG-INFO +66 -29
- {pyLODE-2.8.3 → pyLODE-2.9.1}/README.rst +64 -27
- pyLODE-2.9.1/img/favicon-16x16.png +0 -0
- pyLODE-2.9.1/img/favicon-32x32.png +0 -0
- pyLODE-2.9.1/img/pyLODE-250.png +0 -0
- pyLODE-2.9.1/img/pyLODE.png +0 -0
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pyLODE.egg-info/PKG-INFO +66 -29
- pyLODE-2.9.1/pyLODE.egg-info/SOURCES.txt +279 -0
- pyLODE-2.9.1/pyLODE.egg-info/requires.txt +5 -0
- pyLODE-2.9.1/pylode/__init__.py +29 -0
- pyLODE-2.9.1/pylode/_version.py +5 -0
- pyLODE-2.9.1/pylode/bin/pylode.app +0 -0
- pyLODE-2.9.1/pylode/bin/pylode.exe +0 -0
- pyLODE-2.9.1/pylode/bin/pylode.sh +5 -0
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/cli.py +39 -45
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/common.py +61 -33
- pyLODE-2.9.1/pylode/examples/_make_examples.py +79 -0
- pyLODE-2.9.1/pylode/examples/agift.ttl +9694 -0
- pyLODE-2.9.1/pylode/examples/agift.vocpub.html +14468 -0
- pyLODE-2.9.1/pylode/examples/agift.vocpub.md +6184 -0
- pyLODE-2.9.1/pylode/examples/agrif-notitle.html +3959 -0
- pyLODE-2.9.1/pylode/examples/agrif-notitle.md +1249 -0
- pyLODE-2.9.1/pylode/examples/agrif-notitle.ttl +1453 -0
- pyLODE-2.9.1/pylode/examples/agrif.adoc +2817 -0
- pyLODE-2.9.1/pylode/examples/agrif.adoc.html +7292 -0
- pyLODE-2.9.1/pylode/examples/agrif.html +3968 -0
- pyLODE-2.9.1/pylode/examples/agrif.md +1253 -0
- pyLODE-2.9.1/pylode/examples/agrif.nmpf.html +3959 -0
- pyLODE-2.9.1/pylode/examples/agrif.ttl +1451 -0
- pyLODE-2.9.1/pylode/examples/agrif.vocpub.html +2100 -0
- pyLODE-2.9.1/pylode/examples/agrif.vocpub.md +690 -0
- pyLODE-2.9.1/pylode/examples/alternates.html +547 -0
- pyLODE-2.9.1/pylode/examples/alternates.md +132 -0
- pyLODE-2.9.1/pylode/examples/alternates.ttl +106 -0
- pyLODE-2.9.1/pylode/examples/asgs.html +1513 -0
- pyLODE-2.9.1/pylode/examples/asgs.md +439 -0
- pyLODE-2.9.1/pylode/examples/asgs.ttl +574 -0
- pyLODE-2.9.1/pylode/examples/asgs.vocpub.html +1022 -0
- pyLODE-2.9.1/pylode/examples/asgs.vocpub.md +297 -0
- pyLODE-2.9.1/pylode/examples/bfo.html +4365 -0
- pyLODE-2.9.1/pylode/examples/bfo.md +1254 -0
- pyLODE-2.9.1/pylode/examples/bfo.ttl +5467 -0
- pyLODE-2.9.1/pylode/examples/brick.html +12339 -0
- pyLODE-2.9.1/pylode/examples/brick.md +4033 -0
- pyLODE-2.9.1/pylode/examples/brick.ttl +7294 -0
- pyLODE-2.9.1/pylode/examples/collection-item-format.md +230 -0
- pyLODE-2.9.1/pylode/examples/collection-item-format.ttl +234 -0
- pyLODE-2.9.1/pylode/examples/collection-item-format.vocpub.html +858 -0
- pyLODE-2.9.1/pylode/examples/collection-item-format.vocpub.md +252 -0
- pyLODE-2.9.1/pylode/examples/crs.html +1895 -0
- pyLODE-2.9.1/pylode/examples/crs.md +558 -0
- pyLODE-2.9.1/pylode/examples/crs.ttl +531 -0
- pyLODE-2.9.1/pylode/examples/data-access-rights.ttl +69 -0
- pyLODE-2.9.1/pylode/examples/data-access-rights.vocpub.html +452 -0
- pyLODE-2.9.1/pylode/examples/data-access-rights.vocpub.md +119 -0
- pyLODE-2.9.1/pylode/examples/datatype.html +723 -0
- pyLODE-2.9.1/pylode/examples/datatype.md +197 -0
- pyLODE-2.9.1/pylode/examples/datatype.ttl +256 -0
- pyLODE-2.9.1/pylode/examples/dcat.ttl.broken +2518 -0
- pyLODE-2.9.1/pylode/examples/decprov.html +585 -0
- pyLODE-2.9.1/pylode/examples/decprov.md +144 -0
- pyLODE-2.9.1/pylode/examples/decprov.svg +1 -0
- pyLODE-2.9.1/pylode/examples/decprov.ttl +134 -0
- pyLODE-2.9.1/pylode/examples/doap.html +2046 -0
- pyLODE-2.9.1/pylode/examples/doap.md +565 -0
- pyLODE-2.9.1/pylode/examples/doap.ttl +778 -0
- pyLODE-2.9.1/pylode/examples/earth-science-data-category.ttl +560 -0
- pyLODE-2.9.1/pylode/examples/earth-science-data-category.vocpub.html +2229 -0
- pyLODE-2.9.1/pylode/examples/earth-science-data-category.vocpub.md +773 -0
- pyLODE-2.9.1/pylode/examples/ebg.html +4660 -0
- pyLODE-2.9.1/pylode/examples/ebg.ttl +1256 -0
- pyLODE-2.9.1/pylode/examples/foaf.html +3067 -0
- pyLODE-2.9.1/pylode/examples/foaf.md +858 -0
- pyLODE-2.9.1/pylode/examples/foaf.ttl +726 -0
- pyLODE-2.9.1/pylode/examples/ga-skos.prof.html +441 -0
- pyLODE-2.9.1/pylode/examples/ga-skos.prof.md +93 -0
- pyLODE-2.9.1/pylode/examples/ga-skos.ttl +63 -0
- pyLODE-2.9.1/pylode/examples/geo.html +1949 -0
- pyLODE-2.9.1/pylode/examples/geo.md +525 -0
- pyLODE-2.9.1/pylode/examples/geo.profile.prof.html +552 -0
- pyLODE-2.9.1/pylode/examples/geo.profile.prof.md +134 -0
- pyLODE-2.9.1/pylode/examples/geo.profile.ttl +119 -0
- pyLODE-2.9.1/pylode/examples/geo.ttl +1214 -0
- pyLODE-2.9.1/pylode/examples/geoadminfeatures.html +441 -0
- pyLODE-2.9.1/pylode/examples/geoadminfeatures.md +102 -0
- pyLODE-2.9.1/pylode/examples/geoadminfeatures.ttl +75 -0
- pyLODE-2.9.1/pylode/examples/geofabric.html +597 -0
- pyLODE-2.9.1/pylode/examples/geofabric.md +150 -0
- pyLODE-2.9.1/pylode/examples/geofabric.ttl +208 -0
- pyLODE-2.9.1/pylode/examples/geox.html +731 -0
- pyLODE-2.9.1/pylode/examples/geox.md +179 -0
- pyLODE-2.9.1/pylode/examples/geox.ttl +210 -0
- pyLODE-2.9.1/pylode/examples/gnaf.html +1621 -0
- pyLODE-2.9.1/pylode/examples/gnaf.md +491 -0
- pyLODE-2.9.1/pylode/examples/gnaf.ttl +575 -0
- pyLODE-2.9.1/pylode/examples/iso19115-1-RoleCodes.ttl +169 -0
- pyLODE-2.9.1/pylode/examples/iso19115-1-RoleCodes.vocpub.html +598 -0
- pyLODE-2.9.1/pylode/examples/iso19115-1-RoleCodes.vocpub.md +198 -0
- pyLODE-2.9.1/pylode/examples/iso19160/codelist.ttl +435 -0
- pyLODE-2.9.1/pylode/examples/iso19160/images/address.png +0 -0
- pyLODE-2.9.1/pylode/examples/iso19160/images/address_alias.png +0 -0
- pyLODE-2.9.1/pylode/examples/iso19160/images/address_component.png +0 -0
- pyLODE-2.9.1/pylode/examples/iso19160/images/address_position.png +0 -0
- pyLODE-2.9.1/pylode/examples/iso19160/images/address_provenance.png +0 -0
- pyLODE-2.9.1/pylode/examples/iso19160/images/addressable_object.png +0 -0
- pyLODE-2.9.1/pylode/examples/iso19160/images/addressed_period.png +0 -0
- pyLODE-2.9.1/pylode/examples/iso19160/images/diagrams.pptx +0 -0
- pyLODE-2.9.1/pylode/examples/iso19160/images/lifespan.png +0 -0
- pyLODE-2.9.1/pylode/examples/iso19160/images/major_classes.png +0 -0
- pyLODE-2.9.1/pylode/examples/iso19160/images/reference_object.png +0 -0
- pyLODE-2.9.1/pylode/examples/iso19160/iso19160-1.html +2745 -0
- pyLODE-2.9.1/pylode/examples/iso19160/iso19160-1.ttl +1439 -0
- pyLODE-2.9.1/pylode/examples/iso19160/style.css +157 -0
- pyLODE-2.9.1/pylode/examples/iso19160-1-nz-profile.html +466 -0
- pyLODE-2.9.1/pylode/examples/iso19160-1-nz-profile.md +109 -0
- pyLODE-2.9.1/pylode/examples/iso19160-1-nz-profile.ttl +126 -0
- pyLODE-2.9.1/pylode/examples/iso21972.html +3647 -0
- pyLODE-2.9.1/pylode/examples/iso21972.md +1161 -0
- pyLODE-2.9.1/pylode/examples/iso21972.ttl +1249 -0
- pyLODE-2.9.1/pylode/examples/loci.html +767 -0
- pyLODE-2.9.1/pylode/examples/loci.md +225 -0
- pyLODE-2.9.1/pylode/examples/loci.ttl +259 -0
- pyLODE-2.9.1/pylode/examples/ogc/fonts/Lato-Regular.eot +0 -0
- pyLODE-2.9.1/pylode/examples/ogc/fonts/Lato-Regular.ttf +0 -0
- pyLODE-2.9.1/pylode/examples/ogc/fonts/Lato-Regular.woff +0 -0
- pyLODE-2.9.1/pylode/examples/ogc/fonts/Lato-Regular.woff2 +0 -0
- pyLODE-2.9.1/pylode/examples/ogc/hyf.3.html +1330 -0
- pyLODE-2.9.1/pylode/examples/ogc/hyf.4.html +1505 -0
- pyLODE-2.9.1/pylode/examples/ogc/hyf.5.html +1330 -0
- pyLODE-2.9.1/pylode/examples/ogc/hyf.html +1334 -0
- pyLODE-2.9.1/pylode/examples/ogc/hyf.skos.html +491 -0
- pyLODE-2.9.1/pylode/examples/ogc/hyf.ttl +411 -0
- pyLODE-2.9.1/pylode/examples/om.html +19651 -0
- pyLODE-2.9.1/pylode/examples/om.md +5694 -0
- pyLODE-2.9.1/pylode/examples/om.ttl +27294 -0
- pyLODE-2.9.1/pylode/examples/owl.html +2904 -0
- pyLODE-2.9.1/pylode/examples/owl.md +804 -0
- pyLODE-2.9.1/pylode/examples/owl.ttl +552 -0
- pyLODE-2.9.1/pylode/examples/placenames.html +1324 -0
- pyLODE-2.9.1/pylode/examples/placenames.md +420 -0
- pyLODE-2.9.1/pylode/examples/placenames.ttl +415 -0
- pyLODE-2.9.1/pylode/examples/plot.html +1227 -0
- pyLODE-2.9.1/pylode/examples/plot.md +362 -0
- pyLODE-2.9.1/pylode/examples/plot.ttl +563 -0
- pyLODE-2.9.1/pylode/examples/project.adoc +752 -0
- pyLODE-2.9.1/pylode/examples/project.adoc.html +2156 -0
- pyLODE-2.9.1/pylode/examples/project.html +1228 -0
- pyLODE-2.9.1/pylode/examples/project.md +298 -0
- pyLODE-2.9.1/pylode/examples/project.ttl +596 -0
- pyLODE-2.9.1/pylode/examples/ra.html +505 -0
- pyLODE-2.9.1/pylode/examples/ra.md +117 -0
- pyLODE-2.9.1/pylode/examples/ra.ttl +95 -0
- pyLODE-2.9.1/pylode/examples/rdf.html +738 -0
- pyLODE-2.9.1/pylode/examples/rdf.md +178 -0
- pyLODE-2.9.1/pylode/examples/rdf.ttl +125 -0
- pyLODE-2.9.1/pylode/examples/rdfs.html +823 -0
- pyLODE-2.9.1/pylode/examples/rdfs.md +199 -0
- pyLODE-2.9.1/pylode/examples/rdfs.ttl +109 -0
- pyLODE-2.9.1/pylode/examples/reg.html +1732 -0
- pyLODE-2.9.1/pylode/examples/reg.md +486 -0
- pyLODE-2.9.1/pylode/examples/reg.png +0 -0
- pyLODE-2.9.1/pylode/examples/reg.ttl +496 -0
- pyLODE-2.9.1/pylode/examples/skos-thes.html +1235 -0
- pyLODE-2.9.1/pylode/examples/skos-thes.ttl +518 -0
- pyLODE-2.9.1/pylode/examples/sosa.html +1563 -0
- pyLODE-2.9.1/pylode/examples/sosa.md +472 -0
- pyLODE-2.9.1/pylode/examples/sosa.ttl +424 -0
- pyLODE-2.9.1/pylode/examples/ssn.html +1218 -0
- pyLODE-2.9.1/pylode/examples/ssn.md +366 -0
- pyLODE-2.9.1/pylode/examples/ssn.ttl +415 -0
- pyLODE-2.9.1/pylode/examples/void/changelog.txt +4 -0
- pyLODE-2.9.1/pylode/examples/void/figs.html +11 -0
- pyLODE-2.9.1/pylode/examples/void/properties.png +0 -0
- pyLODE-2.9.1/pylode/examples/void/style.css +157 -0
- pyLODE-2.9.1/pylode/examples/void/void.html +961 -0
- pyLODE-2.9.1/pylode/examples/void/void.md +343 -0
- pyLODE-2.9.1/pylode/examples/void/void.ttl +257 -0
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/profiles/__init__.py +1 -0
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/profiles/base.py +144 -30
- pyLODE-2.8.3/pylode/profiles/ontdoc.py → pyLODE-2.9.1/pylode/profiles/nmpf.py +115 -67
- pyLODE-2.9.1/pylode/profiles/ontdoc.py +1330 -0
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/profiles/prof.py +27 -29
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/profiles/profile.py +25 -2
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/profiles/vocpub.py +94 -60
- pyLODE-2.9.1/pylode/pylode-cli.spec +55 -0
- pyLODE-2.9.1/pylode/server.py +60 -0
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/style/pylode.css +4 -4
- pyLODE-2.8.3/pylode/templates/agent.md → pyLODE-2.9.1/pylode/templates/agent.adoc +4 -4
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/agent.html +1 -1
- pyLODE-2.9.1/pylode/templates/agent.md +11 -0
- pyLODE-2.9.1/pylode/templates/namespaces.adoc +7 -0
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/namespaces.html +2 -0
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/namespaces.md +2 -0
- {pyLODE-2.8.3/pylode/templates/ontdoc → pyLODE-2.9.1/pylode/templates/nmpf}/class.html +13 -3
- {pyLODE-2.8.3/pylode/templates/ontdoc → pyLODE-2.9.1/pylode/templates/nmpf}/class.md +4 -1
- pyLODE-2.9.1/pylode/templates/nmpf/document.html +45 -0
- pyLODE-2.9.1/pylode/templates/nmpf/named_individual.html +97 -0
- pyLODE-2.9.1/pylode/templates/nmpf/named_individual.md +37 -0
- {pyLODE-2.8.3/pylode/templates/ontdoc → pyLODE-2.9.1/pylode/templates/nmpf}/property.html +3 -3
- {pyLODE-2.8.3/pylode/templates/ontdoc → pyLODE-2.9.1/pylode/templates/nmpf}/property.md +1 -1
- pyLODE-2.9.1/pylode/templates/ontdoc/class.adoc +85 -0
- pyLODE-2.9.1/pylode/templates/ontdoc/class.html +131 -0
- pyLODE-2.9.1/pylode/templates/ontdoc/class.md +43 -0
- pyLODE-2.9.1/pylode/templates/ontdoc/classes.adoc +8 -0
- pyLODE-2.9.1/pylode/templates/ontdoc/classes.html +11 -0
- pyLODE-2.9.1/pylode/templates/ontdoc/classes.md +7 -0
- pyLODE-2.9.1/pylode/templates/ontdoc/document.adoc +43 -0
- pyLODE-2.9.1/pylode/templates/ontdoc/document.html +43 -0
- pyLODE-2.9.1/pylode/templates/ontdoc/document.md +16 -0
- pyLODE-2.9.1/pylode/templates/ontdoc/metadata.adoc +91 -0
- pyLODE-2.9.1/pylode/templates/ontdoc/metadata.html +127 -0
- pyLODE-2.9.1/pylode/templates/ontdoc/metadata.md +111 -0
- pyLODE-2.9.1/pylode/templates/ontdoc/named_individual.adoc +43 -0
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/ontdoc/named_individual.html +2 -2
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/ontdoc/named_individual.md +1 -1
- pyLODE-2.9.1/pylode/templates/ontdoc/named_individuals.adoc +7 -0
- pyLODE-2.9.1/pylode/templates/ontdoc/named_individuals.html +13 -0
- pyLODE-2.9.1/pylode/templates/ontdoc/named_individuals.md +7 -0
- pyLODE-2.9.1/pylode/templates/ontdoc/properties.adoc +47 -0
- pyLODE-2.9.1/pylode/templates/ontdoc/properties.html +65 -0
- pyLODE-2.9.1/pylode/templates/ontdoc/properties.md +45 -0
- pyLODE-2.9.1/pylode/templates/ontdoc/property.adoc +65 -0
- pyLODE-2.9.1/pylode/templates/ontdoc/property.html +129 -0
- pyLODE-2.9.1/pylode/templates/ontdoc/property.md +37 -0
- pyLODE-2.9.1/pylode/templates/orcid.adoc +1 -0
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/orcid.html +4 -2
- pyLODE-2.9.1/pylode/templates/orcid.md +1 -0
- pyLODE-2.9.1/pylode/templates/prof/prof.html +41 -0
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/vocpub/collection.html +3 -3
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/vocpub/concept.html +1 -1
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/vocpub/concept.md +2 -2
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/vocpub/concepts.md +1 -1
- pyLODE-2.9.1/pylode/templates/vocpub/taxonomy.html +45 -0
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/vocpub/taxonomy.md +2 -2
- pyLODE-2.9.1/requirements.dev.txt +4 -0
- pyLODE-2.8.3/pyLODE.egg-info/requires.txt → pyLODE-2.9.1/requirements.server.txt +2 -4
- pyLODE-2.9.1/requirements.txt +5 -0
- {pyLODE-2.8.3 → pyLODE-2.9.1}/setup.py +9 -5
- pyLODE-2.9.1/tests/agrif.html +3964 -0
- pyLODE-2.9.1/tests/agrif.ttl +1459 -0
- pyLODE-2.9.1/tests/decprov.ttl +134 -0
- pyLODE-2.9.1/tests/simpleont.ttl +34 -0
- pyLODE-2.9.1/tests/test_baseprofile.py +48 -0
- pyLODE-2.9.1/tests/test_class.py +36 -0
- pyLODE-2.9.1/tests/test_issue_110.py +15 -0
- pyLODE-2.9.1/tests/test_issue_110_input.ttl +17870 -0
- pyLODE-2.9.1/tests/test_issue_110_output.html +57727 -0
- pyLODE-2.9.1/tests/test_ontdoc.py +44 -0
- pyLODE-2.9.1/tests/test_property.py +1 -0
- pyLODE-2.9.1/upload-to-PyPI.txt +13 -0
- pyLODE-2.8.3/pyLODE.egg-info/SOURCES.txt +0 -67
- pyLODE-2.8.3/pylode/__init__.py +0 -5
- pyLODE-2.8.3/pylode/server.py +0 -24
- pyLODE-2.8.3/pylode/templates/ontdoc/document.html +0 -42
- pyLODE-2.8.3/pylode/templates/orcid.md +0 -1
- pyLODE-2.8.3/pylode/templates/prof/prof.html +0 -38
- pyLODE-2.8.3/pylode/templates/vocpub/taxonomy.html +0 -42
- pyLODE-2.8.3/pylode/tests/test_ont_html_description.py +0 -7
- pyLODE-2.8.3/pylode/tests/test_skos.py +0 -8
- pyLODE-2.8.3/pylode/tests/tests_all.py +0 -50
- {pyLODE-2.8.3 → pyLODE-2.9.1}/LICENSE +0 -0
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pyLODE.egg-info/dependency_links.txt +0 -0
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pyLODE.egg-info/entry_points.txt +0 -0
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pyLODE.egg-info/top_level.txt +0 -0
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/curies.py +0 -0
- {pyLODE-2.8.3/pylode/templates/ontdoc → pyLODE-2.9.1/pylode/templates/nmpf}/classes.html +0 -0
- {pyLODE-2.8.3/pylode/templates/ontdoc → pyLODE-2.9.1/pylode/templates/nmpf}/classes.md +0 -0
- {pyLODE-2.8.3/pylode/templates/ontdoc → pyLODE-2.9.1/pylode/templates/nmpf}/document.md +0 -0
- {pyLODE-2.8.3/pylode/templates/ontdoc → pyLODE-2.9.1/pylode/templates/nmpf}/metadata.html +0 -0
- {pyLODE-2.8.3/pylode/templates/ontdoc → pyLODE-2.9.1/pylode/templates/nmpf}/metadata.md +0 -0
- {pyLODE-2.8.3/pylode/templates/ontdoc → pyLODE-2.9.1/pylode/templates/nmpf}/named_individuals.html +0 -0
- {pyLODE-2.8.3/pylode/templates/ontdoc → pyLODE-2.9.1/pylode/templates/nmpf}/named_individuals.md +0 -0
- {pyLODE-2.8.3/pylode/templates/ontdoc → pyLODE-2.9.1/pylode/templates/nmpf}/properties.html +0 -0
- {pyLODE-2.8.3/pylode/templates/ontdoc → pyLODE-2.9.1/pylode/templates/nmpf}/properties.md +0 -0
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/prof/prof.md +0 -0
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/prof/profile.html +0 -0
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/prof/profile.md +0 -0
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/prof/resource_descriptor.html +0 -0
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/prof/resource_descriptor.md +0 -0
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/vocpub/collection.md +0 -0
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/vocpub/collections.html +0 -0
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/vocpub/collections.md +0 -0
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/vocpub/concept_hierarchy.html +0 -0
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/vocpub/concept_scheme.html +0 -0
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/vocpub/concept_scheme.md +0 -0
- {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/vocpub/concepts.html +0 -0
- {pyLODE-2.8.3 → pyLODE-2.9.1}/setup.cfg +0 -0
- /pyLODE-2.8.3/pylode/tests/__init__.py → /pyLODE-2.9.1/tests/test_metadata.py +0 -0
pyLODE-2.9.1/.gitignore
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
# Created by .ignore support plugin (hsz.mobi)
|
|
2
|
+
### Python template
|
|
3
|
+
# Byte-compiled / optimized / DLL files
|
|
4
|
+
__pycache__/
|
|
5
|
+
*.py[cod]
|
|
6
|
+
*$py.class
|
|
7
|
+
|
|
8
|
+
# C extensions
|
|
9
|
+
*.so
|
|
10
|
+
|
|
11
|
+
# Distribution / packaging
|
|
12
|
+
.Python
|
|
13
|
+
build/
|
|
14
|
+
develop-eggs/
|
|
15
|
+
dist/
|
|
16
|
+
downloads/
|
|
17
|
+
eggs/
|
|
18
|
+
.eggs/
|
|
19
|
+
lib/
|
|
20
|
+
lib64/
|
|
21
|
+
parts/
|
|
22
|
+
sdist/
|
|
23
|
+
var/
|
|
24
|
+
wheels/
|
|
25
|
+
*.egg-info/
|
|
26
|
+
.installed.cfg
|
|
27
|
+
*.egg
|
|
28
|
+
MANIFEST
|
|
29
|
+
|
|
30
|
+
# PyInstaller
|
|
31
|
+
# Usually these files are written by a python script from a template
|
|
32
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
33
|
+
*.manifest
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit tests / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.coverage
|
|
43
|
+
.coverage.*
|
|
44
|
+
.cache
|
|
45
|
+
nosetests.xml
|
|
46
|
+
coverage.xml
|
|
47
|
+
*.cover
|
|
48
|
+
.hypothesis/
|
|
49
|
+
|
|
50
|
+
# Translations
|
|
51
|
+
*.mo
|
|
52
|
+
*.pot
|
|
53
|
+
|
|
54
|
+
# Django stuff:
|
|
55
|
+
*.log
|
|
56
|
+
.static_storage/
|
|
57
|
+
.media/
|
|
58
|
+
local_settings.py
|
|
59
|
+
|
|
60
|
+
# Flask stuff:
|
|
61
|
+
instance/
|
|
62
|
+
.webassets-cache
|
|
63
|
+
|
|
64
|
+
# Scrapy stuff:
|
|
65
|
+
.scrapy
|
|
66
|
+
|
|
67
|
+
# Sphinx documentation
|
|
68
|
+
docs/_build/
|
|
69
|
+
|
|
70
|
+
# PyBuilder
|
|
71
|
+
target/
|
|
72
|
+
|
|
73
|
+
# Jupyter Notebook
|
|
74
|
+
.ipynb_checkpoints
|
|
75
|
+
|
|
76
|
+
# pyenv
|
|
77
|
+
.python-version
|
|
78
|
+
|
|
79
|
+
# celery beat schedule file
|
|
80
|
+
celerybeat-schedule
|
|
81
|
+
|
|
82
|
+
# SageMath parsed files
|
|
83
|
+
*.sage.py
|
|
84
|
+
|
|
85
|
+
# Environments
|
|
86
|
+
.env
|
|
87
|
+
.venv
|
|
88
|
+
env/
|
|
89
|
+
venv/
|
|
90
|
+
ENV/
|
|
91
|
+
env.bak/
|
|
92
|
+
venv.bak/
|
|
93
|
+
|
|
94
|
+
# Spyder project settings
|
|
95
|
+
.spyderproject
|
|
96
|
+
.spyproject
|
|
97
|
+
|
|
98
|
+
# Rope project settings
|
|
99
|
+
.ropeproject
|
|
100
|
+
|
|
101
|
+
# mkdocs documentation
|
|
102
|
+
/site
|
|
103
|
+
|
|
104
|
+
# mypy
|
|
105
|
+
.mypy_cache/
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
# Jetbrains tools
|
|
109
|
+
.idea/
|
|
110
|
+
|
|
111
|
+
# Mac
|
|
112
|
+
.DS_Store
|
|
113
|
+
|
|
114
|
+
# temp dirs
|
|
115
|
+
output_files/
|
|
116
|
+
|
|
117
|
+
/pylode/examples/ogc/excluded/
|
|
118
|
+
|
|
119
|
+
pylode/_version.py
|
pyLODE-2.9.1/Dockerfile
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
ARG PYTHON_VERSION=3.8-slim
|
|
2
|
+
FROM python:$PYTHON_VERSION
|
|
3
|
+
|
|
4
|
+
MAINTAINER pyLODE Developers <https://github.com/RDFLib/pyLODE/graphs/contributors>
|
|
5
|
+
|
|
6
|
+
USER root
|
|
7
|
+
|
|
8
|
+
RUN apt-get update && \
|
|
9
|
+
apt-get upgrade -y --allow-downgrades --allow-remove-essential --allow-change-held-packages
|
|
10
|
+
|
|
11
|
+
# install extra requirements for pyLODE-via-server
|
|
12
|
+
COPY requirements.server.txt /tmp/
|
|
13
|
+
RUN pip3 install -r /tmp/requirements.server.txt
|
|
14
|
+
|
|
15
|
+
# copy the current directory contents
|
|
16
|
+
ADD . /app
|
|
17
|
+
|
|
18
|
+
WORKDIR /app
|
|
19
|
+
|
|
20
|
+
# install pyLODE from source, ensures we always use the latest development branch
|
|
21
|
+
RUN python3 setup.py install
|
|
22
|
+
|
|
23
|
+
RUN cd ./pylode
|
|
24
|
+
|
|
25
|
+
EXPOSE 8000
|
|
26
|
+
|
|
27
|
+
CMD ["gunicorn" , "-b", "0.0.0.0:8000", "--chdir", "/app/pylode", "server:api"]
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyLODE
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.9.1
|
|
4
4
|
Summary: An OWL ontology documentation tool using Python and templating, based on LODE.
|
|
5
5
|
Home-page: https://github.com/rdflib/pyLODE
|
|
6
6
|
Author: Nicholas J. Car
|
|
7
7
|
Author-email: nicholas.car@surroundaustralia.com
|
|
8
8
|
License: LICENSE
|
|
9
|
-
Download-URL: https://github.com/rdflib/pyLODE/archive/v2.
|
|
9
|
+
Download-URL: https://github.com/rdflib/pyLODE/archive/v2.9.0.tar.gz
|
|
10
10
|
Project-URL: Bug Reports, https://github.com/rdflib/pyLODE/issues
|
|
11
11
|
Project-URL: Source, https://github.com/rdflib/pyLODE/
|
|
12
12
|
Description: .. image:: img/pyLODE-250.png
|
|
@@ -66,14 +66,14 @@ Description: .. image:: img/pyLODE-250.png
|
|
|
66
66
|
- via the popular `Falcon framework <https://falconframework.org/>`__.
|
|
67
67
|
- see server.py in the main folder
|
|
68
68
|
- as-a-service online
|
|
69
|
-
- hosted at https://
|
|
69
|
+
- hosted at https://pylode.surroundaustralia.com
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
Examples
|
|
73
73
|
========
|
|
74
74
|
pyLODE has been tested with all of the 30+ ontologies in `pylode/examples/ <pylode/examples/>`_ and we are trying to
|
|
75
75
|
ensure it captures all of their annotations. For each example, there is the original RDF file and the corresponding
|
|
76
|
-
output, in HTML & Markdown.
|
|
76
|
+
output, in HTML & Markdown. There are some examples of ADOC too.
|
|
77
77
|
|
|
78
78
|
For example, `Epimorphic's <https://www.epimorphics.com/>`__'s **Registry Ontology** is:
|
|
79
79
|
|
|
@@ -90,6 +90,9 @@ Description: .. image:: img/pyLODE-250.png
|
|
|
90
90
|
- see `the point-of-truth rendered online <https://linked.data.gov.au/def/agrif>`__
|
|
91
91
|
- **agrif.md** - Markdown output
|
|
92
92
|
- see this `rendered online by GitHub <https://github.com/RDFLib/pyLODE/blob/master/pylode/examples/agrif.md>`__
|
|
93
|
+
- **agrif.md** - ASCIIDOC output
|
|
94
|
+
- `resulting ADOC source <https://github.com/RDFLib/pyLODE/blob/master/pylode/examples/agrif.adoc>`__
|
|
95
|
+
- `rendered in HTML <https://github.com/RDFLib/pyLODE/blob/master/pylode/examples/agrif.adoc.html>`__
|
|
93
96
|
- **agrif.skos.html** - HTMl output, "vocpub" profile
|
|
94
97
|
- see this `rendered online by GitHack <https://raw.githack.com/RDFLib/pyLODE/master/pylode/examples/agrif.vocpub.html>`__
|
|
95
98
|
|
|
@@ -145,8 +148,7 @@ Description: .. image:: img/pyLODE-250.png
|
|
|
145
148
|
html = pylode.MakeDocco(
|
|
146
149
|
input_data_file=input_file_path,
|
|
147
150
|
outputformat="html",
|
|
148
|
-
profile="
|
|
149
|
-
exclude_css=True
|
|
151
|
+
profile="ontdoc"
|
|
150
152
|
).document()
|
|
151
153
|
|
|
152
154
|
You will now have the HTML content within the variable ``html``.
|
|
@@ -164,9 +166,11 @@ Description: .. image:: img/pyLODE-250.png
|
|
|
164
166
|
* `pylode/bin/pylode.app <pylode/bin/pylode.app>`__ - MAC OS command line executable script
|
|
165
167
|
* `pylode/bin/pylode.exe <pylode/bin/pylode.exe>`__ - Windows command line executable
|
|
166
168
|
|
|
169
|
+
All use the same command line arguments.
|
|
170
|
+
|
|
167
171
|
Additionally, there is a `Falcon framework <https://falconframework.org/>`__ local HTTP server option.
|
|
168
172
|
|
|
169
|
-
|
|
173
|
+
Also, a web UI for pyLODE is available at `<https://pylode.surroundaustralia.com>`.
|
|
170
174
|
|
|
171
175
|
Command line arguments
|
|
172
176
|
----------------------
|
|
@@ -176,31 +180,54 @@ Description: .. image:: img/pyLODE-250.png
|
|
|
176
180
|
- The RDF ontology file you wish to generate HTML for Must be in either Turtle, RDF/XML, JSON-LD or N-Triples formats indicated by the file type extensions .rdf, .owl, .ttl, .n3, .nt, .json respectively
|
|
177
181
|
- ``-u`` or ``--url``, *required if* ``-i`` *not used*
|
|
178
182
|
- The RDF ontology you wish to generate HTML for, online. Must be an absolute URL that can be resolved to RDF, preferably via Content Negotiation.
|
|
179
|
-
- ``-c`` or ``--css``, *optional, default '
|
|
180
|
-
- Whether (true) or not (false) to
|
|
183
|
+
- ``-c`` or ``--css``, *optional, default 'true'*
|
|
184
|
+
- Whether (true) or not (false) to include CSS in an HTML output.
|
|
181
185
|
- ``-o`` or ``--outputfile``, *optional*
|
|
182
|
-
- A name you wish to assign to the output file. Will be postfixed with .html or .
|
|
186
|
+
- A name you wish to assign to the output file. Will be postfixed with .html, .md or .adoc. If not specified, the name of the input file or last segment of RDF URI will be used, + .html/.md/.adoc.
|
|
183
187
|
- ``-f`` or ``--outputformat``, *optional, default 'html'*
|
|
184
|
-
- The output format of the documentation. 'html' or '
|
|
185
|
-
- ``-p`` or ``--profile``, *optional, default '
|
|
186
|
-
- The profile (specification) for ontology documentation used.
|
|
188
|
+
- The output format of the documentation. 'html', 'md' or 'adoc' accepted.
|
|
189
|
+
- ``-p`` or ``--profile``, *optional, default 'ontdoc'*
|
|
190
|
+
- The profile (specification) for ontology documentation used. "ontdoc" (for OWL Ontologies), "vocpub" (for `Simple Knowledge Organization System (SKOS) <https://www.w3.org/TR/skos-reference/>`__) vocabularies or SKOS versions of OWL ontologies, "prof" for `Profiles Vocabularies <https://www.w3.org/TR/dx-prof/>`__ profiles. See ``-lp`` for all profiles supported.
|
|
187
191
|
- ``-lp`` or ``--listprofiles``, *optional, no arguments*
|
|
188
192
|
- Lists all the profiles (specifications) for ontology documentation supported by pyLODE
|
|
189
193
|
|
|
190
194
|
Example call
|
|
191
195
|
------------
|
|
192
|
-
This call to the BASH script in `pylode/bin/ <pylode/bin/>`__ will
|
|
193
|
-
|
|
194
|
-
save it with a basic CSS file into
|
|
195
|
-
`pylode/output\_files/ <pylode/output_files/>`__:
|
|
196
|
+
This basic call to the BASH script in `pylode/bin/ <pylode/bin/>`__ will
|
|
197
|
+
print to standard out an HTML document for an ontology called ``placenames.html``.
|
|
196
198
|
|
|
197
199
|
::
|
|
198
200
|
|
|
199
|
-
./pylode -i ../example/prof.ttl
|
|
201
|
+
./pylode -i ../example/prof.ttl
|
|
202
|
+
|
|
203
|
+
An output file could be specified by using `-o`, rather than printing to standard out.
|
|
200
204
|
|
|
201
205
|
Online Service
|
|
202
206
|
--------------
|
|
203
|
-
An online
|
|
207
|
+
An online version of pyLODE is now available at https://pylode.surroundaustralia.com/.
|
|
208
|
+
|
|
209
|
+
Docker
|
|
210
|
+
------
|
|
211
|
+
Install locally by first building the container
|
|
212
|
+
|
|
213
|
+
::
|
|
214
|
+
|
|
215
|
+
docker build -t pylode:latest --build-arg PYTHON_VERSION=3.8-slim .
|
|
216
|
+
|
|
217
|
+
Then run the container
|
|
218
|
+
|
|
219
|
+
::
|
|
220
|
+
|
|
221
|
+
docker run -it -d -p 8000:8000 -e GTAGID=${Google TagID} pylode
|
|
222
|
+
|
|
223
|
+
N.B. The Google TagID is NOT required unless Google Analytics is required.
|
|
224
|
+
It looks as follows `GTAGID=UA-168806395-1`.
|
|
225
|
+
|
|
226
|
+
You can now access the service on localhost
|
|
227
|
+
|
|
228
|
+
::
|
|
229
|
+
|
|
230
|
+
curl localhost:8000/lode?url=http://sweetontology.net/sweetAll.ttl
|
|
204
231
|
|
|
205
232
|
Local server - Falcon
|
|
206
233
|
---------------------
|
|
@@ -208,13 +235,14 @@ Description: .. image:: img/pyLODE-250.png
|
|
|
208
235
|
|
|
209
236
|
::
|
|
210
237
|
|
|
211
|
-
|
|
238
|
+
gunicorn --chdir /path/to/pyLODE/pylode server:api
|
|
239
|
+
|
|
240
|
+
The server is then available at localhost:8000 and localhost:8000/pylode for the active endpoint. Note that the server must be fed a URL to an ontology to document supplied by a server capable of responding to Content Negotiation, i.e. it must supply RDF according to an HTTP `Accept` request for `text/turtle`, `application/rdf+xml` etc.
|
|
212
241
|
|
|
213
|
-
Then, in another terminal:
|
|
214
242
|
|
|
215
243
|
::
|
|
216
244
|
|
|
217
|
-
curl localhost:8000/
|
|
245
|
+
curl localhost:8000/pylode?url=http://sweetontology.net/sweetAll.ttl
|
|
218
246
|
|
|
219
247
|
Windows
|
|
220
248
|
-------
|
|
@@ -240,7 +268,7 @@ Description: .. image:: img/pyLODE-250.png
|
|
|
240
268
|
|
|
241
269
|
This will output ``pylode.exe`` in the ``dist`` directory in ``pylode``. The .exe file in ``bin/`` is just the latest copy of this.
|
|
242
270
|
|
|
243
|
-
You can now run the pyLODE Command Line utility via ``pylode.exe``.
|
|
271
|
+
You can now run the pyLODE Command Line utility via ``pylode.exe``.
|
|
244
272
|
See above for the pyLODE command line util usage instructions.
|
|
245
273
|
|
|
246
274
|
Mac OS
|
|
@@ -253,6 +281,7 @@ Description: .. image:: img/pyLODE-250.png
|
|
|
253
281
|
-----
|
|
254
282
|
In ``pylode/bin/``, there is a shell script ``pylode.sh``. You can run this on the command line. It just pushes queries to the Python command line ``cli.py``.
|
|
255
283
|
|
|
284
|
+
|
|
256
285
|
What pyLODE understands
|
|
257
286
|
=======================
|
|
258
287
|
pyLODE understands Ontologies, Taxonomies & Profiles and handles them based on the *Ontology Document*, *Vocabulary Publication* and *PROF* profiles that it contains. These three profiles share understanding of basic annotation properties.
|
|
@@ -283,7 +312,7 @@ Description: .. image:: img/pyLODE-250.png
|
|
|
283
312
|
- per ``rdfs:Class`` or ``owl:Class``
|
|
284
313
|
- *title* - ``rdfs:label`` or ``skos:prefLabel`` or ``dct:title``
|
|
285
314
|
- *description* - ``rdf:comment`` or ``skos:definition`` or ``dct:description`` as a string or using `Markdown <https://daringfireball.net/projects/markdown/>`__ or HTML
|
|
286
|
-
- *
|
|
315
|
+
- *scope note* - a ``skos:scopeNote`` string
|
|
287
316
|
- *example* - a ``skos:example`` string containing RDF
|
|
288
317
|
- *super classes* - by declaring a class to be ``owl:subClassOf`` something
|
|
289
318
|
- *sub classes* - pyLODE will work these out itself
|
|
@@ -294,7 +323,7 @@ Description: .. image:: img/pyLODE-250.png
|
|
|
294
323
|
- *title* - ``rdfs:label`` or ``skos:prefLabel`` or ``dct:title``
|
|
295
324
|
- *description* - ``rdf:comment`` or ``skos:definition`` or ``dct:description``
|
|
296
325
|
- *usage note* - a ``skos:scopeNote`` string
|
|
297
|
-
- *example* - a ``skos:example`` string containing RDF
|
|
326
|
+
- *example* - a ``skos:example`` string containing RDF - this will be monospaced in outputs
|
|
298
327
|
- *super properties* - by declaring a class to be ``owl:subPropertyOf`` something
|
|
299
328
|
- *sub properties* - pyLODE will work these out itself
|
|
300
329
|
- *equivalent properties* - by declaring a class to be ``owl:equivalentProperty`` something
|
|
@@ -534,7 +563,7 @@ Description: .. image:: img/pyLODE-250.png
|
|
|
534
563
|
**Token** **URI**
|
|
535
564
|
========= ==========================================
|
|
536
565
|
prof `<https://www.w3.org/TR/dx-prof/>`_
|
|
537
|
-
ontdoc `<https://w3id.org/profile/
|
|
566
|
+
ontdoc `<https://w3id.org/profile/ontdoc>`_
|
|
538
567
|
vocpub `<https://w3id.org/profile/vocpub>`_
|
|
539
568
|
========= ==========================================
|
|
540
569
|
|
|
@@ -670,7 +699,7 @@ Description: .. image:: img/pyLODE-250.png
|
|
|
670
699
|
Current Release
|
|
671
700
|
---------------
|
|
672
701
|
|
|
673
|
-
The current release, as of
|
|
702
|
+
The current release, as of April, 2021, is **2.9.0**.
|
|
674
703
|
|
|
675
704
|
Release Schedule
|
|
676
705
|
----------------
|
|
@@ -679,8 +708,15 @@ Description: .. image:: img/pyLODE-250.png
|
|
|
679
708
|
:header: "Version", "Date", "Description"
|
|
680
709
|
:widths: 15, 10, 30
|
|
681
710
|
|
|
682
|
-
3.0,
|
|
683
|
-
**2.
|
|
711
|
+
3.0, *?*, "Will include pre-testing inputs with SHACL"
|
|
712
|
+
**2.9.1**, **28 Apr 2021**, "Support for ASCIIDOC format (OntDoc profile only)"
|
|
713
|
+
2.8.11, 28 Apr 2021, "Further changes for PyPI only"
|
|
714
|
+
2.8.10, 27 Apr 2021, "Further changes for PyPI only"
|
|
715
|
+
2.8.9, 27 Apr 2021, "PyPI enhancements only"
|
|
716
|
+
2.8.8, 27 Apr 2021, "Several small bugs fixed, auto-generation of version no. from Git tag"
|
|
717
|
+
2.8.6, 23 Feb 20201, "Fixing char encoding issues, updated examples, new test files style - per issue"
|
|
718
|
+
2.8.5, 5 Jan 20201, "Small enhancements to the Falcon server deployment option"
|
|
719
|
+
2.8.3, 3 July 2020, "Packaging bugfixes only"
|
|
684
720
|
2.7, 1 July 2020, "Much refactoring for new profile creation ease"
|
|
685
721
|
2.6, June 2020, "Supports PROF profiles as well as taxonomies & ontologies"
|
|
686
722
|
2.4, 27 May 2020, "Small improvements over 2.0"
|
|
@@ -700,6 +736,7 @@ Description: .. image:: img/pyLODE-250.png
|
|
|
700
736
|
|
|
701
737
|
2.0 - current
|
|
702
738
|
~~~~~~~~~~~~~~
|
|
739
|
+
- includes 3rd-party-created profile: NMPF
|
|
703
740
|
- handles Named Individuals in OWL ontologies
|
|
704
741
|
- implements "owldoc" & "vocpub" documentation profiles for OWL, SKOS and OWL-as-SKOS results
|
|
705
742
|
- implements "prof" profile for documentation of `Profiles Vocabulary <https://www.w3.org/TR/dx-prof/>`__ profiles
|
|
@@ -55,14 +55,14 @@ The tool can be run as in these ways:
|
|
|
55
55
|
- via the popular `Falcon framework <https://falconframework.org/>`__.
|
|
56
56
|
- see server.py in the main folder
|
|
57
57
|
- as-a-service online
|
|
58
|
-
- hosted at https://
|
|
58
|
+
- hosted at https://pylode.surroundaustralia.com
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
Examples
|
|
62
62
|
========
|
|
63
63
|
pyLODE has been tested with all of the 30+ ontologies in `pylode/examples/ <pylode/examples/>`_ and we are trying to
|
|
64
64
|
ensure it captures all of their annotations. For each example, there is the original RDF file and the corresponding
|
|
65
|
-
output, in HTML & Markdown.
|
|
65
|
+
output, in HTML & Markdown. There are some examples of ADOC too.
|
|
66
66
|
|
|
67
67
|
For example, `Epimorphic's <https://www.epimorphics.com/>`__'s **Registry Ontology** is:
|
|
68
68
|
|
|
@@ -79,6 +79,9 @@ Another, the Australian Government's Records Interoperability Framework (AGRIF)
|
|
|
79
79
|
- see `the point-of-truth rendered online <https://linked.data.gov.au/def/agrif>`__
|
|
80
80
|
- **agrif.md** - Markdown output
|
|
81
81
|
- see this `rendered online by GitHub <https://github.com/RDFLib/pyLODE/blob/master/pylode/examples/agrif.md>`__
|
|
82
|
+
- **agrif.md** - ASCIIDOC output
|
|
83
|
+
- `resulting ADOC source <https://github.com/RDFLib/pyLODE/blob/master/pylode/examples/agrif.adoc>`__
|
|
84
|
+
- `rendered in HTML <https://github.com/RDFLib/pyLODE/blob/master/pylode/examples/agrif.adoc.html>`__
|
|
82
85
|
- **agrif.skos.html** - HTMl output, "vocpub" profile
|
|
83
86
|
- see this `rendered online by GitHack <https://raw.githack.com/RDFLib/pyLODE/master/pylode/examples/agrif.vocpub.html>`__
|
|
84
87
|
|
|
@@ -134,8 +137,7 @@ To use pyLODE within Python, try something like this:
|
|
|
134
137
|
html = pylode.MakeDocco(
|
|
135
138
|
input_data_file=input_file_path,
|
|
136
139
|
outputformat="html",
|
|
137
|
-
profile="
|
|
138
|
-
exclude_css=True
|
|
140
|
+
profile="ontdoc"
|
|
139
141
|
).document()
|
|
140
142
|
|
|
141
143
|
You will now have the HTML content within the variable ``html``.
|
|
@@ -153,9 +155,11 @@ pyLODE presents natively as a Python command-line utility,
|
|
|
153
155
|
* `pylode/bin/pylode.app <pylode/bin/pylode.app>`__ - MAC OS command line executable script
|
|
154
156
|
* `pylode/bin/pylode.exe <pylode/bin/pylode.exe>`__ - Windows command line executable
|
|
155
157
|
|
|
158
|
+
All use the same command line arguments.
|
|
159
|
+
|
|
156
160
|
Additionally, there is a `Falcon framework <https://falconframework.org/>`__ local HTTP server option.
|
|
157
161
|
|
|
158
|
-
|
|
162
|
+
Also, a web UI for pyLODE is available at `<https://pylode.surroundaustralia.com>`.
|
|
159
163
|
|
|
160
164
|
Command line arguments
|
|
161
165
|
----------------------
|
|
@@ -165,31 +169,54 @@ These are the command line arguments to run pyLODE as a BASH or Python script on
|
|
|
165
169
|
- The RDF ontology file you wish to generate HTML for Must be in either Turtle, RDF/XML, JSON-LD or N-Triples formats indicated by the file type extensions .rdf, .owl, .ttl, .n3, .nt, .json respectively
|
|
166
170
|
- ``-u`` or ``--url``, *required if* ``-i`` *not used*
|
|
167
171
|
- The RDF ontology you wish to generate HTML for, online. Must be an absolute URL that can be resolved to RDF, preferably via Content Negotiation.
|
|
168
|
-
- ``-c`` or ``--css``, *optional, default '
|
|
169
|
-
- Whether (true) or not (false) to
|
|
172
|
+
- ``-c`` or ``--css``, *optional, default 'true'*
|
|
173
|
+
- Whether (true) or not (false) to include CSS in an HTML output.
|
|
170
174
|
- ``-o`` or ``--outputfile``, *optional*
|
|
171
|
-
- A name you wish to assign to the output file. Will be postfixed with .html or .
|
|
175
|
+
- A name you wish to assign to the output file. Will be postfixed with .html, .md or .adoc. If not specified, the name of the input file or last segment of RDF URI will be used, + .html/.md/.adoc.
|
|
172
176
|
- ``-f`` or ``--outputformat``, *optional, default 'html'*
|
|
173
|
-
- The output format of the documentation. 'html' or '
|
|
174
|
-
- ``-p`` or ``--profile``, *optional, default '
|
|
175
|
-
- The profile (specification) for ontology documentation used.
|
|
177
|
+
- The output format of the documentation. 'html', 'md' or 'adoc' accepted.
|
|
178
|
+
- ``-p`` or ``--profile``, *optional, default 'ontdoc'*
|
|
179
|
+
- The profile (specification) for ontology documentation used. "ontdoc" (for OWL Ontologies), "vocpub" (for `Simple Knowledge Organization System (SKOS) <https://www.w3.org/TR/skos-reference/>`__) vocabularies or SKOS versions of OWL ontologies, "prof" for `Profiles Vocabularies <https://www.w3.org/TR/dx-prof/>`__ profiles. See ``-lp`` for all profiles supported.
|
|
176
180
|
- ``-lp`` or ``--listprofiles``, *optional, no arguments*
|
|
177
181
|
- Lists all the profiles (specifications) for ontology documentation supported by pyLODE
|
|
178
182
|
|
|
179
183
|
Example call
|
|
180
184
|
------------
|
|
181
|
-
This call to the BASH script in `pylode/bin/ <pylode/bin/>`__ will
|
|
182
|
-
|
|
183
|
-
save it with a basic CSS file into
|
|
184
|
-
`pylode/output\_files/ <pylode/output_files/>`__:
|
|
185
|
+
This basic call to the BASH script in `pylode/bin/ <pylode/bin/>`__ will
|
|
186
|
+
print to standard out an HTML document for an ontology called ``placenames.html``.
|
|
185
187
|
|
|
186
188
|
::
|
|
187
189
|
|
|
188
|
-
./pylode -i ../example/prof.ttl
|
|
190
|
+
./pylode -i ../example/prof.ttl
|
|
191
|
+
|
|
192
|
+
An output file could be specified by using `-o`, rather than printing to standard out.
|
|
189
193
|
|
|
190
194
|
Online Service
|
|
191
195
|
--------------
|
|
192
|
-
An online
|
|
196
|
+
An online version of pyLODE is now available at https://pylode.surroundaustralia.com/.
|
|
197
|
+
|
|
198
|
+
Docker
|
|
199
|
+
------
|
|
200
|
+
Install locally by first building the container
|
|
201
|
+
|
|
202
|
+
::
|
|
203
|
+
|
|
204
|
+
docker build -t pylode:latest --build-arg PYTHON_VERSION=3.8-slim .
|
|
205
|
+
|
|
206
|
+
Then run the container
|
|
207
|
+
|
|
208
|
+
::
|
|
209
|
+
|
|
210
|
+
docker run -it -d -p 8000:8000 -e GTAGID=${Google TagID} pylode
|
|
211
|
+
|
|
212
|
+
N.B. The Google TagID is NOT required unless Google Analytics is required.
|
|
213
|
+
It looks as follows `GTAGID=UA-168806395-1`.
|
|
214
|
+
|
|
215
|
+
You can now access the service on localhost
|
|
216
|
+
|
|
217
|
+
::
|
|
218
|
+
|
|
219
|
+
curl localhost:8000/lode?url=http://sweetontology.net/sweetAll.ttl
|
|
193
220
|
|
|
194
221
|
Local server - Falcon
|
|
195
222
|
---------------------
|
|
@@ -197,13 +224,14 @@ You can run pyLODE using your own, local, HTTP server like this:
|
|
|
197
224
|
|
|
198
225
|
::
|
|
199
226
|
|
|
200
|
-
|
|
227
|
+
gunicorn --chdir /path/to/pyLODE/pylode server:api
|
|
228
|
+
|
|
229
|
+
The server is then available at localhost:8000 and localhost:8000/pylode for the active endpoint. Note that the server must be fed a URL to an ontology to document supplied by a server capable of responding to Content Negotiation, i.e. it must supply RDF according to an HTTP `Accept` request for `text/turtle`, `application/rdf+xml` etc.
|
|
201
230
|
|
|
202
|
-
Then, in another terminal:
|
|
203
231
|
|
|
204
232
|
::
|
|
205
233
|
|
|
206
|
-
curl localhost:8000/
|
|
234
|
+
curl localhost:8000/pylode?url=http://sweetontology.net/sweetAll.ttl
|
|
207
235
|
|
|
208
236
|
Windows
|
|
209
237
|
-------
|
|
@@ -229,7 +257,7 @@ Once you have PyInstaller, use ``pyinstaller`` to generate the ``pyLODE.exe`` CL
|
|
|
229
257
|
|
|
230
258
|
This will output ``pylode.exe`` in the ``dist`` directory in ``pylode``. The .exe file in ``bin/`` is just the latest copy of this.
|
|
231
259
|
|
|
232
|
-
You can now run the pyLODE Command Line utility via ``pylode.exe``.
|
|
260
|
+
You can now run the pyLODE Command Line utility via ``pylode.exe``.
|
|
233
261
|
See above for the pyLODE command line util usage instructions.
|
|
234
262
|
|
|
235
263
|
Mac OS
|
|
@@ -242,6 +270,7 @@ Linux
|
|
|
242
270
|
-----
|
|
243
271
|
In ``pylode/bin/``, there is a shell script ``pylode.sh``. You can run this on the command line. It just pushes queries to the Python command line ``cli.py``.
|
|
244
272
|
|
|
273
|
+
|
|
245
274
|
What pyLODE understands
|
|
246
275
|
=======================
|
|
247
276
|
pyLODE understands Ontologies, Taxonomies & Profiles and handles them based on the *Ontology Document*, *Vocabulary Publication* and *PROF* profiles that it contains. These three profiles share understanding of basic annotation properties.
|
|
@@ -272,7 +301,7 @@ pyLODE understands the following ontology constructs:
|
|
|
272
301
|
- per ``rdfs:Class`` or ``owl:Class``
|
|
273
302
|
- *title* - ``rdfs:label`` or ``skos:prefLabel`` or ``dct:title``
|
|
274
303
|
- *description* - ``rdf:comment`` or ``skos:definition`` or ``dct:description`` as a string or using `Markdown <https://daringfireball.net/projects/markdown/>`__ or HTML
|
|
275
|
-
- *
|
|
304
|
+
- *scope note* - a ``skos:scopeNote`` string
|
|
276
305
|
- *example* - a ``skos:example`` string containing RDF
|
|
277
306
|
- *super classes* - by declaring a class to be ``owl:subClassOf`` something
|
|
278
307
|
- *sub classes* - pyLODE will work these out itself
|
|
@@ -283,7 +312,7 @@ pyLODE understands the following ontology constructs:
|
|
|
283
312
|
- *title* - ``rdfs:label`` or ``skos:prefLabel`` or ``dct:title``
|
|
284
313
|
- *description* - ``rdf:comment`` or ``skos:definition`` or ``dct:description``
|
|
285
314
|
- *usage note* - a ``skos:scopeNote`` string
|
|
286
|
-
- *example* - a ``skos:example`` string containing RDF
|
|
315
|
+
- *example* - a ``skos:example`` string containing RDF - this will be monospaced in outputs
|
|
287
316
|
- *super properties* - by declaring a class to be ``owl:subPropertyOf`` something
|
|
288
317
|
- *sub properties* - pyLODE will work these out itself
|
|
289
318
|
- *equivalent properties* - by declaring a class to be ``owl:equivalentProperty`` something
|
|
@@ -523,7 +552,7 @@ profiles include, see the profiles' definitions at:
|
|
|
523
552
|
**Token** **URI**
|
|
524
553
|
========= ==========================================
|
|
525
554
|
prof `<https://www.w3.org/TR/dx-prof/>`_
|
|
526
|
-
ontdoc `<https://w3id.org/profile/
|
|
555
|
+
ontdoc `<https://w3id.org/profile/ontdoc>`_
|
|
527
556
|
vocpub `<https://w3id.org/profile/vocpub>`_
|
|
528
557
|
========= ==========================================
|
|
529
558
|
|
|
@@ -659,7 +688,7 @@ and change/add development priorities.
|
|
|
659
688
|
Current Release
|
|
660
689
|
---------------
|
|
661
690
|
|
|
662
|
-
The current release, as of
|
|
691
|
+
The current release, as of April, 2021, is **2.9.0**.
|
|
663
692
|
|
|
664
693
|
Release Schedule
|
|
665
694
|
----------------
|
|
@@ -668,8 +697,15 @@ Release Schedule
|
|
|
668
697
|
:header: "Version", "Date", "Description"
|
|
669
698
|
:widths: 15, 10, 30
|
|
670
699
|
|
|
671
|
-
3.0,
|
|
672
|
-
**2.
|
|
700
|
+
3.0, *?*, "Will include pre-testing inputs with SHACL"
|
|
701
|
+
**2.9.1**, **28 Apr 2021**, "Support for ASCIIDOC format (OntDoc profile only)"
|
|
702
|
+
2.8.11, 28 Apr 2021, "Further changes for PyPI only"
|
|
703
|
+
2.8.10, 27 Apr 2021, "Further changes for PyPI only"
|
|
704
|
+
2.8.9, 27 Apr 2021, "PyPI enhancements only"
|
|
705
|
+
2.8.8, 27 Apr 2021, "Several small bugs fixed, auto-generation of version no. from Git tag"
|
|
706
|
+
2.8.6, 23 Feb 20201, "Fixing char encoding issues, updated examples, new test files style - per issue"
|
|
707
|
+
2.8.5, 5 Jan 20201, "Small enhancements to the Falcon server deployment option"
|
|
708
|
+
2.8.3, 3 July 2020, "Packaging bugfixes only"
|
|
673
709
|
2.7, 1 July 2020, "Much refactoring for new profile creation ease"
|
|
674
710
|
2.6, June 2020, "Supports PROF profiles as well as taxonomies & ontologies"
|
|
675
711
|
2.4, 27 May 2020, "Small improvements over 2.0"
|
|
@@ -689,6 +725,7 @@ Expected to handle
|
|
|
689
725
|
|
|
690
726
|
2.0 - current
|
|
691
727
|
~~~~~~~~~~~~~~
|
|
728
|
+
- includes 3rd-party-created profile: NMPF
|
|
692
729
|
- handles Named Individuals in OWL ontologies
|
|
693
730
|
- implements "owldoc" & "vocpub" documentation profiles for OWL, SKOS and OWL-as-SKOS results
|
|
694
731
|
- implements "prof" profile for documentation of `Profiles Vocabulary <https://www.w3.org/TR/dx-prof/>`__ profiles
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|