Skip to content

Commit

Permalink
Merge pull request #206 from elevont/moduleDocu
Browse files Browse the repository at this point in the history
README: Update "Module use" docu [fix #185]
  • Loading branch information
nicholascar authored Jul 26, 2024
2 parents 45c5d1b + 37b3a5c commit bfb8cef
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,27 @@ Note: ``<ttl_directory>`` must be absolute
Module Use
^^^^^^^^^^

for OWL::
.. code-block:: python
from pylode import OntDoc
from pylode.profiles.ontpub import OntPub
# initialise
od = OntDoc(ontology="some-ontology-file.ttl")
od = OntPub(ontology="some-ontology-file.ttl")
# produce HTML
html = od.make_html()
# or save HTML to a file
od.make_html(destination="some-resulting-html-file.html")
for SKOS::
.. code-block:: python
from pylode.profiles.vocpub import VocPub
# initialise
od = VocPub(ontology="some-ontology-file.ttl")
# produce HTML
html = od.make_html()
Expand Down

0 comments on commit bfb8cef

Please sign in to comment.