View Source

The resources in the KIM default IE pipeline depend on the KIM default ontology - the [PROTON ontology|http://proton.semanticweb.org/].

For mapping an ontology to PROTON you can use either equivalence, or subsumption mechanisms.

(/) Generally subsumption is preferred.

h3. Subclass the three major classes from the new ontology to the corresponding three major classes in PROTON

This means, for example, that when you make a query to the knowledge base about People from PROTON, the result will be both people from the new ontology and PROTON. On the other hand, if you search for people from the new ontology, the result will be only from the new ontology.

* Create a file called *newOntology_proton.nt* in which you will store all the RDF data that aligns the ontology to PROTON.
* Put this file in a dedicated folder.

*Example:*

{code}
<http://example.org/ontology/Place> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://proton.semanticweb.org/2006/05/protont#Location> .
<http://example.org/ontology/Person> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://proton.semanticweb.org/2006/05/protont#Person> .
<http://example.org/ontology/Organisation> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://proton.semanticweb.org/2006/05/protont#Organization> .
{code}

* Include it in the import section of the *Owlim config* file.

h3. Set the visibility of classes

KIM has a mechanism to control the visibility of different taxonomy parts in the WEB UI. It is done through a property.

To make the new classes visible in the Web UI, add statements such as:

{code}
<http://example.org/ontology/Philosopher> <http://www.ontotext.com/kim/2006/05/kimso#visibilityLevel1> "" .
{code}

Append those statements to *<KIM_HOME>/context/default/kb/visibility.nt*.

(!) There is not much sense to make visible the classes that can be subclassed to PROTON. Such as {{Philosopher}} is a {{Person}}. They can be queried by their parents. Other classes that can not be directly mapped, and are subclassed to {{protons:Entity}}, should be displayed, to be able to choose them, when making queries.