1
+ .. highlight :: bash
2
+
1
3
.. image :: https://rawcdn.githack.com/RDFLib/pyLODE/b1ff1b1e19262cdc21ee28c7362b1690ca18e30b/img/pyLODE-250.png
2
4
3
5
.. image :: https://badge.fury.io/py/pyLODE.svg
4
6
:target: https://badge.fury.io/py/pyLODE
5
7
6
8
pyLODE
7
9
******
10
+
8
11
An OWL ontology documentation tool using Python, based on LODE.
9
12
10
13
In addition to making web page, human-readable forms of ontologies, pyLODE encourages ontology annotation *best
@@ -27,6 +30,7 @@ To access v 2.13.2 of pyLODE, either `download it from PyPI <https://pypi.org/pr
27
30
28
31
Contents
29
32
========
33
+
30
34
1. `Quick Intro `_
31
35
2. Use _
32
36
3. `What pyLODE understands `_
@@ -40,9 +44,9 @@ Contents
40
44
11. Collaboration _
41
45
12. Contacts _
42
46
43
-
44
47
Quick Intro
45
48
===========
49
+
46
50
The Live OWL Documentation Environment tool
47
51
(`LODE <https://github.com/essepuntato/LODE >`__) is a well-known (in
48
52
Semantic Web circles) Java & XSLT-based tool used to generate
@@ -83,7 +87,7 @@ Command line arguments
83
87
The BASH, Windows EXE and Python Script methods all use the same command line
84
88
arguments:
85
89
86
- ::
90
+ .. code-block :: text
87
91
88
92
usage: cli.py [-h] [-v] [-o OUTPUTFILE] [-c {true,false}] input
89
93
@@ -118,22 +122,20 @@ match exactly the file ``examples/minimal.html``.
118
122
119
123
* as a docker container
120
124
121
- build the docker image
122
- ::
125
+ build the docker image::
123
126
124
127
docker build -t pylode:latest .
125
128
126
- copy the example directory, mount it to the container and run cli.py in the container
127
- ::
129
+ copy the example directory, mount it to the container and run cli.py in the container::
128
130
129
131
docker run --mount 'type=bind,src=<ttl_directory>,target=/app/pylode/data' pylode:latest python3.10 pylode/cli.py data/<ttl_file> -o data/<html_file>
130
132
131
- Note: <ttl_directory> must be absolute
133
+ Note: `` <ttl_directory> `` must be absolute
132
134
133
135
Module Use
134
136
^^^^^^^^^^
135
137
136
- ::
138
+ .. code-block :: python
137
139
138
140
from pylode import OntDoc
139
141
@@ -162,12 +164,11 @@ You can also see rendered versions of these example files online too:
162
164
* `alternates.html <https://rdflib.dev/pyLODE/examples/ontdoc/alternates.html >`_
163
165
* `asgs.html <https://rdflib.dev/pyLODE/examples/ontdoc/asgs.html >`_
164
166
165
-
166
167
What pyLODE understands
167
168
=======================
168
169
169
170
pyLODE knows about definitional ontologies (``owl:Ontology ``) and the major
170
- elements usually found in them, such as classes (``owl:Class `` or ``rdf:Class)
171
+ elements usually found in them, such as classes (``owl:Class `` or ``rdf:Class `` )
171
172
and properties (``rdf:Property `` & ``owl:ObjectProperty `` etc.).
172
173
173
174
To see what properties for ontology, class and RDF property documentation
@@ -185,13 +186,14 @@ not really designed to document large ontologies containing class instances.
185
186
186
187
Notes on Agents
187
188
---------------
189
+
188
190
pyLODE can understand both simple and complex Agent objects. You can use
189
191
simple string properties like ``dc:contributor "Nicholas J. Car" `` too if
190
192
you really must but better would be to take advantage of real Linked Data
191
193
representation, e.g. complex Agent objects with web addresses, emails,
192
194
affiliations, ORCIDs and so on, e.g.:
193
195
194
- ::
196
+ .. code-block :: turtle
195
197
196
198
<ontology_x>
197
199
dct:creator [
@@ -202,6 +204,7 @@ affiliations, ORCIDs and so on, e.g.:
202
204
sdo:url "https://surroundaustralia.com"^^xsd:anyURI ;
203
205
] ;
204
206
] ;
207
+ .
205
208
206
209
See all the properties in ``rdf_elements.py:AGENT_PROPS `` for a list of
207
210
all the Agent properties pyLODE can handle.
@@ -216,18 +219,18 @@ it using `pip <https://pypi.org/project/pip/>`_ as normal:
216
219
217
220
pip install pylode
218
221
219
-
220
222
Testing
221
223
=======
222
224
223
225
It's best to disable warnings to hide pointless warnings from the RDFLib library.
224
226
225
227
::
226
- ~$ python -m pytest tests --disable-warnings
227
228
229
+ python -m pytest tests --disable-warnings
228
230
229
231
Differences from LODE
230
232
=====================
233
+
231
234
- command line access
232
235
233
236
- you can use this on your own desktop so you don't need me to
@@ -268,6 +271,7 @@ Differences from LODE
268
271
269
272
Releases
270
273
========
274
+
271
275
pyLODE is under continual and constant development. The current developers have a roadmap for enhancements in mind,
272
276
which is given here, however, since this is an open source project, new developers may join the pyLODE dev community
273
277
and change/add development priorities.
@@ -309,22 +313,22 @@ Release Schedule
309
313
2.0, 18 Apr 2020, "Includes multiple profiles - OWP & vocpub"
310
314
1.0, 15 Dec 2019, "Initial working release"
311
315
312
-
313
316
License
314
317
=======
318
+
315
319
This code is licensed using the BSD 3-Clause licence. See the `LICENSE
316
320
file <LICENSE> `_ for the deed. Note *Citation * below though for
317
321
attribution.
318
322
319
-
320
323
Citation
321
324
========
325
+
322
326
If you use pyLODE, please leave the pyLODE logo with a hyperlink back
323
327
here in the top left of published HTML pages.
324
328
325
-
326
329
Collaboration
327
330
=============
331
+
328
332
The maintainers welcome any collaboration.
329
333
330
334
If you have suggestions, please email the contacts below or leave Issues
@@ -333,9 +337,9 @@ in this repository's `Issue tracker <https://github.com/rdflib/pyLODE/issues>`_.
333
337
But the very best thing you could do is create a Pull Request for us to
334
338
action!
335
339
336
-
337
340
Contacts
338
341
========
342
+
339
343
| *Author*:
340
344
| **Nicholas Car**
341
345
| *Data Architect*
0 commit comments