Demo #
The demo project illustrates several features of the ProCAKE framework in two exemplary domains:
- The cars domain contains a data-set about used vehicles for sale. The casebase consists of structured, attribute-value based cases. The domain model, the casebase, and the specified similarity model for the cars domain can be found in the demo project at
src/resources/domains/cars/
. - The recipes domain contains a data-set about cooking instructions. The demo project contains two recipes casebases: In the first casebase, the recipes are represented as attribute-value pairs. The casebase, the similarity model, and the domain model can be found at
src/resources/domains/recipes/objects/
. In the second casebase, the recipes are represented as workflows. The corresponding models and the casebase can be found atsrc/resources/domains/recipes/workflows/
.
There are different exemplary demos in this project:
- Class
GettingStartedDemo
: Demonstrates the basic usage of the ProCAKE framework - Package
cars
: Provides a demo classCarsRetrievalDemo
demonstrating the attribute-value based retrieval on the cars casebase- Package
ontology
: Provides a demo classCarsOntologyRetrievalDemo
demonstrating the OWL integration using theManufacturer
taxonomy converted to an ontology which then is used as aURIClass
in conjunction with aInstanceOntologyOrderPredicate
in the model. Covers the taxonomy to ontology converter, ontology loading, linking it to aURIClass
, defining instances of theURIClass
in the casebase, adding a path based similiarity measure for theURIClass
and a retrieval showing the similarity calculation.
- Package
- Package
recipes
: Demonstrates a retrieval on the recipes casebase- Package
objects
: Provides a demo classRecipesRetrievalDemo
demonstrating an attribute-value based retrieval on the recipes casebase - Package
workflows
: Demonstrates a process-oriented retrieval on the recipes casebase- Package
info
: Provides classes to explore the underlying domain model - Package
gui
: Demonstrates graph-based retrieval with a graphical user interface - Package
cli
: Provides two demo classes (CLIDemoMetaDataQuery
andCLIDemoGraphQuery
) demonstrating the retrieval with an attribute-value query and a graph-based query
- Package
- Package
Setup for IntelliJ IDEA IDE #
Current development is done with IntelliJ IDEA on Windows 10. Since this project is based on the ProCAKE framework, both projects need to be stored in the same directory. To import the project please follow the following steps:
- Make sure that you have a current Java version installed. The ProCAKE framework expects Java 11.
- Before you start IntelliJ, download and install Git for Windows from https://git-scm.com/
- Check out the ProCAKE project from https://gitlab.rlp.net/procake/procake-framework.git. In IntelliJ IDEA select
VCS | Checkout from Version Control | Git
. Close the project afterwards. - Check out the demo project from https://gitlab.rlp.net/procake/procake-demos.git into the same parent folder in which also the ProCAKE framework is stored. Close the project afterwards.
- In IntelliJ, import the demo project by selecting
File | New | Project from Existing Sources...
. Selectimport from external model
andMaven
and finish the dialog. - Finally, the ProCAKE framework has to be added as submodule to the demo project. Navigate to
File | Project Structure...
, selectModules
and+ | Import Module
, and select the demo project. Please consider that it is also possible to add the demo project as submodule to the ProCAKE framework after the checkouts.