1+ .. highlight :: bash
2+
13.. image :: https://rawcdn.githack.com/RDFLib/pyLODE/b1ff1b1e19262cdc21ee28c7362b1690ca18e30b/img/pyLODE-250.png
24
35.. image :: https://badge.fury.io/py/pyLODE.svg
46 :target: https://badge.fury.io/py/pyLODE
57
68pyLODE
79******
10+
811An OWL ontology documentation tool using Python, based on LODE.
912
1013In 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
2730
2831Contents
2932========
33+
30341. `Quick Intro `_
31352. Use _
32363. `What pyLODE understands `_
@@ -40,9 +44,9 @@ Contents
404411. Collaboration _
414512. Contacts _
4246
43-
4447Quick Intro
4548===========
49+
4650The Live OWL Documentation Environment tool
4751(`LODE <https://github.com/essepuntato/LODE >`__) is a well-known (in
4852Semantic Web circles) Java & XSLT-based tool used to generate
@@ -83,7 +87,7 @@ Command line arguments
8387The BASH, Windows EXE and Python Script methods all use the same command line
8488arguments:
8589
86- ::
90+ .. code-block :: text
8791
8892 usage: cli.py [-h] [-v] [-o OUTPUTFILE] [-c {true,false}] input
8993
@@ -118,22 +122,20 @@ match exactly the file ``examples/minimal.html``.
118122
119123* as a docker container
120124
121- build the docker image
122- ::
125+ build the docker image::
123126
124127 docker build -t pylode:latest .
125128
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::
128130
129131 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>
130132
131- Note: <ttl_directory> must be absolute
133+ Note: `` <ttl_directory> `` must be absolute
132134
133135Module Use
134136^^^^^^^^^^
135137
136- ::
138+ .. code-block :: python
137139
138140 from pylode import OntDoc
139141
@@ -162,12 +164,11 @@ You can also see rendered versions of these example files online too:
162164* `alternates.html <https://rdflib.dev/pyLODE/examples/ontdoc/alternates.html >`_
163165* `asgs.html <https://rdflib.dev/pyLODE/examples/ontdoc/asgs.html >`_
164166
165-
166167What pyLODE understands
167168=======================
168169
169170pyLODE 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 `` )
171172and properties (``rdf:Property `` & ``owl:ObjectProperty `` etc.).
172173
173174To see what properties for ontology, class and RDF property documentation
@@ -185,13 +186,14 @@ not really designed to document large ontologies containing class instances.
185186
186187Notes on Agents
187188---------------
189+
188190pyLODE can understand both simple and complex Agent objects. You can use
189191simple string properties like ``dc:contributor "Nicholas J. Car" `` too if
190192you really must but better would be to take advantage of real Linked Data
191193representation, e.g. complex Agent objects with web addresses, emails,
192194affiliations, ORCIDs and so on, e.g.:
193195
194- ::
196+ .. code-block :: turtle
195197
196198 <ontology_x>
197199 dct:creator [
@@ -202,6 +204,7 @@ affiliations, ORCIDs and so on, e.g.:
202204 sdo:url "https://surroundaustralia.com"^^xsd:anyURI ;
203205 ] ;
204206 ] ;
207+ .
205208
206209 See all the properties in ``rdf_elements.py:AGENT_PROPS `` for a list of
207210all the Agent properties pyLODE can handle.
@@ -216,18 +219,18 @@ it using `pip <https://pypi.org/project/pip/>`_ as normal:
216219
217220 pip install pylode
218221
219-
220222Testing
221223=======
222224
223225It's best to disable warnings to hide pointless warnings from the RDFLib library.
224226
225227::
226- ~$ python -m pytest tests --disable-warnings
227228
229+ python -m pytest tests --disable-warnings
228230
229231Differences from LODE
230232=====================
233+
231234- command line access
232235
233236 - you can use this on your own desktop so you don't need me to
@@ -268,6 +271,7 @@ Differences from LODE
268271
269272Releases
270273========
274+
271275pyLODE is under continual and constant development. The current developers have a roadmap for enhancements in mind,
272276which is given here, however, since this is an open source project, new developers may join the pyLODE dev community
273277and change/add development priorities.
@@ -309,22 +313,22 @@ Release Schedule
309313 2.0, 18 Apr 2020, "Includes multiple profiles - OWP & vocpub"
310314 1.0, 15 Dec 2019, "Initial working release"
311315
312-
313316License
314317=======
318+
315319This code is licensed using the BSD 3-Clause licence. See the `LICENSE
316320file <LICENSE> `_ for the deed. Note *Citation * below though for
317321attribution.
318322
319-
320323Citation
321324========
325+
322326If you use pyLODE, please leave the pyLODE logo with a hyperlink back
323327here in the top left of published HTML pages.
324328
325-
326329Collaboration
327330=============
331+
328332The maintainers welcome any collaboration.
329333
330334If 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>`_.
333337But the very best thing you could do is create a Pull Request for us to
334338action!
335339
336-
337340Contacts
338341========
342+
339343| *Author*:
340344| **Nicholas Car**
341345| *Data Architect*
0 commit comments