Use Case
This project is an extension of the Scene2Model modelling tool.
The aim of this project is to automatically provide a list of cars for a specific type of character (business man, worker etc.). The cars are selected according to the preferences of the selected character. The preferences are implemented in a turtle file and are assigned to every character type.
The following functionalities have been added
- Created an AdoScript file which shows all the possible cars to the selected character
- Created an AdoScript file which shows all the cars which coincide with the characters preference
- Created a web service which is needed to perform different SPARQL queries
- Added different new fields in the modeling tool, for increasing the semantic
This project requires understanding
- of metamodelling
- of the script language AdoScript
- of the Resource Description Framework (RDF) and the SPARQL quer language
- of how to create and use web services
Experiment
We have the character which has preferences and based on these preferences he will get a list of cars where he can choose from.
Step 1: Create a new model which connects a character with a car
Step 2: Open the Java Project and start the server
Step 3: Go back to the Modelling tool and choose “List of preferred cars” from the drop down entry. This will run an AdoScript file, which makes a GET request to the web API and returns a string of preferred cars.
Step 4: Now an infobox will appear where you can select your preferred sub type. Notice that only those sub types will appear which coincide with the characters preference. After choosing a sub type in this example the sub type Roadster another inofbox appears with the concide car models.
Step 5a: Now if the car is available the car icon will change to the shape of the selected sub type and additionally also some fields of the notebook of the car gets changed.
Step 5b: Now if the car is not available the car will be highlighted with a red circled exclamation mark and the field “Hint Message” of the cars notebook gets changed