|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.open.kmi.watson.services.WatsonService
uk.ac.open.kmi.watson.services.OntologySearch
public class OntologySearch
Service for searching and inspecting semantic documents.
| 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 | |
|---|---|
OntologySearch()
create an instance of the service. |
|
| Method Summary | |
|---|---|
java.lang.String |
executeSPARQLQuery(java.lang.String ontoURI,
java.lang.String queryString)
Executes and returns the results (a XML String) of a SPARQL query on the given semantic document. |
int |
getAverageRating(java.lang.String ontoURI)
Returns the average rating of this ontology in Revyu.com |
java.lang.String[] |
getBestCoverageWithRestrictions(java.lang.String[] keywords,
int scopeModifier,
int entityTypeModifier,
int matchTechnique)
Semantic document search function that returns documents that not necessaraly match all the keywords. |
java.lang.String |
getCacheLocation(java.lang.String ontoURI)
return the location of the cached file |
java.lang.String[] |
getComments(java.lang.String ontoURI)
Returns the comments of the ontology element defined in this documents, if specified. |
java.lang.String |
getDLExpressivness(java.lang.String ontoURI)
Returns the DL Expressivness of the ontology |
java.lang.String[] |
getImportedBy(java.lang.String ontoUri)
Returns the set of URIs of the semantic document importing ontoURI |
java.lang.String[] |
getImports(java.lang.String ontoUri)
Returns the set of URIs of the imported semantic document |
java.lang.String[] |
getLabels(java.lang.String ontoURI)
Returns the labels of the ontology element defined in this documents, if specified. |
int |
getNumberOfReviews(java.lang.String ontoURI)
Returns the number of reviews entered about this ontology in Revyu.com |
long |
getNumberOfStatement(java.lang.String ontoUri)
Returns the size in Bytes of the ontology file |
java.lang.String |
getOMVFileLocation(java.lang.String ontoURI)
Returns the location of the OMV file describing the semantic document |
java.lang.String |
getRevyuURL(java.lang.String ontoURI)
Returns the URL of the considered ontology on Revyu.com |
java.lang.String[] |
getSemanticContentByKeywords(java.lang.String[] keywords)
Default search method: search in any entity, any scope, using EXACT_MATCH matcher |
java.lang.String[] |
getSemanticContentByKeywordsWithRestrictions(java.lang.String[] keywords,
int scopeModifier,
int entityTypeModifier,
int matchTechnique)
Main semantic document search function. |
java.lang.String[] |
getSemanticContentByKeywordsWithRestrictionsPaginated(java.lang.String[] keywords,
int scopeModifier,
int entityTypeModifier,
int matchTechnique,
int start,
int inc)
Same as getSemanticContentByKeywordsWithRestrictions, but returns only a part of the results, specified by the start and inc parameters. |
java.lang.String[] |
getSemanticContentLanguages(java.lang.String ontoURI)
Returns the set of languages employed by the semantic document |
java.lang.String[] |
getSemanticContentLocation(java.lang.String ontoURI)
Returns the set of URLs of the given semantic document |
long |
getSizeInBytes(java.lang.String ontoURI)
Returns the size in Bytes of the ontology file |
java.lang.String[] |
listClasses(java.lang.String ontoURI)
Returns the list of class URIs of the given ontology |
java.lang.String[] |
listIndividuals(java.lang.String ontoURI)
Returns the list of individual URIs of the given semantic document |
java.lang.String[] |
listProperties(java.lang.String ontoURI)
Returns the list of property URIs of the given ontology |
java.lang.String[] |
listSemanticContents(int start,
int stop)
This function returns a list of URI corresponding to all the documents collected by Watson |
void |
submitURI(java.lang.String uri)
Submit a URI to the crawler of Watson. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OntologySearch()
| Method Detail |
|---|
public java.lang.String[] getSemanticContentByKeywords(java.lang.String[] keywords)
public java.lang.String[] getSemanticContentByKeywordsWithRestrictions(java.lang.String[] keywords,
int scopeModifier,
int entityTypeModifier,
int matchTechnique)
keywords - the list of keywords to searchscopeModifier - where to search in entity, e.g.
WatsonService.LOCAL_NAME+WatsonService.LABELentityTypeModifier - in which entity to search, e.g.
WatsonService.CLASS+WatsonService.INDIVIDUALmatchTechnique - the match technique, e.g. WatsonService.EXACT_MATCH
public java.lang.String[] getSemanticContentByKeywordsWithRestrictionsPaginated(java.lang.String[] keywords,
int scopeModifier,
int entityTypeModifier,
int matchTechnique,
int start,
int inc)
keywords - the list of keywords to searchscopeModifier - where to search in entity, e.g.
WatsonService.LOCAL_NAME+WatsonService.LABELentityTypeModifier - in which entity to search, e.g.
WatsonService.CLASS+WatsonService.INDIVIDUALmatchTechnique - the match technique, e.g. WatsonService.EXACT_MATCHstart - the indice of the first element to be return in the total set of resultsinc - the number of results to return
public java.lang.String[] getBestCoverageWithRestrictions(java.lang.String[] keywords,
int scopeModifier,
int entityTypeModifier,
int matchTechnique)
keywords - the list of keywords to searchscopeModifier - where to search in entity, e.g.
WatsonService.LOCAL_NAME+WatsonService.LABELentityTypeModifier - in which entity to search, e.g.
WatsonService.CLASS+WatsonService.INDIVIDUALmatchTechnique - the match technique, e.g. WatsonService.EXACT_MATCH
public java.lang.String[] listSemanticContents(int start,
int stop)
start - the number of the first document to retrievestop - the number of the last document to retrieve
public java.lang.String[] getSemanticContentLocation(java.lang.String ontoURI)
ontoURI - the URI identifying the considered semantic document
public java.lang.String getCacheLocation(java.lang.String ontoURI)
ontoURI - the URI identifying the considered ontology
public long getSizeInBytes(java.lang.String ontoURI)
ontoURI - the URI identifying the considered ontology
public java.lang.String[] getSemanticContentLanguages(java.lang.String ontoURI)
ontoURI - the URI identifying the considered semantic document
public java.lang.String getDLExpressivness(java.lang.String ontoURI)
ontoURI - the URI identifying the considered ontology
public java.lang.String[] listClasses(java.lang.String ontoURI)
ontoURI - the identificator of the considered ontology
public java.lang.String[] listProperties(java.lang.String ontoURI)
ontoURI - the identificator of the considered ontology
public java.lang.String[] listIndividuals(java.lang.String ontoURI)
ontoURI - the identificator of the considered ontology
public java.lang.String[] getImports(java.lang.String ontoUri)
ontoURI - the URI identifying the considered semantic document
public java.lang.String[] getImportedBy(java.lang.String ontoUri)
ontoURI - the URI identifying the considered semantic document
public long getNumberOfStatement(java.lang.String ontoUri)
ontoURI - the URI identifying the considered ontology
public java.lang.String executeSPARQLQuery(java.lang.String ontoURI,
java.lang.String queryString)
ontoURI - the URI of the semantic document on which we want the query to
be executedqueryString - the string containing the SPARQL query
public int getNumberOfReviews(java.lang.String ontoURI)
ontoURI - the URI of the considered ontologypublic int getAverageRating(java.lang.String ontoURI)
ontoURI - the URI of the considered ontology
public java.lang.String getRevyuURL(java.lang.String ontoURI)
ontoURI - the URI of the considered ontology
public java.lang.String getOMVFileLocation(java.lang.String ontoURI)
the - URI of the considered ontologypublic void submitURI(java.lang.String uri)
uri - the URI to be crawled by Watson.public java.lang.String[] getLabels(java.lang.String ontoURI)
ontoURI - the URI of the ontology to consider
public java.lang.String[] getComments(java.lang.String ontoURI)
ontoURI - the URI of the ontology to consider
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||