Closed VladimirAlexiev closed 5 years ago
Note to self:
2) is similar to http://www.michelepasin.org/support/ontospy-examples/index.html
4) is interesting but it doesn't show a lot of the information. Shot is below
I've added a --type
option in the latest ontospy (version 1.9.8)
ontospy gendocs
Ontospy v1.9.8
Usage: ontospy gendocs [OPTIONS] [SOURCE]...
GENDOCS: generate documentation in html or markdown format.
Options:
-o, --outputpath TEXT OUTPUT-PATH: where to save the visualization files
(default: home folder).
-x, --extra EXTRA-DATA: extract implicit types and predicates
using basic inference rules. Note: by default ontospy
extracts only classes/properties which are explictly
declared.
--type TEXT VIZ-TYPE: specify which viz type to use as an integer
(eg 1=single-page html, 2=multi-page etc..).
--title TEXT TITLE: custom title for the visualization
(default=graph uri).
--theme TEXT THEME: bootstrap css style for the html-multi-page
visualization (random=use a random theme).
--lib LIBRARY: choose an ontology from the local library.
--showtypes SHOW-TYPES: show the available visualization types.
--showthemes SHOW-THEMES: show the available css theme choices.
-h, --help Show this message and exit.
That shoud do it!
It's much better to control the output through a command-line option, rather than keyboard input. Guess I could do this, but it's a round-about way.