compared with
Current by Reneta Popova
on May 08, 2013 10:30.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (9)

View Page History
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 making 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 when searching 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 to store all the RDF data that aligns the ontology to PROTON.
* Put this file in a dedicated folder.

*Example:*

{code} {noformat}
<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}
<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> .
{noformat}

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

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

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

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