public class Test10 extends Object implements StandardCBRApplication
This test shows an example where a case is composed by a description and a solution following the mapping:

<OntologyConfiguration>
<MainOntology>
<URL>http://gaia.fdi.ucm.es/ontologies/vacation.owl</URL>
<LocalCopy>es/ucm/fdi/gaia/jcolibri/test/test10/vacation.owl</LocalCopy>
</MainOntology>
<!-- There are not subontologies -->
<CaseMainConcept>VACATION_CASE</CaseMainConcept>
<DescriptionClassName>es.ucm.fdi.gaia.jcolibri.test.test10.TravelDescription</DescriptionClassName>
<DescriptionMappings>
<Map>
<Property>HAS-DESTINATION</Property>
<Concept>DESTINATION</Concept>
<Attribute>Destination</Attribute>
</Map>
<Map>
<Property>HAS-CATEGORY</Property>
<Concept>CATEGORY</Concept>
<Attribute>Accommodation</Attribute>
</Map>
<Map>
<Property>HAS-PERSONS</Property>
<Concept>PERSONS</Concept>
<Attribute>NumberOfPersons</Attribute>
</Map>
<Map>
<Property>HAS-TRANSPORTATION</Property>
<Concept>TRANSPORTATION</Concept>
<Attribute>Transportation</Attribute>
</Map>
<Map>
<Property>HAS-SEASON</Property>
<Concept>SEASON</Concept>
<Attribute>Season</Attribute>
</Map>
<Map>
<Property>HAS-HOLIDAY_TYPE</Property>
<Concept>HOLIDAY_TYPE</Concept>
<Attribute>HolidayType</Attribute>
</Map>
<Map>
<Property>HAS-DURATION</Property>
<Concept>DURATION</Concept>
<Attribute>Duration</Attribute>
</Map>
</DescriptionMappings>
<SolutionClassName>es.ucm.fdi.gaia.jcolibri.test.test10.TravelSolution</SolutionClassName>
<SolutionMappings>
<Map>
<Property>HAS-PRICE</Property>
<Concept>PRICE</Concept>
<Attribute>price</Attribute>
</Map>
</SolutionMappings>
</OntologyConfiguration>
The source code shows how to use the connector and then an complete CBR cycle using the similarity functions implemented in the package: jcolibri.method.retrieve.NNretrieval.similarity.local.ontology

jcolibri.connector.OntologyConnector,
jcolibri.method.retrieve.NNretrieval.similarity.local.ontology,
TravelDescription,
TravelSolution| Constructor and Description |
|---|
Test10() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure() |
void |
cycle(CBRQuery query) |
static void |
main(String[] args)
Tests the OntologyConnector.
|
void |
postCycle() |
CBRCaseBase |
preCycle() |
public Test10()
public void configure() throws ExecutionException
configure in interface StandardCBRApplicationExecutionExceptionpublic CBRCaseBase preCycle() throws ExecutionException
preCycle in interface StandardCBRApplicationExecutionExceptionpublic void cycle(CBRQuery query) throws ExecutionException
cycle in interface StandardCBRApplicationExecutionExceptionpublic void postCycle() throws ExecutionException
postCycle in interface StandardCBRApplicationExecutionExceptionpublic static void main(String[] args)
Copyright © 2018 Group of Artificial Intelligence Applications (GAIA). All rights reserved.