Class TestCaseValidationService
java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_validation.TestCaseValidationService
This class analyzes a test case.
- Author:
- Jan Portisch
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) booleanIndicator whether the reference alignment of the test case is parseable.private static final org.slf4j.LoggerSet of entities that were mentioned in the reference alignment but could not be found in the source ontology.Set of entities that were mentioned in the reference alignment but could not be found in the target ontology.Set of the source elements that were mapped more than once.Set of the target elements that were mapped more than once.private final SemanticWebLibrarySemantic web library to use like Jena or Owl APIClasses of the source ontology that do not appear in the reference mapping.Classes of the source ontology that do not appear in the reference mapping.Object properties of the source ontology that do not appear in the reference mapping.(package private) OntologyValidationService<?>Classes of the target ontology that do not appear in the reference mapping.Classes of the target ontology that do not appear in the reference mapping.Object properties of the target ontology that do not appear in the reference mapping.(package private) OntologyValidationService<?>private final TestCaseTest case on which the analysis was performed on. -
Constructor Summary
ConstructorsConstructorDescriptionTestCaseValidationService(TestCase testCase, SemanticWebLibrary semanticWebLibrary) Constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether the URIs named in the reference fileprivate voidanalzye()Perform an analysis on the level of a test case.voidclose()booleanbooleanbooleanIndicates whether all source and all target elements appear in the mapping.booleanIndicates whether all source and all target data type properties appear in the mapping.booleanChecks whether all classes, data type properties and object properties are fully mapped.booleanIndicates whether all source and all target ObjectProperties appear in the mapping.booleanisOK()Indicates whether the result object is free of errors.booleanbooleanIndicates whether the reference alignment is a 1-1 mapping or a 1-n mapping.booleanbooleanIndicates whether all source classes appear in the mapping.booleanIndicates whether all source data type properties appear in the mapping.booleanChecks whether all classes, data type properties and object properties of the source are fully mapped.booleanIndicates whether all source object properties appear in the mapping.booleanbooleanIndicates whether all target classes appear in the mapping.booleanIndicates whether all target data type properties appear in the mapping.booleanChecks whether all classes, data type properties and object properties of the target are fully mapped.booleanIndicates whether all target object properties appear in the mapping.booleanvoidtoString()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
testCase
Test case on which the analysis was performed on. -
semanticWebLibrary
Semantic web library to use like Jena or Owl API -
isReferenceAlignmentParseable
boolean isReferenceAlignmentParseableIndicator whether the reference alignment of the test case is parseable. -
notFoundInSourceOntology
Set of entities that were mentioned in the reference alignment but could not be found in the source ontology. -
notFoundInTargetOntology
Set of entities that were mentioned in the reference alignment but could not be found in the target ontology. -
nSourceMappings
Set of the source elements that were mapped more than once. -
nTargetMappings
Set of the target elements that were mapped more than once. -
sourceClassesNotMapped
Classes of the source ontology that do not appear in the reference mapping. -
targetClassesNotMapped
Classes of the target ontology that do not appear in the reference mapping. -
sourceOntologyValidationService
OntologyValidationService<?> sourceOntologyValidationService -
targetOntologyValidationService
OntologyValidationService<?> targetOntologyValidationService -
sourceObjectPropertiesNotMapped
Object properties of the source ontology that do not appear in the reference mapping. -
targetObjectPropertiesNotMapped
Object properties of the target ontology that do not appear in the reference mapping. -
sourceDatatypePropertiesNotMapped
Classes of the source ontology that do not appear in the reference mapping. -
targetDatatypePropertiesNotMapped
Classes of the target ontology that do not appear in the reference mapping.
-
-
Constructor Details
-
TestCaseValidationService
Constructor- Parameters:
testCase- Test case on which the analysis was performed on.semanticWebLibrary- The type of library to be used.
-
-
Method Details
-
allReferenceEntitiesFound
public boolean allReferenceEntitiesFound()Indicates whether the URIs named in the reference file- Returns:
- True if all reference entries found, else false.
-
isOK
public boolean isOK()Indicates whether the result object is free of errors.- Returns:
- True if error free, else false.
-
isOneToOneMapping
public boolean isOneToOneMapping()Indicates whether the reference alignment is a 1-1 mapping or a 1-n mapping.- Returns:
- True if one to one alignment.
-
isOneToNMapping
public boolean isOneToNMapping() -
getMappingType
-
isSourceClassesFullyMapped
public boolean isSourceClassesFullyMapped()Indicates whether all source classes appear in the mapping.- Returns:
- True if all source elements appear in the mapping, else false.
-
isTargetClassesFullyMapped
public boolean isTargetClassesFullyMapped()Indicates whether all target classes appear in the mapping.- Returns:
- True if all target elements appear in the mapping, else false.
-
isClassesFullyMapped
public boolean isClassesFullyMapped()Indicates whether all source and all target elements appear in the mapping.- Returns:
- True if all source and all target elements appear in the mapping, else false.
-
isSourceObjectPropertiesFullyMapped
public boolean isSourceObjectPropertiesFullyMapped()Indicates whether all source object properties appear in the mapping.- Returns:
- True if all source object properties appear in the mapping, else false.
-
isTargetObjectPropertiesFullyMapped
public boolean isTargetObjectPropertiesFullyMapped()Indicates whether all target object properties appear in the mapping.- Returns:
- True if all target object properties appear in the mapping, else false.
-
isObjectPropertiesFullyMapped
public boolean isObjectPropertiesFullyMapped()Indicates whether all source and all target ObjectProperties appear in the mapping.- Returns:
- True if all source and all target ObjectProperties appear in the mapping, else false.
-
isSourceDatatypePropertiesFullyMapped
public boolean isSourceDatatypePropertiesFullyMapped()Indicates whether all source data type properties appear in the mapping.- Returns:
- True if all source object properties appear in the mapping, else false.
-
isTargetDatatypePropertiesFullyMapped
public boolean isTargetDatatypePropertiesFullyMapped()Indicates whether all target data type properties appear in the mapping.- Returns:
- True if all target data type properties appear in the mapping, else false.
-
isDatatypePropertiesFullyMapped
public boolean isDatatypePropertiesFullyMapped()Indicates whether all source and all target data type properties appear in the mapping.- Returns:
- True if all source and all target data type properties appear in the mapping, else false.
-
isSourceFullyMapped
public boolean isSourceFullyMapped()Checks whether all classes, data type properties and object properties of the source are fully mapped.- Returns:
- True if all classes, data type properties and object properties of the source are fully mapped; else false.
-
isTargetFullyMapped
public boolean isTargetFullyMapped()Checks whether all classes, data type properties and object properties of the target are fully mapped.- Returns:
- True if all classes, data type properties and object properties of the target are fully mapped; else false.
-
isFullyMapped
public boolean isFullyMapped()Checks whether all classes, data type properties and object properties are fully mapped.- Returns:
- True if all classes, data type properties and object properties are fully mapped; else false.
-
toCSV
-
toString
-
getTestCase
-
isSourceOntologyParseable
public boolean isSourceOntologyParseable() -
isTargetOntologyParseable
public boolean isTargetOntologyParseable() -
isReferenceAlignmentParseable
public boolean isReferenceAlignmentParseable() -
getNotFoundInSourceOntology
-
getNotFoundInTargetOntology
-
isAllSourceReferenceEntitiesFound
public boolean isAllSourceReferenceEntitiesFound() -
isAllTargetReferenceEntitiesFound
public boolean isAllTargetReferenceEntitiesFound() -
getnSourceMappings
-
getnTargetMappings
-
getSourceClassesNotMapped
-
getTargetClassesNotMapped
-
getSourceObjectPropertiesNotMapped
-
getTargetObjectPropertiesNotMapped
-
getSourceDatatypePropertiesNotMapped
-
getTargetDatatypePropertiesNotMapped
-
getSourceOntologyValidationService
-
getTargetOntologyValidationService
-
close
public void close() -
analzye
private void analzye()Perform an analysis on the level of a test case.
-