When loading the same OWL ontology(Carcinogenesis) using two different methods (KnowledgeBase and TripleStore), they return different F1 score for the same concept.
Using the Carcinogenesis ontology with the same test concept:
((∃ hasStructure.⊤) ⊓ (∃ mouse_lymph.rdfs:Literal)) ⊔ (∃ salmonella.{true})
the results differ:
KnowledgeBase Results
- F1 Score: 0.746269
- Precision: 0.632911
- Recall: 0.909091
- True Positives: 50
- False Positives: 29
- Total Instances: 259
TripleStore Results
- F1 Score: 0.556962
- Precision: 0.916667
- Recall: 0.400000
- True Positives: 22
- False Positives: 2
- Total Instances: 127
Steps to Reproduce
- Load ontology using
KnowledgeBase from local OWL file
- Load same ontology using
TripleStore from SPARQL endpoint
- Execute materialization queries on TripleStore (optional)
- Query the same concept on both knowledge bases
- Compare F1 scores
Test script can be found here:
test_case_2.py
To download knowledge graphs
wget https://files.dice-research.org/projects/Ontolearn/KGs.zip -O ./KGs.zip && unzip KGs.zip
When loading the same OWL ontology(Carcinogenesis) using two different methods (KnowledgeBase and TripleStore), they return different F1 score for the same concept.
Using the Carcinogenesis ontology with the same test concept:
((∃ hasStructure.⊤) ⊓ (∃ mouse_lymph.rdfs:Literal)) ⊔ (∃ salmonella.{true})
the results differ:
KnowledgeBase Results
TripleStore Results
Steps to Reproduce
KnowledgeBasefrom local OWL fileTripleStorefrom SPARQL endpointTest script can be found here:
test_case_2.py
To download knowledge graphs
wget https://files.dice-research.org/projects/Ontolearn/KGs.zip -O ./KGs.zip && unzip KGs.zip