pylode 2.9.1__tar.gz → 2.10.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 (296) hide show
  1. {pyLODE-2.9.1/pyLODE.egg-info → pyLODE-2.10.3}/PKG-INFO +98 -19
  2. {pyLODE-2.9.1 → pyLODE-2.10.3}/README.rst +94 -16
  3. {pyLODE-2.9.1 → pyLODE-2.10.3/pyLODE.egg-info}/PKG-INFO +98 -19
  4. {pyLODE-2.9.1 → pyLODE-2.10.3}/pyLODE.egg-info/SOURCES.txt +15 -2
  5. pyLODE-2.10.3/pylode/__init__.py +17 -0
  6. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/_version.py +2 -2
  7. pyLODE-2.9.1/pylode/bin/pylode.exe → pyLODE-2.10.3/pylode/bin/pyLODE.exe +0 -0
  8. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/cli.py +32 -0
  9. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/common.py +20 -12
  10. pyLODE-2.10.3/pylode/examples/examples-ont/examples.adoc +426 -0
  11. pyLODE-2.10.3/pylode/examples/examples-ont/examples.adoc.html +1398 -0
  12. pyLODE-2.10.3/pylode/examples/examples-ont/examples.html +806 -0
  13. pyLODE-2.10.3/pylode/examples/examples-ont/examples.md +189 -0
  14. pyLODE-2.10.3/pylode/examples/examples-ont/examples.ttl +204 -0
  15. pyLODE-2.10.3/pylode/examples/examples-ont/fish-food.png +0 -0
  16. pyLODE-2.10.3/pylode/examples/examples-ont/toothy.png +0 -0
  17. pyLODE-2.10.3/pylode/examples/geo.adoc +1248 -0
  18. pyLODE-2.10.3/pylode/examples/geo.adoc.html +3830 -0
  19. pyLODE-2.10.3/pylode/examples/geo.html +2177 -0
  20. pyLODE-2.10.3/pylode/examples/geosparql-profile.html +559 -0
  21. pyLODE-2.10.3/pylode/examples/geosparql-profile.ttl +129 -0
  22. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/profiles/base.py +10 -2
  23. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/profiles/ontdoc.py +143 -31
  24. pyLODE-2.9.1/pylode/pylode-cli.spec → pyLODE-2.10.3/pylode/pyLODE-cli.spec +20 -11
  25. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/ontdoc/class.adoc +5 -3
  26. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/ontdoc/class.html +9 -6
  27. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/ontdoc/class.md +2 -2
  28. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/ontdoc/property.adoc +5 -4
  29. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/ontdoc/property.html +19 -5
  30. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/ontdoc/property.md +2 -2
  31. pyLODE-2.10.3/requirements-pyinstaller.txt +2 -0
  32. {pyLODE-2.9.1 → pyLODE-2.10.3}/requirements.dev.txt +0 -1
  33. {pyLODE-2.9.1 → pyLODE-2.10.3}/setup.py +2 -1
  34. {pyLODE-2.9.1 → pyLODE-2.10.3}/tests/agrif.html +901 -545
  35. pyLODE-2.10.3/tests/test_adoc.py +5 -0
  36. {pyLODE-2.9.1 → pyLODE-2.10.3}/tests/test_baseprofile.py +1 -1
  37. pyLODE-2.10.3/tests/test_class.py +43 -0
  38. {pyLODE-2.9.1 → pyLODE-2.10.3}/tests/test_issue_110.py +1 -0
  39. {pyLODE-2.9.1 → pyLODE-2.10.3}/tests/test_issue_110_output.html +57726 -57726
  40. pyLODE-2.9.1/pylode/__init__.py +0 -29
  41. pyLODE-2.9.1/pylode/examples/geo.html +0 -1949
  42. pyLODE-2.9.1/tests/test_class.py +0 -36
  43. {pyLODE-2.9.1 → pyLODE-2.10.3}/.gitignore +0 -0
  44. {pyLODE-2.9.1 → pyLODE-2.10.3}/Dockerfile +0 -0
  45. {pyLODE-2.9.1 → pyLODE-2.10.3}/LICENSE +0 -0
  46. {pyLODE-2.9.1 → pyLODE-2.10.3}/img/favicon-16x16.png +0 -0
  47. {pyLODE-2.9.1 → pyLODE-2.10.3}/img/favicon-32x32.png +0 -0
  48. {pyLODE-2.9.1 → pyLODE-2.10.3}/img/pyLODE-250.png +0 -0
  49. {pyLODE-2.9.1 → pyLODE-2.10.3}/img/pyLODE.png +0 -0
  50. {pyLODE-2.9.1 → pyLODE-2.10.3}/pyLODE.egg-info/dependency_links.txt +0 -0
  51. {pyLODE-2.9.1 → pyLODE-2.10.3}/pyLODE.egg-info/entry_points.txt +0 -0
  52. {pyLODE-2.9.1 → pyLODE-2.10.3}/pyLODE.egg-info/requires.txt +0 -0
  53. {pyLODE-2.9.1 → pyLODE-2.10.3}/pyLODE.egg-info/top_level.txt +0 -0
  54. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/bin/pylode.app +0 -0
  55. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/bin/pylode.sh +0 -0
  56. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/curies.py +0 -0
  57. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/_make_examples.py +0 -0
  58. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/agift.ttl +0 -0
  59. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/agift.vocpub.html +0 -0
  60. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/agift.vocpub.md +0 -0
  61. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/agrif-notitle.html +0 -0
  62. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/agrif-notitle.md +0 -0
  63. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/agrif-notitle.ttl +0 -0
  64. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/agrif.adoc +0 -0
  65. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/agrif.adoc.html +0 -0
  66. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/agrif.html +0 -0
  67. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/agrif.md +0 -0
  68. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/agrif.nmpf.html +0 -0
  69. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/agrif.ttl +0 -0
  70. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/agrif.vocpub.html +0 -0
  71. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/agrif.vocpub.md +0 -0
  72. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/alternates.html +0 -0
  73. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/alternates.md +0 -0
  74. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/alternates.ttl +0 -0
  75. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/asgs.html +0 -0
  76. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/asgs.md +0 -0
  77. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/asgs.ttl +0 -0
  78. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/asgs.vocpub.html +0 -0
  79. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/asgs.vocpub.md +0 -0
  80. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/bfo.html +0 -0
  81. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/bfo.md +0 -0
  82. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/bfo.ttl +0 -0
  83. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/brick.html +0 -0
  84. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/brick.md +0 -0
  85. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/brick.ttl +0 -0
  86. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/collection-item-format.md +0 -0
  87. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/collection-item-format.ttl +0 -0
  88. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/collection-item-format.vocpub.html +0 -0
  89. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/collection-item-format.vocpub.md +0 -0
  90. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/crs.html +0 -0
  91. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/crs.md +0 -0
  92. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/crs.ttl +0 -0
  93. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/data-access-rights.ttl +0 -0
  94. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/data-access-rights.vocpub.html +0 -0
  95. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/data-access-rights.vocpub.md +0 -0
  96. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/datatype.html +0 -0
  97. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/datatype.md +0 -0
  98. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/datatype.ttl +0 -0
  99. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/dcat.ttl.broken +0 -0
  100. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/decprov.html +0 -0
  101. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/decprov.md +0 -0
  102. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/decprov.svg +0 -0
  103. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/decprov.ttl +0 -0
  104. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/doap.html +0 -0
  105. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/doap.md +0 -0
  106. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/doap.ttl +0 -0
  107. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/earth-science-data-category.ttl +0 -0
  108. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/earth-science-data-category.vocpub.html +0 -0
  109. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/earth-science-data-category.vocpub.md +0 -0
  110. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/ebg.html +0 -0
  111. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/ebg.ttl +0 -0
  112. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/foaf.html +0 -0
  113. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/foaf.md +0 -0
  114. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/foaf.ttl +0 -0
  115. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/ga-skos.prof.html +0 -0
  116. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/ga-skos.prof.md +0 -0
  117. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/ga-skos.ttl +0 -0
  118. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/geo.md +0 -0
  119. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/geo.profile.prof.html +0 -0
  120. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/geo.profile.prof.md +0 -0
  121. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/geo.profile.ttl +0 -0
  122. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/geo.ttl +0 -0
  123. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/geoadminfeatures.html +0 -0
  124. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/geoadminfeatures.md +0 -0
  125. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/geoadminfeatures.ttl +0 -0
  126. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/geofabric.html +0 -0
  127. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/geofabric.md +0 -0
  128. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/geofabric.ttl +0 -0
  129. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/geox.html +0 -0
  130. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/geox.md +0 -0
  131. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/geox.ttl +0 -0
  132. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/gnaf.html +0 -0
  133. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/gnaf.md +0 -0
  134. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/gnaf.ttl +0 -0
  135. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/iso19115-1-RoleCodes.ttl +0 -0
  136. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/iso19115-1-RoleCodes.vocpub.html +0 -0
  137. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/iso19115-1-RoleCodes.vocpub.md +0 -0
  138. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/iso19160/codelist.ttl +0 -0
  139. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/iso19160/images/address.png +0 -0
  140. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/iso19160/images/address_alias.png +0 -0
  141. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/iso19160/images/address_component.png +0 -0
  142. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/iso19160/images/address_position.png +0 -0
  143. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/iso19160/images/address_provenance.png +0 -0
  144. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/iso19160/images/addressable_object.png +0 -0
  145. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/iso19160/images/addressed_period.png +0 -0
  146. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/iso19160/images/diagrams.pptx +0 -0
  147. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/iso19160/images/lifespan.png +0 -0
  148. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/iso19160/images/major_classes.png +0 -0
  149. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/iso19160/images/reference_object.png +0 -0
  150. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/iso19160/iso19160-1.html +0 -0
  151. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/iso19160/iso19160-1.ttl +0 -0
  152. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/iso19160/style.css +0 -0
  153. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/iso19160-1-nz-profile.html +0 -0
  154. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/iso19160-1-nz-profile.md +0 -0
  155. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/iso19160-1-nz-profile.ttl +0 -0
  156. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/iso21972.html +0 -0
  157. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/iso21972.md +0 -0
  158. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/iso21972.ttl +0 -0
  159. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/loci.html +0 -0
  160. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/loci.md +0 -0
  161. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/loci.ttl +0 -0
  162. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/ogc/fonts/Lato-Regular.eot +0 -0
  163. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/ogc/fonts/Lato-Regular.ttf +0 -0
  164. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/ogc/fonts/Lato-Regular.woff +0 -0
  165. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/ogc/fonts/Lato-Regular.woff2 +0 -0
  166. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/ogc/hyf.3.html +0 -0
  167. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/ogc/hyf.4.html +0 -0
  168. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/ogc/hyf.5.html +0 -0
  169. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/ogc/hyf.html +0 -0
  170. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/ogc/hyf.skos.html +0 -0
  171. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/ogc/hyf.ttl +0 -0
  172. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/om.html +0 -0
  173. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/om.md +0 -0
  174. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/om.ttl +0 -0
  175. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/owl.html +0 -0
  176. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/owl.md +0 -0
  177. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/owl.ttl +0 -0
  178. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/placenames.html +0 -0
  179. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/placenames.md +0 -0
  180. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/placenames.ttl +0 -0
  181. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/plot.html +0 -0
  182. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/plot.md +0 -0
  183. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/plot.ttl +0 -0
  184. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/project.adoc +0 -0
  185. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/project.adoc.html +0 -0
  186. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/project.html +0 -0
  187. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/project.md +0 -0
  188. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/project.ttl +0 -0
  189. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/ra.html +0 -0
  190. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/ra.md +0 -0
  191. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/ra.ttl +0 -0
  192. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/rdf.html +0 -0
  193. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/rdf.md +0 -0
  194. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/rdf.ttl +0 -0
  195. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/rdfs.html +0 -0
  196. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/rdfs.md +0 -0
  197. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/rdfs.ttl +0 -0
  198. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/reg.html +0 -0
  199. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/reg.md +0 -0
  200. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/reg.png +0 -0
  201. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/reg.ttl +0 -0
  202. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/skos-thes.html +0 -0
  203. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/skos-thes.ttl +0 -0
  204. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/sosa.html +0 -0
  205. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/sosa.md +0 -0
  206. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/sosa.ttl +0 -0
  207. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/ssn.html +0 -0
  208. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/ssn.md +0 -0
  209. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/ssn.ttl +0 -0
  210. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/void/changelog.txt +0 -0
  211. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/void/figs.html +0 -0
  212. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/void/properties.png +0 -0
  213. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/void/style.css +0 -0
  214. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/void/void.html +0 -0
  215. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/void/void.md +0 -0
  216. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/examples/void/void.ttl +0 -0
  217. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/profiles/__init__.py +0 -0
  218. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/profiles/nmpf.py +0 -0
  219. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/profiles/prof.py +0 -0
  220. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/profiles/profile.py +0 -0
  221. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/profiles/vocpub.py +0 -0
  222. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/server.py +0 -0
  223. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/style/pylode.css +0 -0
  224. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/agent.adoc +0 -0
  225. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/agent.html +0 -0
  226. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/agent.md +0 -0
  227. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/namespaces.adoc +0 -0
  228. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/namespaces.html +0 -0
  229. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/namespaces.md +0 -0
  230. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/nmpf/class.html +0 -0
  231. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/nmpf/class.md +0 -0
  232. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/nmpf/classes.html +0 -0
  233. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/nmpf/classes.md +0 -0
  234. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/nmpf/document.html +0 -0
  235. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/nmpf/document.md +0 -0
  236. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/nmpf/metadata.html +0 -0
  237. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/nmpf/metadata.md +0 -0
  238. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/nmpf/named_individual.html +0 -0
  239. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/nmpf/named_individual.md +0 -0
  240. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/nmpf/named_individuals.html +0 -0
  241. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/nmpf/named_individuals.md +0 -0
  242. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/nmpf/properties.html +0 -0
  243. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/nmpf/properties.md +0 -0
  244. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/nmpf/property.html +0 -0
  245. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/nmpf/property.md +0 -0
  246. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/ontdoc/classes.adoc +0 -0
  247. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/ontdoc/classes.html +0 -0
  248. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/ontdoc/classes.md +0 -0
  249. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/ontdoc/document.adoc +0 -0
  250. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/ontdoc/document.html +0 -0
  251. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/ontdoc/document.md +0 -0
  252. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/ontdoc/metadata.adoc +0 -0
  253. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/ontdoc/metadata.html +0 -0
  254. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/ontdoc/metadata.md +0 -0
  255. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/ontdoc/named_individual.adoc +0 -0
  256. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/ontdoc/named_individual.html +0 -0
  257. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/ontdoc/named_individual.md +0 -0
  258. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/ontdoc/named_individuals.adoc +0 -0
  259. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/ontdoc/named_individuals.html +0 -0
  260. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/ontdoc/named_individuals.md +0 -0
  261. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/ontdoc/properties.adoc +0 -0
  262. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/ontdoc/properties.html +0 -0
  263. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/ontdoc/properties.md +0 -0
  264. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/orcid.adoc +0 -0
  265. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/orcid.html +0 -0
  266. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/orcid.md +0 -0
  267. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/prof/prof.html +0 -0
  268. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/prof/prof.md +0 -0
  269. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/prof/profile.html +0 -0
  270. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/prof/profile.md +0 -0
  271. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/prof/resource_descriptor.html +0 -0
  272. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/prof/resource_descriptor.md +0 -0
  273. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/vocpub/collection.html +0 -0
  274. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/vocpub/collection.md +0 -0
  275. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/vocpub/collections.html +0 -0
  276. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/vocpub/collections.md +0 -0
  277. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/vocpub/concept.html +0 -0
  278. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/vocpub/concept.md +0 -0
  279. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/vocpub/concept_hierarchy.html +0 -0
  280. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/vocpub/concept_scheme.html +0 -0
  281. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/vocpub/concept_scheme.md +0 -0
  282. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/vocpub/concepts.html +0 -0
  283. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/vocpub/concepts.md +0 -0
  284. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/vocpub/taxonomy.html +0 -0
  285. {pyLODE-2.9.1 → pyLODE-2.10.3}/pylode/templates/vocpub/taxonomy.md +0 -0
  286. {pyLODE-2.9.1 → pyLODE-2.10.3}/requirements.server.txt +0 -0
  287. {pyLODE-2.9.1 → pyLODE-2.10.3}/requirements.txt +0 -0
  288. {pyLODE-2.9.1 → pyLODE-2.10.3}/setup.cfg +0 -0
  289. {pyLODE-2.9.1 → pyLODE-2.10.3}/tests/agrif.ttl +0 -0
  290. {pyLODE-2.9.1 → pyLODE-2.10.3}/tests/decprov.ttl +0 -0
  291. {pyLODE-2.9.1 → pyLODE-2.10.3}/tests/simpleont.ttl +0 -0
  292. {pyLODE-2.9.1 → pyLODE-2.10.3}/tests/test_issue_110_input.ttl +0 -0
  293. {pyLODE-2.9.1 → pyLODE-2.10.3}/tests/test_metadata.py +0 -0
  294. {pyLODE-2.9.1 → pyLODE-2.10.3}/tests/test_ontdoc.py +0 -0
  295. {pyLODE-2.9.1 → pyLODE-2.10.3}/tests/test_property.py +0 -0
  296. {pyLODE-2.9.1 → pyLODE-2.10.3}/upload-to-PyPI.txt +0 -0
@@ -1,15 +1,15 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyLODE
3
- Version: 2.9.1
3
+ Version: 2.10.3
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.0.tar.gz
9
+ Download-URL: https://github.com/rdflib/pyLODE/archive/v2.10.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
- Description: .. image:: img/pyLODE-250.png
12
+ Description: .. image:: https://rawcdn.githack.com/RDFLib/pyLODE/b1ff1b1e19262cdc21ee28c7362b1690ca18e30b/img/pyLODE-250.png
13
13
 
14
14
  .. image:: https://badge.fury.io/py/pyLODE.svg
15
15
  :target: https://badge.fury.io/py/pyLODE
@@ -292,11 +292,11 @@ Description: .. image:: img/pyLODE-250.png
292
292
 
293
293
  - **ontology/taxonomy/profile metadata**
294
294
  - *imports* - ``owl:imports``
295
- - *title* - ``rdfs:label`` or ``skos:prefLabel`` or ``dct:title`` or ``dc:title``
296
- - *description* - ``rdfs:comment`` or ``skos:definition`` or ``dct:description`` or ``dc:description``
297
- - Markdown is supported
295
+ - *title* - ``rdfs:label``, ``skos:prefLabel``, ``dct:title`` or ``dc:title``
296
+ - *description* - ``rdfs:comment``, ``skos:definition``, ``dct:description`` or ``dc:description``
297
+ - inline HTML & Markdown are supported
298
298
  - *historyNote* - ``skos:historyNote``
299
- - Markdown is supported
299
+ - inline HTML & Markdown are supported
300
300
  - *version URI* - ``owl:versionIRI`` as a URI
301
301
  - *version info* - ``owl:versionInfo`` as a string
302
302
  - *preferred namespace prefix* - ``vann:preferredNamespacePrefix`` as a token
@@ -306,24 +306,29 @@ Description: .. image:: img/pyLODE-250.png
306
306
  - see the `pylode/examples/ <pylode/examples/>`__ directory for examples!
307
307
  - **dates**: *created*, *modified*, *issued* - ``dct:created`` etc., all as ``xsd:date`` or ``xsd:dateTime`` datatype properties
308
308
  - **rights**: *license* - ``dct:license`` as a URI & *rights* - ``dct:rights`` as a string
309
- - *code respository* - ``schema:codeRepository`` as a URI
310
- - *source* - ``dcterms:source`` as a URI or text
309
+ - *code respository* - ``schema:codeRepository`` as a literal of type ``xsd:anyURI``
310
+ - *source* - ``dcterms:source`` as a literal of type ``xsd:anyURI`` or text
311
311
  - **ontology classes**
312
312
  - per ``rdfs:Class`` or ``owl:Class``
313
313
  - *title* - ``rdfs:label`` or ``skos:prefLabel`` or ``dct:title``
314
- - *description* - ``rdf:comment`` or ``skos:definition`` or ``dct:description`` as a string or using `Markdown <https://daringfireball.net/projects/markdown/>`__ or HTML
315
- - *scope note* - a ``skos:scopeNote`` string
316
- - *example* - a ``skos:example`` string containing RDF
314
+ - *description* - ``rdf:comment``, ``skos:definition``, ``dct:description`` as a string or using inline HTML or `Markdown <https://daringfireball.net/projects/markdown/>`__
315
+ - *scope note* - a ``skos:scopeNote`` as a literal
316
+ - inline HTML & Markdown are supported
317
+ - *example* - a ``skos:example``
318
+ - see *Example Handling* below
317
319
  - *super classes* - by declaring a class to be ``owl:subClassOf`` something
318
320
  - *sub classes* - pyLODE will work these out itself
319
321
  - *restrictions* - by declaring a class to be ``owl:subClassOf`` of an ``owl:Restriction`` with any of the normal cardinality or property existence etc. restrictions
320
322
  - *in domain/range of* - pyLODE will auto-calculate these
321
323
  - **ontology properties**
322
324
  - per ``owl:ObjectProperty``, ``owl:DatatypeProperty`` or ``owl:AnnotationProperty``
323
- - *title* - ``rdfs:label`` or ``skos:prefLabel`` or ``dct:title``
324
- - *description* - ``rdf:comment`` or ``skos:definition`` or ``dct:description``
325
- - *usage note* - a ``skos:scopeNote`` string
326
- - *example* - a ``skos:example`` string containing RDF - this will be monospaced in outputs
325
+ - *title* - ``rdfs:label`` or ``skos:prefLabel`` or ``dct:title`` string literal
326
+ - *description* - ``rdf:comment``, ``skos:definition``, ``dct:description`` string literal
327
+ - inline HTML & Markdown are supported
328
+ - *scope note* - a ``skos:scopeNote`` string literal
329
+ - inline HTML & Markdown are supported
330
+ - *example* - a ``skos:example``
331
+ - see *Example Handling* below
327
332
  - *super properties* - by declaring a class to be ``owl:subPropertyOf`` something
328
333
  - *sub properties* - pyLODE will work these out itself
329
334
  - *equivalent properties* - by declaring a class to be ``owl:equivalentProperty`` something
@@ -336,6 +341,76 @@ Description: .. image:: img/pyLODE-250.png
336
341
  - **named individuals**
337
342
  - as per class but also ``owl:sameAs``
338
343
 
344
+ Example Handling
345
+ ~~~~~~~~~~~~~~~~
346
+ pyLODE can handle many forms of examples for Classes & Properties and can handle multiple examples per class/property. In all cases, the example value is indicated with a ``skos:example`` property like this:
347
+
348
+ ::
349
+
350
+ <x>
351
+ a owl:Class ;
352
+ skos:example {Literal, Blank Node or URI}
353
+ .
354
+
355
+ **Simple Literals**
356
+
357
+ The most basic form is an example that is a literal with no format type indicated. This will be printed out in monospaced text, e.g. the Class ``Fish`` in the `Examples Ontology <https://raw.githack.com/RDFLib/pyLODE/master/pylode/examples/examples-ont/examples.html>`_ has a plain Turtle example like this:
358
+
359
+ ::
360
+
361
+ <x> a eggs:Fish ;
362
+ skos:prefLabel "Fish X"@en ;
363
+ eggs:livesInFreshWater true ;
364
+ ...
365
+ .
366
+
367
+ If you indicate one of the RDF built-in formats (``rdf:HTML``, ``rdf:XMLLiteral`` or ``rdf:JSON``), it will be interpreted in the markup form specified, which means, in practice, that HTML will be rendered where as XML or JSON will be monospaced. The Examples Ontology has this HTML example for the property ``has scale colour``:
368
+
369
+ ----
370
+
371
+ **scale colour:**
372
+
373
+ * blue
374
+ * orange
375
+ * white
376
+
377
+ ----
378
+
379
+ You can use Markdown in example literals too, but to do so, you must set the format to ``text/markdown`` so see the *Resource Descriptor* method below.
380
+
381
+
382
+ **URIs**
383
+
384
+ If you put a URI in the example field like this: ``<x> skos:example <...> ;`` or like this ``<x> skos:example "..."^^xsd:anyURI ;`` then pyLODE will render it as a clickable hyperlink in HTML, Markdown or ASCIIDOC, as per your chose output format.
385
+
386
+ **Images**
387
+
388
+ You can use images in the example field. To do so, either use a URI to an image on the web or a relative URI to a local image file. pyLODE will render either form as an inline image. See the `Fish Food class example <https://raw.githack.com/RDFLib/pyLODE/master/pylode/examples/examples-ont/examples.html#FishFood>`_ that looks like this:
389
+
390
+ .. image:: examples/examples-ont/fish-food.png
391
+
392
+ **"Resource Descriptor" Examples**
393
+
394
+ To do more you can use a `Profiles Vocabulary (PROF) <https://w3c.github.io/dx-prof/prof/>`__ ``ResourceDescriptor`` to define multiple properties for an example resource. This involves defining a ``ResourceDescriptor`` either as a Blank Node or a URI node like this, the `Examples Ont 'eats' property <https://raw.githack.com/RDFLib/pyLODE/master/pylode/examples/examples-ont/examples.html#FishFood>`_:
395
+
396
+ ::
397
+
398
+ :eats skos:example :eats-example .
399
+
400
+ :eats-example
401
+ a prof:ResourceDescriptor ;
402
+ dcterms:format "text/turtle" ;
403
+ dcterms:conformsTo <https://example.com> ;
404
+ prof:hasArtifact """<x> a :Creature ;
405
+ :eats <y> ;
406
+ .
407
+ <y> a :Food .""" ;
408
+ .
409
+
410
+ Here the ``ResourceDescriptor`` says that this example is in the ``text/turtle`` format, has an inline artifact (the actual example text) and conforms to something, in this case the profile defined by ``<https://example.com>``.
411
+
412
+ You can use this ``ResourceDescriptor`` method to create multiple examples for a class or property that conform to different things (perhaps profiles of your ontology).
413
+
339
414
  Agents
340
415
  ------
341
416
  Agents, individual persons or organisations, should be associated with ontologies/taxonomies/profiles to indicate *authors*, *creators*, *publishers* etc. There are 2 ways to do this that pyLODE understands: datatype & object type.
@@ -699,7 +774,7 @@ Description: .. image:: img/pyLODE-250.png
699
774
  Current Release
700
775
  ---------------
701
776
 
702
- The current release, as of April, 2021, is **2.9.0**.
777
+ The current release, as of May, 2021, is **2.10.0**.
703
778
 
704
779
  Release Schedule
705
780
  ----------------
@@ -709,7 +784,8 @@ Description: .. image:: img/pyLODE-250.png
709
784
  :widths: 15, 10, 30
710
785
 
711
786
  3.0, *?*, "Will include pre-testing inputs with SHACL"
712
- **2.9.1**, **28 Apr 2021**, "Support for ASCIIDOC format (OntDoc profile only)"
787
+ **2.10.0**, 24 May 2021, "Update Windows EXE build process, simplified versioning"
788
+ 2.9.1, 28 Apr 2021, "Support for ASCIIDOC format (OntDoc profile only)"
713
789
  2.8.11, 28 Apr 2021, "Further changes for PyPI only"
714
790
  2.8.10, 27 Apr 2021, "Further changes for PyPI only"
715
791
  2.8.9, 27 Apr 2021, "PyPI enhancements only"
@@ -736,6 +812,8 @@ Description: .. image:: img/pyLODE-250.png
736
812
 
737
813
  2.0 - current
738
814
  ~~~~~~~~~~~~~~
815
+ - handles complex Examples (``skos:example``)
816
+ - can export to ASCIIDOC format
739
817
  - includes 3rd-party-created profile: NMPF
740
818
  - handles Named Individuals in OWL ontologies
741
819
  - implements "owldoc" & "vocpub" documentation profiles for OWL, SKOS and OWL-as-SKOS results
@@ -788,9 +866,10 @@ Classifier: Intended Audience :: Developers
788
866
  Classifier: Natural Language :: English
789
867
  Classifier: Programming Language :: Python :: 3
790
868
  Classifier: Programming Language :: Python :: 3 :: Only
791
- Classifier: Programming Language :: Python :: 3.5
792
869
  Classifier: Programming Language :: Python :: 3.6
793
870
  Classifier: Programming Language :: Python :: 3.7
871
+ Classifier: Programming Language :: Python :: 3.8
872
+ Classifier: Programming Language :: Python :: 3.9
794
873
  Classifier: Programming Language :: Python :: Implementation :: CPython
795
874
  Classifier: Programming Language :: Python :: Implementation :: PyPy
796
875
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
@@ -1,4 +1,4 @@
1
- .. image:: img/pyLODE-250.png
1
+ .. image:: https://rawcdn.githack.com/RDFLib/pyLODE/b1ff1b1e19262cdc21ee28c7362b1690ca18e30b/img/pyLODE-250.png
2
2
 
3
3
  .. image:: https://badge.fury.io/py/pyLODE.svg
4
4
  :target: https://badge.fury.io/py/pyLODE
@@ -281,11 +281,11 @@ pyLODE understands the following ontology constructs:
281
281
 
282
282
  - **ontology/taxonomy/profile metadata**
283
283
  - *imports* - ``owl:imports``
284
- - *title* - ``rdfs:label`` or ``skos:prefLabel`` or ``dct:title`` or ``dc:title``
285
- - *description* - ``rdfs:comment`` or ``skos:definition`` or ``dct:description`` or ``dc:description``
286
- - Markdown is supported
284
+ - *title* - ``rdfs:label``, ``skos:prefLabel``, ``dct:title`` or ``dc:title``
285
+ - *description* - ``rdfs:comment``, ``skos:definition``, ``dct:description`` or ``dc:description``
286
+ - inline HTML & Markdown are supported
287
287
  - *historyNote* - ``skos:historyNote``
288
- - Markdown is supported
288
+ - inline HTML & Markdown are supported
289
289
  - *version URI* - ``owl:versionIRI`` as a URI
290
290
  - *version info* - ``owl:versionInfo`` as a string
291
291
  - *preferred namespace prefix* - ``vann:preferredNamespacePrefix`` as a token
@@ -295,24 +295,29 @@ pyLODE understands the following ontology constructs:
295
295
  - see the `pylode/examples/ <pylode/examples/>`__ directory for examples!
296
296
  - **dates**: *created*, *modified*, *issued* - ``dct:created`` etc., all as ``xsd:date`` or ``xsd:dateTime`` datatype properties
297
297
  - **rights**: *license* - ``dct:license`` as a URI & *rights* - ``dct:rights`` as a string
298
- - *code respository* - ``schema:codeRepository`` as a URI
299
- - *source* - ``dcterms:source`` as a URI or text
298
+ - *code respository* - ``schema:codeRepository`` as a literal of type ``xsd:anyURI``
299
+ - *source* - ``dcterms:source`` as a literal of type ``xsd:anyURI`` or text
300
300
  - **ontology classes**
301
301
  - per ``rdfs:Class`` or ``owl:Class``
302
302
  - *title* - ``rdfs:label`` or ``skos:prefLabel`` or ``dct:title``
303
- - *description* - ``rdf:comment`` or ``skos:definition`` or ``dct:description`` as a string or using `Markdown <https://daringfireball.net/projects/markdown/>`__ or HTML
304
- - *scope note* - a ``skos:scopeNote`` string
305
- - *example* - a ``skos:example`` string containing RDF
303
+ - *description* - ``rdf:comment``, ``skos:definition``, ``dct:description`` as a string or using inline HTML or `Markdown <https://daringfireball.net/projects/markdown/>`__
304
+ - *scope note* - a ``skos:scopeNote`` as a literal
305
+ - inline HTML & Markdown are supported
306
+ - *example* - a ``skos:example``
307
+ - see *Example Handling* below
306
308
  - *super classes* - by declaring a class to be ``owl:subClassOf`` something
307
309
  - *sub classes* - pyLODE will work these out itself
308
310
  - *restrictions* - by declaring a class to be ``owl:subClassOf`` of an ``owl:Restriction`` with any of the normal cardinality or property existence etc. restrictions
309
311
  - *in domain/range of* - pyLODE will auto-calculate these
310
312
  - **ontology properties**
311
313
  - per ``owl:ObjectProperty``, ``owl:DatatypeProperty`` or ``owl:AnnotationProperty``
312
- - *title* - ``rdfs:label`` or ``skos:prefLabel`` or ``dct:title``
313
- - *description* - ``rdf:comment`` or ``skos:definition`` or ``dct:description``
314
- - *usage note* - a ``skos:scopeNote`` string
315
- - *example* - a ``skos:example`` string containing RDF - this will be monospaced in outputs
314
+ - *title* - ``rdfs:label`` or ``skos:prefLabel`` or ``dct:title`` string literal
315
+ - *description* - ``rdf:comment``, ``skos:definition``, ``dct:description`` string literal
316
+ - inline HTML & Markdown are supported
317
+ - *scope note* - a ``skos:scopeNote`` string literal
318
+ - inline HTML & Markdown are supported
319
+ - *example* - a ``skos:example``
320
+ - see *Example Handling* below
316
321
  - *super properties* - by declaring a class to be ``owl:subPropertyOf`` something
317
322
  - *sub properties* - pyLODE will work these out itself
318
323
  - *equivalent properties* - by declaring a class to be ``owl:equivalentProperty`` something
@@ -325,6 +330,76 @@ pyLODE understands the following ontology constructs:
325
330
  - **named individuals**
326
331
  - as per class but also ``owl:sameAs``
327
332
 
333
+ Example Handling
334
+ ~~~~~~~~~~~~~~~~
335
+ pyLODE can handle many forms of examples for Classes & Properties and can handle multiple examples per class/property. In all cases, the example value is indicated with a ``skos:example`` property like this:
336
+
337
+ ::
338
+
339
+ <x>
340
+ a owl:Class ;
341
+ skos:example {Literal, Blank Node or URI}
342
+ .
343
+
344
+ **Simple Literals**
345
+
346
+ The most basic form is an example that is a literal with no format type indicated. This will be printed out in monospaced text, e.g. the Class ``Fish`` in the `Examples Ontology <https://raw.githack.com/RDFLib/pyLODE/master/pylode/examples/examples-ont/examples.html>`_ has a plain Turtle example like this:
347
+
348
+ ::
349
+
350
+ <x> a eggs:Fish ;
351
+ skos:prefLabel "Fish X"@en ;
352
+ eggs:livesInFreshWater true ;
353
+ ...
354
+ .
355
+
356
+ If you indicate one of the RDF built-in formats (``rdf:HTML``, ``rdf:XMLLiteral`` or ``rdf:JSON``), it will be interpreted in the markup form specified, which means, in practice, that HTML will be rendered where as XML or JSON will be monospaced. The Examples Ontology has this HTML example for the property ``has scale colour``:
357
+
358
+ ----
359
+
360
+ **scale colour:**
361
+
362
+ * blue
363
+ * orange
364
+ * white
365
+
366
+ ----
367
+
368
+ You can use Markdown in example literals too, but to do so, you must set the format to ``text/markdown`` so see the *Resource Descriptor* method below.
369
+
370
+
371
+ **URIs**
372
+
373
+ If you put a URI in the example field like this: ``<x> skos:example <...> ;`` or like this ``<x> skos:example "..."^^xsd:anyURI ;`` then pyLODE will render it as a clickable hyperlink in HTML, Markdown or ASCIIDOC, as per your chose output format.
374
+
375
+ **Images**
376
+
377
+ You can use images in the example field. To do so, either use a URI to an image on the web or a relative URI to a local image file. pyLODE will render either form as an inline image. See the `Fish Food class example <https://raw.githack.com/RDFLib/pyLODE/master/pylode/examples/examples-ont/examples.html#FishFood>`_ that looks like this:
378
+
379
+ .. image:: examples/examples-ont/fish-food.png
380
+
381
+ **"Resource Descriptor" Examples**
382
+
383
+ To do more you can use a `Profiles Vocabulary (PROF) <https://w3c.github.io/dx-prof/prof/>`__ ``ResourceDescriptor`` to define multiple properties for an example resource. This involves defining a ``ResourceDescriptor`` either as a Blank Node or a URI node like this, the `Examples Ont 'eats' property <https://raw.githack.com/RDFLib/pyLODE/master/pylode/examples/examples-ont/examples.html#FishFood>`_:
384
+
385
+ ::
386
+
387
+ :eats skos:example :eats-example .
388
+
389
+ :eats-example
390
+ a prof:ResourceDescriptor ;
391
+ dcterms:format "text/turtle" ;
392
+ dcterms:conformsTo <https://example.com> ;
393
+ prof:hasArtifact """<x> a :Creature ;
394
+ :eats <y> ;
395
+ .
396
+ <y> a :Food .""" ;
397
+ .
398
+
399
+ Here the ``ResourceDescriptor`` says that this example is in the ``text/turtle`` format, has an inline artifact (the actual example text) and conforms to something, in this case the profile defined by ``<https://example.com>``.
400
+
401
+ You can use this ``ResourceDescriptor`` method to create multiple examples for a class or property that conform to different things (perhaps profiles of your ontology).
402
+
328
403
  Agents
329
404
  ------
330
405
  Agents, individual persons or organisations, should be associated with ontologies/taxonomies/profiles to indicate *authors*, *creators*, *publishers* etc. There are 2 ways to do this that pyLODE understands: datatype & object type.
@@ -688,7 +763,7 @@ and change/add development priorities.
688
763
  Current Release
689
764
  ---------------
690
765
 
691
- The current release, as of April, 2021, is **2.9.0**.
766
+ The current release, as of May, 2021, is **2.10.0**.
692
767
 
693
768
  Release Schedule
694
769
  ----------------
@@ -698,7 +773,8 @@ Release Schedule
698
773
  :widths: 15, 10, 30
699
774
 
700
775
  3.0, *?*, "Will include pre-testing inputs with SHACL"
701
- **2.9.1**, **28 Apr 2021**, "Support for ASCIIDOC format (OntDoc profile only)"
776
+ **2.10.0**, 24 May 2021, "Update Windows EXE build process, simplified versioning"
777
+ 2.9.1, 28 Apr 2021, "Support for ASCIIDOC format (OntDoc profile only)"
702
778
  2.8.11, 28 Apr 2021, "Further changes for PyPI only"
703
779
  2.8.10, 27 Apr 2021, "Further changes for PyPI only"
704
780
  2.8.9, 27 Apr 2021, "PyPI enhancements only"
@@ -725,6 +801,8 @@ Expected to handle
725
801
 
726
802
  2.0 - current
727
803
  ~~~~~~~~~~~~~~
804
+ - handles complex Examples (``skos:example``)
805
+ - can export to ASCIIDOC format
728
806
  - includes 3rd-party-created profile: NMPF
729
807
  - handles Named Individuals in OWL ontologies
730
808
  - implements "owldoc" & "vocpub" documentation profiles for OWL, SKOS and OWL-as-SKOS results
@@ -1,15 +1,15 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyLODE
3
- Version: 2.9.1
3
+ Version: 2.10.3
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.0.tar.gz
9
+ Download-URL: https://github.com/rdflib/pyLODE/archive/v2.10.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
- Description: .. image:: img/pyLODE-250.png
12
+ Description: .. image:: https://rawcdn.githack.com/RDFLib/pyLODE/b1ff1b1e19262cdc21ee28c7362b1690ca18e30b/img/pyLODE-250.png
13
13
 
14
14
  .. image:: https://badge.fury.io/py/pyLODE.svg
15
15
  :target: https://badge.fury.io/py/pyLODE
@@ -292,11 +292,11 @@ Description: .. image:: img/pyLODE-250.png
292
292
 
293
293
  - **ontology/taxonomy/profile metadata**
294
294
  - *imports* - ``owl:imports``
295
- - *title* - ``rdfs:label`` or ``skos:prefLabel`` or ``dct:title`` or ``dc:title``
296
- - *description* - ``rdfs:comment`` or ``skos:definition`` or ``dct:description`` or ``dc:description``
297
- - Markdown is supported
295
+ - *title* - ``rdfs:label``, ``skos:prefLabel``, ``dct:title`` or ``dc:title``
296
+ - *description* - ``rdfs:comment``, ``skos:definition``, ``dct:description`` or ``dc:description``
297
+ - inline HTML & Markdown are supported
298
298
  - *historyNote* - ``skos:historyNote``
299
- - Markdown is supported
299
+ - inline HTML & Markdown are supported
300
300
  - *version URI* - ``owl:versionIRI`` as a URI
301
301
  - *version info* - ``owl:versionInfo`` as a string
302
302
  - *preferred namespace prefix* - ``vann:preferredNamespacePrefix`` as a token
@@ -306,24 +306,29 @@ Description: .. image:: img/pyLODE-250.png
306
306
  - see the `pylode/examples/ <pylode/examples/>`__ directory for examples!
307
307
  - **dates**: *created*, *modified*, *issued* - ``dct:created`` etc., all as ``xsd:date`` or ``xsd:dateTime`` datatype properties
308
308
  - **rights**: *license* - ``dct:license`` as a URI & *rights* - ``dct:rights`` as a string
309
- - *code respository* - ``schema:codeRepository`` as a URI
310
- - *source* - ``dcterms:source`` as a URI or text
309
+ - *code respository* - ``schema:codeRepository`` as a literal of type ``xsd:anyURI``
310
+ - *source* - ``dcterms:source`` as a literal of type ``xsd:anyURI`` or text
311
311
  - **ontology classes**
312
312
  - per ``rdfs:Class`` or ``owl:Class``
313
313
  - *title* - ``rdfs:label`` or ``skos:prefLabel`` or ``dct:title``
314
- - *description* - ``rdf:comment`` or ``skos:definition`` or ``dct:description`` as a string or using `Markdown <https://daringfireball.net/projects/markdown/>`__ or HTML
315
- - *scope note* - a ``skos:scopeNote`` string
316
- - *example* - a ``skos:example`` string containing RDF
314
+ - *description* - ``rdf:comment``, ``skos:definition``, ``dct:description`` as a string or using inline HTML or `Markdown <https://daringfireball.net/projects/markdown/>`__
315
+ - *scope note* - a ``skos:scopeNote`` as a literal
316
+ - inline HTML & Markdown are supported
317
+ - *example* - a ``skos:example``
318
+ - see *Example Handling* below
317
319
  - *super classes* - by declaring a class to be ``owl:subClassOf`` something
318
320
  - *sub classes* - pyLODE will work these out itself
319
321
  - *restrictions* - by declaring a class to be ``owl:subClassOf`` of an ``owl:Restriction`` with any of the normal cardinality or property existence etc. restrictions
320
322
  - *in domain/range of* - pyLODE will auto-calculate these
321
323
  - **ontology properties**
322
324
  - per ``owl:ObjectProperty``, ``owl:DatatypeProperty`` or ``owl:AnnotationProperty``
323
- - *title* - ``rdfs:label`` or ``skos:prefLabel`` or ``dct:title``
324
- - *description* - ``rdf:comment`` or ``skos:definition`` or ``dct:description``
325
- - *usage note* - a ``skos:scopeNote`` string
326
- - *example* - a ``skos:example`` string containing RDF - this will be monospaced in outputs
325
+ - *title* - ``rdfs:label`` or ``skos:prefLabel`` or ``dct:title`` string literal
326
+ - *description* - ``rdf:comment``, ``skos:definition``, ``dct:description`` string literal
327
+ - inline HTML & Markdown are supported
328
+ - *scope note* - a ``skos:scopeNote`` string literal
329
+ - inline HTML & Markdown are supported
330
+ - *example* - a ``skos:example``
331
+ - see *Example Handling* below
327
332
  - *super properties* - by declaring a class to be ``owl:subPropertyOf`` something
328
333
  - *sub properties* - pyLODE will work these out itself
329
334
  - *equivalent properties* - by declaring a class to be ``owl:equivalentProperty`` something
@@ -336,6 +341,76 @@ Description: .. image:: img/pyLODE-250.png
336
341
  - **named individuals**
337
342
  - as per class but also ``owl:sameAs``
338
343
 
344
+ Example Handling
345
+ ~~~~~~~~~~~~~~~~
346
+ pyLODE can handle many forms of examples for Classes & Properties and can handle multiple examples per class/property. In all cases, the example value is indicated with a ``skos:example`` property like this:
347
+
348
+ ::
349
+
350
+ <x>
351
+ a owl:Class ;
352
+ skos:example {Literal, Blank Node or URI}
353
+ .
354
+
355
+ **Simple Literals**
356
+
357
+ The most basic form is an example that is a literal with no format type indicated. This will be printed out in monospaced text, e.g. the Class ``Fish`` in the `Examples Ontology <https://raw.githack.com/RDFLib/pyLODE/master/pylode/examples/examples-ont/examples.html>`_ has a plain Turtle example like this:
358
+
359
+ ::
360
+
361
+ <x> a eggs:Fish ;
362
+ skos:prefLabel "Fish X"@en ;
363
+ eggs:livesInFreshWater true ;
364
+ ...
365
+ .
366
+
367
+ If you indicate one of the RDF built-in formats (``rdf:HTML``, ``rdf:XMLLiteral`` or ``rdf:JSON``), it will be interpreted in the markup form specified, which means, in practice, that HTML will be rendered where as XML or JSON will be monospaced. The Examples Ontology has this HTML example for the property ``has scale colour``:
368
+
369
+ ----
370
+
371
+ **scale colour:**
372
+
373
+ * blue
374
+ * orange
375
+ * white
376
+
377
+ ----
378
+
379
+ You can use Markdown in example literals too, but to do so, you must set the format to ``text/markdown`` so see the *Resource Descriptor* method below.
380
+
381
+
382
+ **URIs**
383
+
384
+ If you put a URI in the example field like this: ``<x> skos:example <...> ;`` or like this ``<x> skos:example "..."^^xsd:anyURI ;`` then pyLODE will render it as a clickable hyperlink in HTML, Markdown or ASCIIDOC, as per your chose output format.
385
+
386
+ **Images**
387
+
388
+ You can use images in the example field. To do so, either use a URI to an image on the web or a relative URI to a local image file. pyLODE will render either form as an inline image. See the `Fish Food class example <https://raw.githack.com/RDFLib/pyLODE/master/pylode/examples/examples-ont/examples.html#FishFood>`_ that looks like this:
389
+
390
+ .. image:: examples/examples-ont/fish-food.png
391
+
392
+ **"Resource Descriptor" Examples**
393
+
394
+ To do more you can use a `Profiles Vocabulary (PROF) <https://w3c.github.io/dx-prof/prof/>`__ ``ResourceDescriptor`` to define multiple properties for an example resource. This involves defining a ``ResourceDescriptor`` either as a Blank Node or a URI node like this, the `Examples Ont 'eats' property <https://raw.githack.com/RDFLib/pyLODE/master/pylode/examples/examples-ont/examples.html#FishFood>`_:
395
+
396
+ ::
397
+
398
+ :eats skos:example :eats-example .
399
+
400
+ :eats-example
401
+ a prof:ResourceDescriptor ;
402
+ dcterms:format "text/turtle" ;
403
+ dcterms:conformsTo <https://example.com> ;
404
+ prof:hasArtifact """<x> a :Creature ;
405
+ :eats <y> ;
406
+ .
407
+ <y> a :Food .""" ;
408
+ .
409
+
410
+ Here the ``ResourceDescriptor`` says that this example is in the ``text/turtle`` format, has an inline artifact (the actual example text) and conforms to something, in this case the profile defined by ``<https://example.com>``.
411
+
412
+ You can use this ``ResourceDescriptor`` method to create multiple examples for a class or property that conform to different things (perhaps profiles of your ontology).
413
+
339
414
  Agents
340
415
  ------
341
416
  Agents, individual persons or organisations, should be associated with ontologies/taxonomies/profiles to indicate *authors*, *creators*, *publishers* etc. There are 2 ways to do this that pyLODE understands: datatype & object type.
@@ -699,7 +774,7 @@ Description: .. image:: img/pyLODE-250.png
699
774
  Current Release
700
775
  ---------------
701
776
 
702
- The current release, as of April, 2021, is **2.9.0**.
777
+ The current release, as of May, 2021, is **2.10.0**.
703
778
 
704
779
  Release Schedule
705
780
  ----------------
@@ -709,7 +784,8 @@ Description: .. image:: img/pyLODE-250.png
709
784
  :widths: 15, 10, 30
710
785
 
711
786
  3.0, *?*, "Will include pre-testing inputs with SHACL"
712
- **2.9.1**, **28 Apr 2021**, "Support for ASCIIDOC format (OntDoc profile only)"
787
+ **2.10.0**, 24 May 2021, "Update Windows EXE build process, simplified versioning"
788
+ 2.9.1, 28 Apr 2021, "Support for ASCIIDOC format (OntDoc profile only)"
713
789
  2.8.11, 28 Apr 2021, "Further changes for PyPI only"
714
790
  2.8.10, 27 Apr 2021, "Further changes for PyPI only"
715
791
  2.8.9, 27 Apr 2021, "PyPI enhancements only"
@@ -736,6 +812,8 @@ Description: .. image:: img/pyLODE-250.png
736
812
 
737
813
  2.0 - current
738
814
  ~~~~~~~~~~~~~~
815
+ - handles complex Examples (``skos:example``)
816
+ - can export to ASCIIDOC format
739
817
  - includes 3rd-party-created profile: NMPF
740
818
  - handles Named Individuals in OWL ontologies
741
819
  - implements "owldoc" & "vocpub" documentation profiles for OWL, SKOS and OWL-as-SKOS results
@@ -788,9 +866,10 @@ Classifier: Intended Audience :: Developers
788
866
  Classifier: Natural Language :: English
789
867
  Classifier: Programming Language :: Python :: 3
790
868
  Classifier: Programming Language :: Python :: 3 :: Only
791
- Classifier: Programming Language :: Python :: 3.5
792
869
  Classifier: Programming Language :: Python :: 3.6
793
870
  Classifier: Programming Language :: Python :: 3.7
871
+ Classifier: Programming Language :: Python :: 3.8
872
+ Classifier: Programming Language :: Python :: 3.9
794
873
  Classifier: Programming Language :: Python :: Implementation :: CPython
795
874
  Classifier: Programming Language :: Python :: Implementation :: PyPy
796
875
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
@@ -2,6 +2,7 @@
2
2
  Dockerfile
3
3
  LICENSE
4
4
  README.rst
5
+ requirements-pyinstaller.txt
5
6
  requirements.dev.txt
6
7
  requirements.server.txt
7
8
  requirements.txt
@@ -23,10 +24,10 @@ pylode/_version.py
23
24
  pylode/cli.py
24
25
  pylode/common.py
25
26
  pylode/curies.py
26
- pylode/pylode-cli.spec
27
+ pylode/pyLODE-cli.spec
27
28
  pylode/server.py
29
+ pylode/bin/pyLODE.exe
28
30
  pylode/bin/pylode.app
29
- pylode/bin/pylode.exe
30
31
  pylode/bin/pylode.sh
31
32
  pylode/examples/_make_examples.py
32
33
  pylode/examples/agift.ttl
@@ -89,6 +90,8 @@ pylode/examples/foaf.ttl
89
90
  pylode/examples/ga-skos.prof.html
90
91
  pylode/examples/ga-skos.prof.md
91
92
  pylode/examples/ga-skos.ttl
93
+ pylode/examples/geo.adoc
94
+ pylode/examples/geo.adoc.html
92
95
  pylode/examples/geo.html
93
96
  pylode/examples/geo.md
94
97
  pylode/examples/geo.profile.prof.html
@@ -101,6 +104,8 @@ pylode/examples/geoadminfeatures.ttl
101
104
  pylode/examples/geofabric.html
102
105
  pylode/examples/geofabric.md
103
106
  pylode/examples/geofabric.ttl
107
+ pylode/examples/geosparql-profile.html
108
+ pylode/examples/geosparql-profile.ttl
104
109
  pylode/examples/geox.html
105
110
  pylode/examples/geox.md
106
111
  pylode/examples/geox.ttl
@@ -157,6 +162,13 @@ pylode/examples/sosa.ttl
157
162
  pylode/examples/ssn.html
158
163
  pylode/examples/ssn.md
159
164
  pylode/examples/ssn.ttl
165
+ pylode/examples/examples-ont/examples.adoc
166
+ pylode/examples/examples-ont/examples.adoc.html
167
+ pylode/examples/examples-ont/examples.html
168
+ pylode/examples/examples-ont/examples.md
169
+ pylode/examples/examples-ont/examples.ttl
170
+ pylode/examples/examples-ont/fish-food.png
171
+ pylode/examples/examples-ont/toothy.png
160
172
  pylode/examples/iso19160/codelist.ttl
161
173
  pylode/examples/iso19160/iso19160-1.html
162
174
  pylode/examples/iso19160/iso19160-1.ttl
@@ -269,6 +281,7 @@ tests/agrif.html
269
281
  tests/agrif.ttl
270
282
  tests/decprov.ttl
271
283
  tests/simpleont.ttl
284
+ tests/test_adoc.py
272
285
  tests/test_baseprofile.py
273
286
  tests/test_class.py
274
287
  tests/test_issue_110.py
@@ -0,0 +1,17 @@
1
+ from rdflib.plugin import register, Serializer
2
+ register("json-ld", Serializer, "rdflib_jsonld.serializer", "JsonLDSerializer")
3
+ __version__ = "2.10.0"
4
+
5
+ from .common import *
6
+ from .profiles import OntDoc, Prof, VocPub, NMPF, PROFILES, RDF_MEDIA_TYPES
7
+
8
+ __all__ = [
9
+ "__version__",
10
+ "OntDoc",
11
+ "Prof",
12
+ "VocPub",
13
+ "NMPF",
14
+ "PROFILES",
15
+ "RDF_MEDIA_TYPES",
16
+ "MakeDocco"
17
+ ]
@@ -1,5 +1,5 @@
1
1
  # coding: utf-8
2
2
  # file generated by setuptools_scm
3
3
  # don't change, don't track in version control
4
- version = '2.9.1'
5
- version_tuple = (2, 9, 1)
4
+ version = '2.10.3'
5
+ version_tuple = (2, 10, 3)