|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.uniroma2.art.coda.core.CODACore
public class CODACore
| Constructor Summary | |
|---|---|
CODACore()
Constructor of this class |
|
| Method Summary | |
|---|---|
void |
closeRDFModel()
Close the RDFModel |
java.util.HashMap<java.lang.String,IdentityResolverInterface> |
getIdentityResolverMap()
This method get the Identity Resolution Annotation Map |
java.util.HashMap<java.lang.String,ProjectionRulesDeciderInterface> |
getProjectionRulesDeciderMap()
This method get the Projection Rule Decider Annotation Map |
ProjectionRulesModel |
getProjRuleModel()
Get the Projection Rule Model |
java.util.HashMap<java.lang.String,ResourcesSmartSuggesterInterface> |
getResourcesSmartSuggesterMap()
This method get the Smart Suggestion Resources Map |
java.util.HashMap<java.lang.String,TriplesSmartSuggesterInterface> |
getTriplesSmartSuggesterMap()
This method get the Smart Suggestion Triple Map |
void |
initialize(org.apache.uima.jcas.JCas jcas,
java.io.File oSGiDir,
java.lang.String rootDir,
boolean subDirPresent,
java.lang.String projRulePath,
it.uniroma2.art.owlart.models.RDFModel rdfModel,
PreviousDecisions prevDecision)
Initialize the framework and should be called just after the constructor, before all other methods |
boolean |
isAnotherAnnotationPrsent()
This method return true if there is another UIMA annotation in the cas, false otherwise |
SuggOntologyCoda |
processNextAnnotation()
This method process the next UIMA annotation and return the hints from the five modules |
void |
setIdentityResolver(IdentityResolverInterface identityResolution)
This method set the Identity Resolution Annotation |
void |
setJCas(org.apache.uima.jcas.JCas jcas)
Set the UIMA CAS containing all the UIMA annotation |
void |
setMaxNumAnswerIR(int maxNumAnswerIR)
This method set the maximum number of hint that the Identity Resolution can return |
void |
setMaxNumAnswerPD(int maxNumAnswerPD)
This method set the maximum number of hint that the Projection Disambiguation can return |
void |
setMaxNumAnswerRSS(int maxNumAnswerRSS)
This method set the maximum number of hint that the Resources Smart Suggestion can return |
void |
setMaxNumAnswerTSS(int maxNumAnswerTSS)
This method set the maximum number of hint that the Triples Smart Suggestion can return |
void |
setProjectionRulesDecider(ProjectionRulesDeciderInterface projectionDisambiguation)
This method set the Projection Rules Decider |
void |
setRDFModel(it.uniroma2.art.owlart.models.RDFModel rdfModel)
Set the ontology model (RDFModel) |
void |
setResourcesSmartSuggester(ResourcesSmartSuggesterInterface resourcesSmartSuggester)
This method set the Smart Suggestion Resources |
void |
setTriplesSmartSuggester(TriplesSmartSuggesterInterface triplesSmartSuggester)
This method set the Smart Suggestion Triples |
void |
stopAndClose()
Close the rdfModel and stop Felix |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CODACore()
| Method Detail |
|---|
public void initialize(org.apache.uima.jcas.JCas jcas,
java.io.File oSGiDir,
java.lang.String rootDir,
boolean subDirPresent,
java.lang.String projRulePath,
it.uniroma2.art.owlart.models.RDFModel rdfModel,
PreviousDecisions prevDecision)
throws FelixInitializationException,
PRParserException
jcas - the CAS received form the UIMA AE or AAEoSGiDir - the directory in which felix will store the cache for its bundlesrootDir - the directory in which felix will search for the bundle using a particular search strategysubDirPresent - true if in the rootDir there are the subdirectories in which to look for directory
containing bundles, false otherwiseprojRulePath - the path of the Projection Rule filerdfModel - the ontology model created with a particular repository managerprevDecision - is the structure containing the previous decision taken by the tool using the suggestions
provided by CODA
FelixInitializationException
PRParserException
public void stopAndClose()
throws it.uniroma2.art.owlart.exceptions.ModelUpdateException
it.uniroma2.art.owlart.exceptions.ModelUpdateExceptionpublic void setJCas(org.apache.uima.jcas.JCas jcas)
jcas - the jcas that will be setpublic void setRDFModel(it.uniroma2.art.owlart.models.RDFModel rdfModel)
rdfModel - the ontology model
public void closeRDFModel()
throws it.uniroma2.art.owlart.exceptions.ModelUpdateException
it.uniroma2.art.owlart.exceptions.ModelUpdateExceptionpublic ProjectionRulesModel getProjRuleModel()
public java.util.HashMap<java.lang.String,ProjectionRulesDeciderInterface> getProjectionRulesDeciderMap()
public java.util.HashMap<java.lang.String,IdentityResolverInterface> getIdentityResolverMap()
public java.util.HashMap<java.lang.String,ResourcesSmartSuggesterInterface> getResourcesSmartSuggesterMap()
public java.util.HashMap<java.lang.String,TriplesSmartSuggesterInterface> getTriplesSmartSuggesterMap()
public void setProjectionRulesDecider(ProjectionRulesDeciderInterface projectionDisambiguation)
projectionDisambiguation - the Projection Disambiguation Annotationpublic void setIdentityResolver(IdentityResolverInterface identityResolution)
identityResolution - the Identity Resolution Annotationpublic void setResourcesSmartSuggester(ResourcesSmartSuggesterInterface resourcesSmartSuggester)
resourcesSmartSuggester - the Smart Suggestion Resourcespublic void setTriplesSmartSuggester(TriplesSmartSuggesterInterface triplesSmartSuggester)
triplesSmartSuggester - the Smart Suggestion Resourcespublic boolean isAnotherAnnotationPrsent()
public void setMaxNumAnswerPD(int maxNumAnswerPD)
maxNumAnswerPD - the maximum number of hint that the Projection Disambiguation can returnpublic void setMaxNumAnswerIR(int maxNumAnswerIR)
maxNumAnswerIR - the maximum number of hint that the Identity Resolution can returnpublic void setMaxNumAnswerRSS(int maxNumAnswerRSS)
maxNumAnswerRSS - the maximum number of hint that the Resources Smart Suggestion can returnpublic void setMaxNumAnswerTSS(int maxNumAnswerTSS)
maxNumAnswerTSS - the maximum number of hint that the Triples Smart Suggestion can return
public SuggOntologyCoda processNextAnnotation()
throws it.uniroma2.art.owlart.exceptions.UnsupportedQueryLanguageException,
it.uniroma2.art.owlart.exceptions.ModelAccessException,
it.uniroma2.art.owlart.query.MalformedQueryException,
it.uniroma2.art.owlart.exceptions.QueryEvaluationException,
CODAComponentNotSetException
it.uniroma2.art.owlart.exceptions.QueryEvaluationException
it.uniroma2.art.owlart.query.MalformedQueryException
it.uniroma2.art.owlart.exceptions.ModelAccessException
it.uniroma2.art.owlart.exceptions.UnsupportedQueryLanguageException
CODAComponentNotSetException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||