Skip to content

Commit 79acb15

Browse files
authored
Merge pull request #222 from elevont/readmeFixes
Readme fixes
2 parents c1ad9f3 + 3a5c58a commit 79acb15

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

README.rst

+21-17
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
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

68
pyLODE
79
******
10+
811
An OWL ontology documentation tool using Python, based on LODE.
912

1013
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
2730

2831
Contents
2932
========
33+
3034
1. `Quick Intro`_
3135
2. Use_
3236
3. `What pyLODE understands`_
@@ -40,9 +44,9 @@ Contents
4044
11. Collaboration_
4145
12. Contacts_
4246

43-
4447
Quick Intro
4548
===========
49+
4650
The Live OWL Documentation Environment tool
4751
(`LODE <https://github.com/essepuntato/LODE>`__) is a well-known (in
4852
Semantic Web circles) Java & XSLT-based tool used to generate
@@ -83,7 +87,7 @@ Command line arguments
8387
The BASH, Windows EXE and Python Script methods all use the same command line
8488
arguments:
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

133135
Module 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-
166167
What pyLODE understands
167168
=======================
168169

169170
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``)
171172
and properties (``rdf:Property`` & ``owl:ObjectProperty`` etc.).
172173

173174
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.
185186

186187
Notes on Agents
187188
---------------
189+
188190
pyLODE can understand both simple and complex Agent objects. You can use
189191
simple string properties like ``dc:contributor "Nicholas J. Car"`` too if
190192
you really must but better would be to take advantage of real Linked Data
191193
representation, e.g. complex Agent objects with web addresses, emails,
192194
affiliations, 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
207210
all 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-
220222
Testing
221223
=======
222224

223225
It'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

229231
Differences 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

269272
Releases
270273
========
274+
271275
pyLODE is under continual and constant development. The current developers have a roadmap for enhancements in mind,
272276
which is given here, however, since this is an open source project, new developers may join the pyLODE dev community
273277
and 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-
313316
License
314317
=======
318+
315319
This code is licensed using the BSD 3-Clause licence. See the `LICENSE
316320
file <LICENSE>`_ for the deed. Note *Citation* below though for
317321
attribution.
318322

319-
320323
Citation
321324
========
325+
322326
If you use pyLODE, please leave the pyLODE logo with a hyperlink back
323327
here in the top left of published HTML pages.
324328

325-
326329
Collaboration
327330
=============
331+
328332
The maintainers welcome any collaboration.
329333

330334
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>`_.
333337
But the very best thing you could do is create a Pull Request for us to
334338
action!
335339

336-
337340
Contacts
338341
========
342+
339343
| *Author*:
340344
| **Nicholas Car**
341345
| *Data Architect*

0 commit comments

Comments
 (0)