From 92aeda398f715b41890962c2ec20eba274d559e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Dierick?= Date: Wed, 31 Jul 2024 16:07:11 +0200 Subject: [PATCH] update Python example snippet in readme to working example --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5faee4e..9555101 100644 --- a/README.md +++ b/README.md @@ -62,11 +62,14 @@ from ontogram import Ontogram # Second parameter tells Ontogram what RDF format the OWL ontology is in. ontogram = Ontogram('ontology.ttl', format='turtle') -# Generate a PNG diagram from the OWl ontology and write to disk as 'ontology.ttl.txt'. +# Generate a Plantuml text file from the OWl ontology. Will be written to disk as 'ontology.ttl.txt'. +ontogram.plantuml_file('ontology.ttl') + +# Generate a PNG diagram from the Plantuml file. Will be written to disk as 'ontology.ttl.txt.png'. ontogram.png_file('ontology.ttl.txt') # Same as above, but as an SVG diagram. -ontogram.svg_file('ontology.ttl.svg') +ontogram.svg_file('ontology.ttl.txt') ``` See the [examples](examples) directory for example outputs.