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.
Files changed (290) hide show
  1. pyLODE-2.9.1/.gitignore +119 -0
  2. pyLODE-2.9.1/Dockerfile +27 -0
  3. {pyLODE-2.8.3 → pyLODE-2.9.1}/PKG-INFO +66 -29
  4. {pyLODE-2.8.3 → pyLODE-2.9.1}/README.rst +64 -27
  5. pyLODE-2.9.1/img/favicon-16x16.png +0 -0
  6. pyLODE-2.9.1/img/favicon-32x32.png +0 -0
  7. pyLODE-2.9.1/img/pyLODE-250.png +0 -0
  8. pyLODE-2.9.1/img/pyLODE.png +0 -0
  9. {pyLODE-2.8.3 → pyLODE-2.9.1}/pyLODE.egg-info/PKG-INFO +66 -29
  10. pyLODE-2.9.1/pyLODE.egg-info/SOURCES.txt +279 -0
  11. pyLODE-2.9.1/pyLODE.egg-info/requires.txt +5 -0
  12. pyLODE-2.9.1/pylode/__init__.py +29 -0
  13. pyLODE-2.9.1/pylode/_version.py +5 -0
  14. pyLODE-2.9.1/pylode/bin/pylode.app +0 -0
  15. pyLODE-2.9.1/pylode/bin/pylode.exe +0 -0
  16. pyLODE-2.9.1/pylode/bin/pylode.sh +5 -0
  17. {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/cli.py +39 -45
  18. {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/common.py +61 -33
  19. pyLODE-2.9.1/pylode/examples/_make_examples.py +79 -0
  20. pyLODE-2.9.1/pylode/examples/agift.ttl +9694 -0
  21. pyLODE-2.9.1/pylode/examples/agift.vocpub.html +14468 -0
  22. pyLODE-2.9.1/pylode/examples/agift.vocpub.md +6184 -0
  23. pyLODE-2.9.1/pylode/examples/agrif-notitle.html +3959 -0
  24. pyLODE-2.9.1/pylode/examples/agrif-notitle.md +1249 -0
  25. pyLODE-2.9.1/pylode/examples/agrif-notitle.ttl +1453 -0
  26. pyLODE-2.9.1/pylode/examples/agrif.adoc +2817 -0
  27. pyLODE-2.9.1/pylode/examples/agrif.adoc.html +7292 -0
  28. pyLODE-2.9.1/pylode/examples/agrif.html +3968 -0
  29. pyLODE-2.9.1/pylode/examples/agrif.md +1253 -0
  30. pyLODE-2.9.1/pylode/examples/agrif.nmpf.html +3959 -0
  31. pyLODE-2.9.1/pylode/examples/agrif.ttl +1451 -0
  32. pyLODE-2.9.1/pylode/examples/agrif.vocpub.html +2100 -0
  33. pyLODE-2.9.1/pylode/examples/agrif.vocpub.md +690 -0
  34. pyLODE-2.9.1/pylode/examples/alternates.html +547 -0
  35. pyLODE-2.9.1/pylode/examples/alternates.md +132 -0
  36. pyLODE-2.9.1/pylode/examples/alternates.ttl +106 -0
  37. pyLODE-2.9.1/pylode/examples/asgs.html +1513 -0
  38. pyLODE-2.9.1/pylode/examples/asgs.md +439 -0
  39. pyLODE-2.9.1/pylode/examples/asgs.ttl +574 -0
  40. pyLODE-2.9.1/pylode/examples/asgs.vocpub.html +1022 -0
  41. pyLODE-2.9.1/pylode/examples/asgs.vocpub.md +297 -0
  42. pyLODE-2.9.1/pylode/examples/bfo.html +4365 -0
  43. pyLODE-2.9.1/pylode/examples/bfo.md +1254 -0
  44. pyLODE-2.9.1/pylode/examples/bfo.ttl +5467 -0
  45. pyLODE-2.9.1/pylode/examples/brick.html +12339 -0
  46. pyLODE-2.9.1/pylode/examples/brick.md +4033 -0
  47. pyLODE-2.9.1/pylode/examples/brick.ttl +7294 -0
  48. pyLODE-2.9.1/pylode/examples/collection-item-format.md +230 -0
  49. pyLODE-2.9.1/pylode/examples/collection-item-format.ttl +234 -0
  50. pyLODE-2.9.1/pylode/examples/collection-item-format.vocpub.html +858 -0
  51. pyLODE-2.9.1/pylode/examples/collection-item-format.vocpub.md +252 -0
  52. pyLODE-2.9.1/pylode/examples/crs.html +1895 -0
  53. pyLODE-2.9.1/pylode/examples/crs.md +558 -0
  54. pyLODE-2.9.1/pylode/examples/crs.ttl +531 -0
  55. pyLODE-2.9.1/pylode/examples/data-access-rights.ttl +69 -0
  56. pyLODE-2.9.1/pylode/examples/data-access-rights.vocpub.html +452 -0
  57. pyLODE-2.9.1/pylode/examples/data-access-rights.vocpub.md +119 -0
  58. pyLODE-2.9.1/pylode/examples/datatype.html +723 -0
  59. pyLODE-2.9.1/pylode/examples/datatype.md +197 -0
  60. pyLODE-2.9.1/pylode/examples/datatype.ttl +256 -0
  61. pyLODE-2.9.1/pylode/examples/dcat.ttl.broken +2518 -0
  62. pyLODE-2.9.1/pylode/examples/decprov.html +585 -0
  63. pyLODE-2.9.1/pylode/examples/decprov.md +144 -0
  64. pyLODE-2.9.1/pylode/examples/decprov.svg +1 -0
  65. pyLODE-2.9.1/pylode/examples/decprov.ttl +134 -0
  66. pyLODE-2.9.1/pylode/examples/doap.html +2046 -0
  67. pyLODE-2.9.1/pylode/examples/doap.md +565 -0
  68. pyLODE-2.9.1/pylode/examples/doap.ttl +778 -0
  69. pyLODE-2.9.1/pylode/examples/earth-science-data-category.ttl +560 -0
  70. pyLODE-2.9.1/pylode/examples/earth-science-data-category.vocpub.html +2229 -0
  71. pyLODE-2.9.1/pylode/examples/earth-science-data-category.vocpub.md +773 -0
  72. pyLODE-2.9.1/pylode/examples/ebg.html +4660 -0
  73. pyLODE-2.9.1/pylode/examples/ebg.ttl +1256 -0
  74. pyLODE-2.9.1/pylode/examples/foaf.html +3067 -0
  75. pyLODE-2.9.1/pylode/examples/foaf.md +858 -0
  76. pyLODE-2.9.1/pylode/examples/foaf.ttl +726 -0
  77. pyLODE-2.9.1/pylode/examples/ga-skos.prof.html +441 -0
  78. pyLODE-2.9.1/pylode/examples/ga-skos.prof.md +93 -0
  79. pyLODE-2.9.1/pylode/examples/ga-skos.ttl +63 -0
  80. pyLODE-2.9.1/pylode/examples/geo.html +1949 -0
  81. pyLODE-2.9.1/pylode/examples/geo.md +525 -0
  82. pyLODE-2.9.1/pylode/examples/geo.profile.prof.html +552 -0
  83. pyLODE-2.9.1/pylode/examples/geo.profile.prof.md +134 -0
  84. pyLODE-2.9.1/pylode/examples/geo.profile.ttl +119 -0
  85. pyLODE-2.9.1/pylode/examples/geo.ttl +1214 -0
  86. pyLODE-2.9.1/pylode/examples/geoadminfeatures.html +441 -0
  87. pyLODE-2.9.1/pylode/examples/geoadminfeatures.md +102 -0
  88. pyLODE-2.9.1/pylode/examples/geoadminfeatures.ttl +75 -0
  89. pyLODE-2.9.1/pylode/examples/geofabric.html +597 -0
  90. pyLODE-2.9.1/pylode/examples/geofabric.md +150 -0
  91. pyLODE-2.9.1/pylode/examples/geofabric.ttl +208 -0
  92. pyLODE-2.9.1/pylode/examples/geox.html +731 -0
  93. pyLODE-2.9.1/pylode/examples/geox.md +179 -0
  94. pyLODE-2.9.1/pylode/examples/geox.ttl +210 -0
  95. pyLODE-2.9.1/pylode/examples/gnaf.html +1621 -0
  96. pyLODE-2.9.1/pylode/examples/gnaf.md +491 -0
  97. pyLODE-2.9.1/pylode/examples/gnaf.ttl +575 -0
  98. pyLODE-2.9.1/pylode/examples/iso19115-1-RoleCodes.ttl +169 -0
  99. pyLODE-2.9.1/pylode/examples/iso19115-1-RoleCodes.vocpub.html +598 -0
  100. pyLODE-2.9.1/pylode/examples/iso19115-1-RoleCodes.vocpub.md +198 -0
  101. pyLODE-2.9.1/pylode/examples/iso19160/codelist.ttl +435 -0
  102. pyLODE-2.9.1/pylode/examples/iso19160/images/address.png +0 -0
  103. pyLODE-2.9.1/pylode/examples/iso19160/images/address_alias.png +0 -0
  104. pyLODE-2.9.1/pylode/examples/iso19160/images/address_component.png +0 -0
  105. pyLODE-2.9.1/pylode/examples/iso19160/images/address_position.png +0 -0
  106. pyLODE-2.9.1/pylode/examples/iso19160/images/address_provenance.png +0 -0
  107. pyLODE-2.9.1/pylode/examples/iso19160/images/addressable_object.png +0 -0
  108. pyLODE-2.9.1/pylode/examples/iso19160/images/addressed_period.png +0 -0
  109. pyLODE-2.9.1/pylode/examples/iso19160/images/diagrams.pptx +0 -0
  110. pyLODE-2.9.1/pylode/examples/iso19160/images/lifespan.png +0 -0
  111. pyLODE-2.9.1/pylode/examples/iso19160/images/major_classes.png +0 -0
  112. pyLODE-2.9.1/pylode/examples/iso19160/images/reference_object.png +0 -0
  113. pyLODE-2.9.1/pylode/examples/iso19160/iso19160-1.html +2745 -0
  114. pyLODE-2.9.1/pylode/examples/iso19160/iso19160-1.ttl +1439 -0
  115. pyLODE-2.9.1/pylode/examples/iso19160/style.css +157 -0
  116. pyLODE-2.9.1/pylode/examples/iso19160-1-nz-profile.html +466 -0
  117. pyLODE-2.9.1/pylode/examples/iso19160-1-nz-profile.md +109 -0
  118. pyLODE-2.9.1/pylode/examples/iso19160-1-nz-profile.ttl +126 -0
  119. pyLODE-2.9.1/pylode/examples/iso21972.html +3647 -0
  120. pyLODE-2.9.1/pylode/examples/iso21972.md +1161 -0
  121. pyLODE-2.9.1/pylode/examples/iso21972.ttl +1249 -0
  122. pyLODE-2.9.1/pylode/examples/loci.html +767 -0
  123. pyLODE-2.9.1/pylode/examples/loci.md +225 -0
  124. pyLODE-2.9.1/pylode/examples/loci.ttl +259 -0
  125. pyLODE-2.9.1/pylode/examples/ogc/fonts/Lato-Regular.eot +0 -0
  126. pyLODE-2.9.1/pylode/examples/ogc/fonts/Lato-Regular.ttf +0 -0
  127. pyLODE-2.9.1/pylode/examples/ogc/fonts/Lato-Regular.woff +0 -0
  128. pyLODE-2.9.1/pylode/examples/ogc/fonts/Lato-Regular.woff2 +0 -0
  129. pyLODE-2.9.1/pylode/examples/ogc/hyf.3.html +1330 -0
  130. pyLODE-2.9.1/pylode/examples/ogc/hyf.4.html +1505 -0
  131. pyLODE-2.9.1/pylode/examples/ogc/hyf.5.html +1330 -0
  132. pyLODE-2.9.1/pylode/examples/ogc/hyf.html +1334 -0
  133. pyLODE-2.9.1/pylode/examples/ogc/hyf.skos.html +491 -0
  134. pyLODE-2.9.1/pylode/examples/ogc/hyf.ttl +411 -0
  135. pyLODE-2.9.1/pylode/examples/om.html +19651 -0
  136. pyLODE-2.9.1/pylode/examples/om.md +5694 -0
  137. pyLODE-2.9.1/pylode/examples/om.ttl +27294 -0
  138. pyLODE-2.9.1/pylode/examples/owl.html +2904 -0
  139. pyLODE-2.9.1/pylode/examples/owl.md +804 -0
  140. pyLODE-2.9.1/pylode/examples/owl.ttl +552 -0
  141. pyLODE-2.9.1/pylode/examples/placenames.html +1324 -0
  142. pyLODE-2.9.1/pylode/examples/placenames.md +420 -0
  143. pyLODE-2.9.1/pylode/examples/placenames.ttl +415 -0
  144. pyLODE-2.9.1/pylode/examples/plot.html +1227 -0
  145. pyLODE-2.9.1/pylode/examples/plot.md +362 -0
  146. pyLODE-2.9.1/pylode/examples/plot.ttl +563 -0
  147. pyLODE-2.9.1/pylode/examples/project.adoc +752 -0
  148. pyLODE-2.9.1/pylode/examples/project.adoc.html +2156 -0
  149. pyLODE-2.9.1/pylode/examples/project.html +1228 -0
  150. pyLODE-2.9.1/pylode/examples/project.md +298 -0
  151. pyLODE-2.9.1/pylode/examples/project.ttl +596 -0
  152. pyLODE-2.9.1/pylode/examples/ra.html +505 -0
  153. pyLODE-2.9.1/pylode/examples/ra.md +117 -0
  154. pyLODE-2.9.1/pylode/examples/ra.ttl +95 -0
  155. pyLODE-2.9.1/pylode/examples/rdf.html +738 -0
  156. pyLODE-2.9.1/pylode/examples/rdf.md +178 -0
  157. pyLODE-2.9.1/pylode/examples/rdf.ttl +125 -0
  158. pyLODE-2.9.1/pylode/examples/rdfs.html +823 -0
  159. pyLODE-2.9.1/pylode/examples/rdfs.md +199 -0
  160. pyLODE-2.9.1/pylode/examples/rdfs.ttl +109 -0
  161. pyLODE-2.9.1/pylode/examples/reg.html +1732 -0
  162. pyLODE-2.9.1/pylode/examples/reg.md +486 -0
  163. pyLODE-2.9.1/pylode/examples/reg.png +0 -0
  164. pyLODE-2.9.1/pylode/examples/reg.ttl +496 -0
  165. pyLODE-2.9.1/pylode/examples/skos-thes.html +1235 -0
  166. pyLODE-2.9.1/pylode/examples/skos-thes.ttl +518 -0
  167. pyLODE-2.9.1/pylode/examples/sosa.html +1563 -0
  168. pyLODE-2.9.1/pylode/examples/sosa.md +472 -0
  169. pyLODE-2.9.1/pylode/examples/sosa.ttl +424 -0
  170. pyLODE-2.9.1/pylode/examples/ssn.html +1218 -0
  171. pyLODE-2.9.1/pylode/examples/ssn.md +366 -0
  172. pyLODE-2.9.1/pylode/examples/ssn.ttl +415 -0
  173. pyLODE-2.9.1/pylode/examples/void/changelog.txt +4 -0
  174. pyLODE-2.9.1/pylode/examples/void/figs.html +11 -0
  175. pyLODE-2.9.1/pylode/examples/void/properties.png +0 -0
  176. pyLODE-2.9.1/pylode/examples/void/style.css +157 -0
  177. pyLODE-2.9.1/pylode/examples/void/void.html +961 -0
  178. pyLODE-2.9.1/pylode/examples/void/void.md +343 -0
  179. pyLODE-2.9.1/pylode/examples/void/void.ttl +257 -0
  180. {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/profiles/__init__.py +1 -0
  181. {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/profiles/base.py +144 -30
  182. pyLODE-2.8.3/pylode/profiles/ontdoc.py → pyLODE-2.9.1/pylode/profiles/nmpf.py +115 -67
  183. pyLODE-2.9.1/pylode/profiles/ontdoc.py +1330 -0
  184. {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/profiles/prof.py +27 -29
  185. {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/profiles/profile.py +25 -2
  186. {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/profiles/vocpub.py +94 -60
  187. pyLODE-2.9.1/pylode/pylode-cli.spec +55 -0
  188. pyLODE-2.9.1/pylode/server.py +60 -0
  189. {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/style/pylode.css +4 -4
  190. pyLODE-2.8.3/pylode/templates/agent.md → pyLODE-2.9.1/pylode/templates/agent.adoc +4 -4
  191. {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/agent.html +1 -1
  192. pyLODE-2.9.1/pylode/templates/agent.md +11 -0
  193. pyLODE-2.9.1/pylode/templates/namespaces.adoc +7 -0
  194. {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/namespaces.html +2 -0
  195. {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/namespaces.md +2 -0
  196. {pyLODE-2.8.3/pylode/templates/ontdoc → pyLODE-2.9.1/pylode/templates/nmpf}/class.html +13 -3
  197. {pyLODE-2.8.3/pylode/templates/ontdoc → pyLODE-2.9.1/pylode/templates/nmpf}/class.md +4 -1
  198. pyLODE-2.9.1/pylode/templates/nmpf/document.html +45 -0
  199. pyLODE-2.9.1/pylode/templates/nmpf/named_individual.html +97 -0
  200. pyLODE-2.9.1/pylode/templates/nmpf/named_individual.md +37 -0
  201. {pyLODE-2.8.3/pylode/templates/ontdoc → pyLODE-2.9.1/pylode/templates/nmpf}/property.html +3 -3
  202. {pyLODE-2.8.3/pylode/templates/ontdoc → pyLODE-2.9.1/pylode/templates/nmpf}/property.md +1 -1
  203. pyLODE-2.9.1/pylode/templates/ontdoc/class.adoc +85 -0
  204. pyLODE-2.9.1/pylode/templates/ontdoc/class.html +131 -0
  205. pyLODE-2.9.1/pylode/templates/ontdoc/class.md +43 -0
  206. pyLODE-2.9.1/pylode/templates/ontdoc/classes.adoc +8 -0
  207. pyLODE-2.9.1/pylode/templates/ontdoc/classes.html +11 -0
  208. pyLODE-2.9.1/pylode/templates/ontdoc/classes.md +7 -0
  209. pyLODE-2.9.1/pylode/templates/ontdoc/document.adoc +43 -0
  210. pyLODE-2.9.1/pylode/templates/ontdoc/document.html +43 -0
  211. pyLODE-2.9.1/pylode/templates/ontdoc/document.md +16 -0
  212. pyLODE-2.9.1/pylode/templates/ontdoc/metadata.adoc +91 -0
  213. pyLODE-2.9.1/pylode/templates/ontdoc/metadata.html +127 -0
  214. pyLODE-2.9.1/pylode/templates/ontdoc/metadata.md +111 -0
  215. pyLODE-2.9.1/pylode/templates/ontdoc/named_individual.adoc +43 -0
  216. {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/ontdoc/named_individual.html +2 -2
  217. {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/ontdoc/named_individual.md +1 -1
  218. pyLODE-2.9.1/pylode/templates/ontdoc/named_individuals.adoc +7 -0
  219. pyLODE-2.9.1/pylode/templates/ontdoc/named_individuals.html +13 -0
  220. pyLODE-2.9.1/pylode/templates/ontdoc/named_individuals.md +7 -0
  221. pyLODE-2.9.1/pylode/templates/ontdoc/properties.adoc +47 -0
  222. pyLODE-2.9.1/pylode/templates/ontdoc/properties.html +65 -0
  223. pyLODE-2.9.1/pylode/templates/ontdoc/properties.md +45 -0
  224. pyLODE-2.9.1/pylode/templates/ontdoc/property.adoc +65 -0
  225. pyLODE-2.9.1/pylode/templates/ontdoc/property.html +129 -0
  226. pyLODE-2.9.1/pylode/templates/ontdoc/property.md +37 -0
  227. pyLODE-2.9.1/pylode/templates/orcid.adoc +1 -0
  228. {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/orcid.html +4 -2
  229. pyLODE-2.9.1/pylode/templates/orcid.md +1 -0
  230. pyLODE-2.9.1/pylode/templates/prof/prof.html +41 -0
  231. {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/vocpub/collection.html +3 -3
  232. {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/vocpub/concept.html +1 -1
  233. {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/vocpub/concept.md +2 -2
  234. {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/vocpub/concepts.md +1 -1
  235. pyLODE-2.9.1/pylode/templates/vocpub/taxonomy.html +45 -0
  236. {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/vocpub/taxonomy.md +2 -2
  237. pyLODE-2.9.1/requirements.dev.txt +4 -0
  238. pyLODE-2.8.3/pyLODE.egg-info/requires.txt → pyLODE-2.9.1/requirements.server.txt +2 -4
  239. pyLODE-2.9.1/requirements.txt +5 -0
  240. {pyLODE-2.8.3 → pyLODE-2.9.1}/setup.py +9 -5
  241. pyLODE-2.9.1/tests/agrif.html +3964 -0
  242. pyLODE-2.9.1/tests/agrif.ttl +1459 -0
  243. pyLODE-2.9.1/tests/decprov.ttl +134 -0
  244. pyLODE-2.9.1/tests/simpleont.ttl +34 -0
  245. pyLODE-2.9.1/tests/test_baseprofile.py +48 -0
  246. pyLODE-2.9.1/tests/test_class.py +36 -0
  247. pyLODE-2.9.1/tests/test_issue_110.py +15 -0
  248. pyLODE-2.9.1/tests/test_issue_110_input.ttl +17870 -0
  249. pyLODE-2.9.1/tests/test_issue_110_output.html +57727 -0
  250. pyLODE-2.9.1/tests/test_ontdoc.py +44 -0
  251. pyLODE-2.9.1/tests/test_property.py +1 -0
  252. pyLODE-2.9.1/upload-to-PyPI.txt +13 -0
  253. pyLODE-2.8.3/pyLODE.egg-info/SOURCES.txt +0 -67
  254. pyLODE-2.8.3/pylode/__init__.py +0 -5
  255. pyLODE-2.8.3/pylode/server.py +0 -24
  256. pyLODE-2.8.3/pylode/templates/ontdoc/document.html +0 -42
  257. pyLODE-2.8.3/pylode/templates/orcid.md +0 -1
  258. pyLODE-2.8.3/pylode/templates/prof/prof.html +0 -38
  259. pyLODE-2.8.3/pylode/templates/vocpub/taxonomy.html +0 -42
  260. pyLODE-2.8.3/pylode/tests/test_ont_html_description.py +0 -7
  261. pyLODE-2.8.3/pylode/tests/test_skos.py +0 -8
  262. pyLODE-2.8.3/pylode/tests/tests_all.py +0 -50
  263. {pyLODE-2.8.3 → pyLODE-2.9.1}/LICENSE +0 -0
  264. {pyLODE-2.8.3 → pyLODE-2.9.1}/pyLODE.egg-info/dependency_links.txt +0 -0
  265. {pyLODE-2.8.3 → pyLODE-2.9.1}/pyLODE.egg-info/entry_points.txt +0 -0
  266. {pyLODE-2.8.3 → pyLODE-2.9.1}/pyLODE.egg-info/top_level.txt +0 -0
  267. {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/curies.py +0 -0
  268. {pyLODE-2.8.3/pylode/templates/ontdoc → pyLODE-2.9.1/pylode/templates/nmpf}/classes.html +0 -0
  269. {pyLODE-2.8.3/pylode/templates/ontdoc → pyLODE-2.9.1/pylode/templates/nmpf}/classes.md +0 -0
  270. {pyLODE-2.8.3/pylode/templates/ontdoc → pyLODE-2.9.1/pylode/templates/nmpf}/document.md +0 -0
  271. {pyLODE-2.8.3/pylode/templates/ontdoc → pyLODE-2.9.1/pylode/templates/nmpf}/metadata.html +0 -0
  272. {pyLODE-2.8.3/pylode/templates/ontdoc → pyLODE-2.9.1/pylode/templates/nmpf}/metadata.md +0 -0
  273. {pyLODE-2.8.3/pylode/templates/ontdoc → pyLODE-2.9.1/pylode/templates/nmpf}/named_individuals.html +0 -0
  274. {pyLODE-2.8.3/pylode/templates/ontdoc → pyLODE-2.9.1/pylode/templates/nmpf}/named_individuals.md +0 -0
  275. {pyLODE-2.8.3/pylode/templates/ontdoc → pyLODE-2.9.1/pylode/templates/nmpf}/properties.html +0 -0
  276. {pyLODE-2.8.3/pylode/templates/ontdoc → pyLODE-2.9.1/pylode/templates/nmpf}/properties.md +0 -0
  277. {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/prof/prof.md +0 -0
  278. {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/prof/profile.html +0 -0
  279. {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/prof/profile.md +0 -0
  280. {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/prof/resource_descriptor.html +0 -0
  281. {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/prof/resource_descriptor.md +0 -0
  282. {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/vocpub/collection.md +0 -0
  283. {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/vocpub/collections.html +0 -0
  284. {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/vocpub/collections.md +0 -0
  285. {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/vocpub/concept_hierarchy.html +0 -0
  286. {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/vocpub/concept_scheme.html +0 -0
  287. {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/vocpub/concept_scheme.md +0 -0
  288. {pyLODE-2.8.3 → pyLODE-2.9.1}/pylode/templates/vocpub/concepts.html +0 -0
  289. {pyLODE-2.8.3 → pyLODE-2.9.1}/setup.cfg +0 -0
  290. /pyLODE-2.8.3/pylode/tests/__init__.py → /pyLODE-2.9.1/tests/test_metadata.py +0 -0
@@ -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
@@ -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.8.3
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.8.3.tar.gz
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://kurrawong.net/pylode-online
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="owldoc",
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
- All use the same command line arguments.
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 'false'*
180
- - Whether (true) or not (false) to copy the default CSS file to the output directory.
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 .md. If not specified, the name of the input file or last segment of RDF URI will be used, + .html/.md.
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 'md' accepted.
185
- - ``-p`` or ``--profile``, *optional, default 'owl'*
186
- - The profile (specification) for ontology documentation used. This has been "owl" (for OWL Ontology) only until the recent introduction of "vocpub" (according to the `Simple Knowledge Organization System (SKOS) <https://www.w3.org/TR/skos-reference/>`__). See ``-lp`` for all profiles supported.
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
- create an HTML document for an ontology called ``placenames.html`` and
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 --css true
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 API to access pyLODE is now available in test mode at https://kurrawong.net/pylode-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
- cd pylode && gunicorn --chdir /path/to/pyLODE/pylode server:api
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/lode?url=http://sweetontology.net/sweetAll.ttl
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
- - *usage note* - a ``skos:scopeNote`` string
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/ontdocp>`_
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 July 2020, is **2.8.3**.
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, *June 2020*, "Will include pre-testing inputs with SHACL"
683
- **2.8.3**, **3 July 2020**, "Packaging bugfixes only"
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://kurrawong.net/pylode-online
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="owldoc",
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
- All use the same command line arguments.
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 'false'*
169
- - Whether (true) or not (false) to copy the default CSS file to the output directory.
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 .md. If not specified, the name of the input file or last segment of RDF URI will be used, + .html/.md.
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 'md' accepted.
174
- - ``-p`` or ``--profile``, *optional, default 'owl'*
175
- - The profile (specification) for ontology documentation used. This has been "owl" (for OWL Ontology) only until the recent introduction of "vocpub" (according to the `Simple Knowledge Organization System (SKOS) <https://www.w3.org/TR/skos-reference/>`__). See ``-lp`` for all profiles supported.
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
- create an HTML document for an ontology called ``placenames.html`` and
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 --css true
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 API to access pyLODE is now available in test mode at https://kurrawong.net/pylode-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
- cd pylode && gunicorn --chdir /path/to/pyLODE/pylode server:api
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/lode?url=http://sweetontology.net/sweetAll.ttl
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
- - *usage note* - a ``skos:scopeNote`` string
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/ontdocp>`_
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 July 2020, is **2.8.3**.
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, *June 2020*, "Will include pre-testing inputs with SHACL"
672
- **2.8.3**, **3 July 2020**, "Packaging bugfixes only"
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