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

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

public class SearchOntologySnippet
extends WatsonService

TEMPORARY SERVICE. Built for the integration with Search point. Find with best coverage the ontologies matching the keywords and gives terms related to the matching entities.

Version:
april 2008
Author:
mda99

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
SearchOntologySnippet()
           
 
Method Summary
 java.lang.String[][] searchSemanticContentWithSnippet(java.lang.String[] keywords)
          Return a set of ontologies matching the keywords in parameter and a snippet made of related terms
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchOntologySnippet

public SearchOntologySnippet()
Method Detail

searchSemanticContentWithSnippet

public java.lang.String[][] searchSemanticContentWithSnippet(java.lang.String[] keywords)
Return a set of ontologies matching the keywords in parameter and a snippet made of related terms

Parameters:
keywords - the set of keywords to match
Returns:
each row of the array is made of 0- the ontology uri, 1- the snippet