cygri / vocidex

Search over RDF schemas and OWL ontologies
MIT License
11 stars 6 forks source link

Create a document in the index for the owl:Ontology in add-vocabulary #2

Open cygri opened 11 years ago

cygri commented 11 years ago

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.