|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectOntologyEntityFinder.OntologyEntityFinder
public class OntologyEntityFinder
Field Summary | |
---|---|
private java.util.Hashtable<java.lang.String,java.lang.String> |
alreadyCalc
Stores the relations to not recalculate them |
private OntologyDescription |
curOnto
Ontology currently being loaded |
private double |
lastResult
|
private java.util.LinkedList<OntologyDescription> |
listOnto
List of used ontologies |
private java.util.Hashtable<java.lang.String,java.lang.String> |
obviousRelations
Dictionary of the obvious associations between a word and an entity, to avoid useless computations |
Constructor Summary | |
---|---|
OntologyEntityFinder(boolean useWN)
Standard constructor |
Method Summary | |
---|---|
java.lang.String |
getEntity(java.lang.String str)
Associate a string (= Table name or table attribute) with an ontology entity |
java.lang.String |
getEntity(java.lang.String str,
java.lang.String context)
Associate a string (= Table name or table attribute) with an ontology entity |
double |
getLastResult()
|
private void |
loadEntity(java.util.Set<org.semanticweb.owlapi.model.OWLEntity> setEntity,
org.semanticweb.owlapi.model.OWLOntology ontology)
Add all the entities of the set to the current ontology |
void |
loadOntology(java.lang.String fileName,
java.lang.String url,
java.lang.String prefix)
Add an ontology the the list of ontology by parsing an ontology description given in a RDF/XML file |
void |
updateAlreadyCalc(java.util.Hashtable<java.lang.String,java.lang.String> table)
Update the set of calculated elements Can be used to take into account user input |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.LinkedList<OntologyDescription> listOnto
private OntologyDescription curOnto
private java.util.Hashtable<java.lang.String,java.lang.String> obviousRelations
private java.util.Hashtable<java.lang.String,java.lang.String> alreadyCalc
private double lastResult
Constructor Detail |
---|
public OntologyEntityFinder(boolean useWN)
useWN
- will use WordNet Similarity if true and only String similarity if falseMethod Detail |
---|
public double getLastResult()
public void updateAlreadyCalc(java.util.Hashtable<java.lang.String,java.lang.String> table)
table
- The table of relationsprivate void loadEntity(java.util.Set<org.semanticweb.owlapi.model.OWLEntity> setEntity, org.semanticweb.owlapi.model.OWLOntology ontology)
setEntity
- ontology
- public void loadOntology(java.lang.String fileName, java.lang.String url, java.lang.String prefix)
fileName
- path of the file with the ontology descriptionurl
- base url of the ontologyprefix
- prefix tu use for this ontologypublic java.lang.String getEntity(java.lang.String str, java.lang.String context)
str
- the input stringcontext
- the context string (= TableName + Attribute)
public java.lang.String getEntity(java.lang.String str)
str
- the input string
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |