uk.ac.open.kmi.watson.services
Class TermRelationDiscovery

java.lang.Object
  extended by uk.ac.open.kmi.watson.services.WatsonService
      extended by uk.ac.open.kmi.watson.services.TermRelationDiscovery

public class TermRelationDiscovery
extends WatsonService

hummmm... this is not meant to be public yet...


Field Summary
 
Fields inherited from class uk.ac.open.kmi.watson.services.WatsonService
CLASS, COMMENT, EXACT_MATCH, INDIVIDUAL, LABEL, LITERAL, LOCAL_NAME, NS, PROPERTY, TOKEN_MATCH
 
Constructor Summary
TermRelationDiscovery()
           
 
Method Summary
 java.lang.String[][] findRelations(java.lang.String term1, java.lang.String term2)
          Find ontological relations between the two terms.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TermRelationDiscovery

public TermRelationDiscovery()
Method Detail

findRelations

public java.lang.String[][] findRelations(java.lang.String term1,
                                          java.lang.String term2)
Find ontological relations between the two terms. Retrieve entities mathching the terms and a look at the ontology to find relations between.

Returns:
an array of String, the first 3 colums correspond to the triples (subjURI, predURI, objectURI) and the last one to the URI of the semantic document in which the relation have been found