Skip to content

Latest commit

 

History

History
76 lines (54 loc) · 3.02 KB

README.md

File metadata and controls

76 lines (54 loc) · 3.02 KB

Ontology testing in XD

This repository provides material and examples for the Knowledge Engineering class class on ontology testing in eXtreme Design methodology, that will take place on December 14th.

Video Tutorial and Slides

Links

Assignment

Sources

Screenshot 2021-12-10 at 02 46 04

Tasks

  • Translate the competency question to a SPARQL query.
  • Create a toy dataset for the competency question verification test based on the requirement.
  • Create an expected result file for the competency question verification test based on the requirement.
  • Construct a competency question verification test based on the requirement, including the above components.
  • Create an inference verification test case on a requirement of your choosing.
  • Create an error provocation test case.
  • Create a toy dataset for the error provocation test.

Competency question verification test

@prefix owlunit: <https://w3id.org/OWLunit/ontology/> .

tc:xx a owlunit:CompetencyQuestionVerification ;
  owlunit:hasCompetencyQuestion " " ;
 	owlunit:hasSPARQLUnitTest " " ;
	owlunit:hasInputData td:xx ;
	owlunit:hasInputTestDataCategory owlunit:ToyDataset ;
	owlunit:hasExpectedResult " ";
	owlunit:testsOntology xx: .

Inference verification test

@prefix owlunit: <https://w3id.org/OWLunit/ontology/> . 

tc:xx a owlunit:InferenceVerification ;
	owlunit:hasInputData ex:xx ;
	owlunit:hasSPARQLUnitTest " " ;
	owlunit:hasReasoner owlunit:HermiT ;
	owlunit:hasExpectedResult true/false ;
 	owlunit:testsOntology xx: .

Error provocation test

@prefix owlunit: <https://w3id.org/OWLunit/ontology/> . 

tc:xx a owlunit:ErrorProvocation ;
	owlunit:hasInputData td:xx ;
 	owlunit:testsOntology xx: .