public class OntologyConnector extends Object implements Connector
This connector only maps case structures without compound attributes. All attributes must be Instance typed. For a complete example see Test 10.
| Constructor and Description |
|---|
OntologyConnector() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
If there was any modification to the ontology, the owl file is replaced with a new one that contains the changes.
|
void |
deleteCases(Collection<CBRCase> cases)
Deletes cases in the ontology.
|
String |
getCaseMainConcept() |
ArrayList<OntologyMapping> |
getDescriptionMappings() |
ArrayList<OntologyMapping> |
getJustOfSolutionMappings() |
OntologyInfo |
getMainOntologyInfo() |
ArrayList<OntologyMapping> |
getResultMappings() |
ArrayList<OntologyMapping> |
getSolutionMappings() |
ArrayList<OntologyInfo> |
getSubOntologiesInfo() |
void |
initFromXMLfile(URL file)
Initializes the connector from an XML config file.
|
List<CBRCase> |
retrieveAllCases()
Returns max cases without any special consideration
|
List<CBRCase> |
retrieveSomeCases(CaseBaseFilter filter)
UnImplemented.
|
void |
storeCases(Collection<CBRCase> cases)
Stores cases into the ontology.
|
public OntologyConnector()
public void initFromXMLfile(URL file) throws InitializingException
initFromXMLfile in interface Connectorfile - XMl file with the settingsInitializingException - Raised if the connector can not be initialezed.Connector.initFromXMLfile(URL)public List<CBRCase> retrieveAllCases()
ConnectorretrieveAllCases in interface Connectorpublic List<CBRCase> retrieveSomeCases(CaseBaseFilter filter)
retrieveSomeCases in interface ConnectorConnector.retrieveSomeCases(CaseBaseFilter)public void storeCases(Collection<CBRCase> cases)
storeCases in interface Connectorcases - List of casesConnector.storeCases(Collection)public void close()
close in interface ConnectorConnector.close()public void deleteCases(Collection<CBRCase> cases)
deleteCases in interface Connectorcases - List of casesConnector.deleteCases(Collection)public String getCaseMainConcept()
public ArrayList<OntologyMapping> getDescriptionMappings()
public ArrayList<OntologyMapping> getJustOfSolutionMappings()
public OntologyInfo getMainOntologyInfo()
public ArrayList<OntologyMapping> getResultMappings()
public ArrayList<OntologyMapping> getSolutionMappings()
public ArrayList<OntologyInfo> getSubOntologiesInfo()
Copyright © 2018 Group of Artificial Intelligence Applications (GAIA). All rights reserved.