|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectOntologyEntityFinder.OntologyDescription
public class OntologyDescription
Class describing an ontology
Field Summary | |
---|---|
private java.util.HashSet<Entity> |
entities
the set of entities that compose the ontology |
private java.lang.String |
lastResult
|
private java.lang.String |
prefix
The prefix to give to this ontology |
private java.lang.String |
url
The base url of the ontology |
Constructor Summary | |
---|---|
OntologyDescription(java.lang.String u,
java.lang.String p)
Standard constructor |
Method Summary | |
---|---|
Entity |
addEntities(java.lang.String name)
Add an entity to the ontology |
double |
compareWord(java.util.LinkedList<java.lang.String> setStr)
Compare a set of words with all the entities of the ontology and return the highest result and set lastResulst to the entity which provided this result |
Entity |
getEntity(java.lang.String name)
|
java.lang.String |
getLastResult()
|
java.lang.String |
getPrefix()
|
java.lang.String |
getUrl()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.lang.String url
private java.lang.String prefix
private java.util.HashSet<Entity> entities
private java.lang.String lastResult
Constructor Detail |
---|
public OntologyDescription(java.lang.String u, java.lang.String p)
u
- the url of the ontologyp
- the prefix to use for this ontologyMethod Detail |
---|
public java.lang.String getUrl()
public java.lang.String getPrefix()
public java.lang.String getLastResult()
public Entity addEntities(java.lang.String name)
name
- name of the entity
public Entity getEntity(java.lang.String name)
name
- the name of the entity
public double compareWord(java.util.LinkedList<java.lang.String> setStr)
setStr
- the word to compare
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |