Question Answering System for Chess Games
A question answering system for chess games. The engine will try to answer all chess questions, if the information can be found in a PGN file. Therefore, the questions must include players, events, locations, (annual) dates, ECO, openings, ELO ratings, results and/or moves. In the benchmark you find some sample questions.
You need:
sh
$ cd src/main/database
$ docker-compose up
The next commands must be executed in the folder with the pom.xml. If you already loaded data to the database just start the engine with the 4th command. At the first launch perform the following steps.
$ mvn spring-boot:run -Drun.arguments="pgn"
$ mvn spring-boot:run -Drun.arguments="eco"
Virtuoso is not stable when running the mapping process.
It crashes randomly. Therefore, you can manually split the mapping process.
If Virtuoso crashes, first load the mapping you already have with step 3. Then start again at the point where the program stopped.
For example, if it stopped in the ECO group starting with the letter ‘A’, start again with:
$ mvn spring-boot:run -Drun.arguments="eco,A"
You can choose a letter from A to E. You have to start the process for every letter after the crash. So, if it crashes at ‘C’, you have to manually start ‘C’, ‘D’ and ‘E’. Don’t forget to load (Step 3) at first after the crash.
$ mvn spring-boot:run -Drun.arguments="load"
$ mvn spring-boot:run
The conversion from PGN to RDF and the mapping of the chess openings to the chess games take some time.
sh
PREFIX ex: <http://example.com>
PREFIX res: <http://example.com/res></http:>
PREFIX prop: <http://example.com/prop></http:>
PREFIX cres: <http://pcai042.informatik.uni-leipzig.de/~swp13-sc/ChessOntology/Resources></http:>
PREFIX cont: <http://pcai042.informatik.uni-leipzig.de/~swp13-sc/ChessOntology#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PgnViewerJS by mliebelt
The PGN viewer is embedded by links from cdn.rawgit.com:
If you want to include the files directly into the Semantic Chess project, go to http://mliebelt.github.io/PgnViewerJS/docu/index.html
and download the current version. After that insert the unzipped directory to
/semanticchess/src/main/webapp/static
and uncomment line 13 and 35 in
/semanticchess/src/main/webapp/public/index.html