diff --git a/README.rst b/README.rst index 39cc676..be5d6e6 100644 --- a/README.rst +++ b/README.rst @@ -135,12 +135,27 @@ Note: ```` 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()