Currently, the add-vocabulary tool only indexes a document for each class and for each property (and for each datatype, in a slightly broken way).
It should also add a document to the index for the vocabulary itself, of type vocabulary.
Unlike add-vocabulary, the index-lov tool already does this, by using the nicely curated LOV metadata.
In the case of add-vocabulary, we have to be more careful because any number of owl:Ontology instances could be floating around in the input graph (other imported ontologies, a directory of versions of this ontology, and so on), and we need to be careful to pick only the “real” one. Perhaps its URI can be provided as a command-line option, to override the default choice.
Currently, the
add-vocabulary
tool only indexes a document for each class and for each property (and for each datatype, in a slightly broken way).It should also add a document to the index for the vocabulary itself, of type
vocabulary
.Unlike
add-vocabulary
, theindex-lov
tool already does this, by using the nicely curated LOV metadata.In the case of
add-vocabulary
, we have to be more careful because any number ofowl:Ontology
instances could be floating around in the input graph (other imported ontologies, a directory of versions of this ontology, and so on), and we need to be careful to pick only the “real” one. Perhaps its URI can be provided as a command-line option, to override the default choice.