KR 2024 homework part 1
You will have to write a small program to convert/filter data to a suitable format for experimenting with a logical reasoner, and then write ca 10 nontrivial rules for answering questions. Finally, experiment with the reasoner on this data + rules and make a small presentation of your data, rules, successes and failures.
Not everything you try out needs to work: some failures are also interesting.
Data
Riina took the large datasets from https://yago-knowledge.org/ and prepared relatively small selections (all about something Estonian) from this data. The link to the files is here. The data is presented as plain triplets, no fancy encoding (except namespaces) are involved.
First, please download the files and explore them a bit. Then convert the files to the format our reasoner gk (or its web version http://logictools.org) can eat.
For example, the triplet
yago:Lake_Peipsi rdf:type yago:Lake
can be converted to
triple(yago:Lake_Peipsi,rdf:type,yago:Lake).
or with the quotation marks
triple("yago:Lake_Peipsi","rdf:type","yago:Lake").
The di