The main file to run is retrieve_facts which is run as ./retrieve_facts facts_data
- A folder facts_data which contains (see example folder):
- The positive examples for a learning problem stored as a list under a file named
positives.txt, see the example folder - The negative examples for a learning problem stored as a list under a file named
negatives.txt - The query corresponding to the learned class expression stored under a file
query.txt - The SPARQL endpoint where the knowledge base is loaded, stored under a file
sparql_endpoint.txt
./retrieve_facts facts_data which produces two files under the current directory: positive_results.csv and negative_results.csv which contain the triples we are looking for.
This file is optional. It is only used to convert a class expression as string into a SPARQL query. This is useful if you want to test your explainer on other class expressions. However, you would need to have Ontolearn and OWLAPy installed, and modify the sparql_endpoint to yours.