Class TestCaseValidationService

java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_validation.TestCaseValidationService

public class TestCaseValidationService extends Object
This class analyzes a test case.
Author:
Jan Portisch
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • testCase

      private final TestCase testCase
      Test case on which the analysis was performed on.
    • semanticWebLibrary

      private final SemanticWebLibrary semanticWebLibrary
      Semantic web library to use like Jena or Owl API
    • isReferenceAlignmentParseable

      boolean isReferenceAlignmentParseable
      Indicator whether the reference alignment of the test case is parseable.
    • notFoundInSourceOntology

      HashSet<String> notFoundInSourceOntology
      Set of entities that were mentioned in the reference alignment but could not be found in the source ontology.
    • notFoundInTargetOntology

      HashSet<String> notFoundInTargetOntology
      Set of entities that were mentioned in the reference alignment but could not be found in the target ontology.
    • nSourceMappings

      HashSet<String> nSourceMappings
      Set of the source elements that were mapped more than once.
    • nTargetMappings

      HashSet<String> nTargetMappings
      Set of the target elements that were mapped more than once.
    • sourceClassesNotMapped

      HashSet<String> sourceClassesNotMapped
      Classes of the source ontology that do not appear in the reference mapping.
    • targetClassesNotMapped

      HashSet<String> targetClassesNotMapped
      Classes of the target ontology that do not appear in the reference mapping.
    • sourceOntologyValidationService

      OntologyValidationService<?> sourceOntologyValidationService
    • targetOntologyValidationService

      OntologyValidationService<?> targetOntologyValidationService
    • sourceObjectPropertiesNotMapped

      HashSet<String> sourceObjectPropertiesNotMapped
      Object properties of the source ontology that do not appear in the reference mapping.
    • targetObjectPropertiesNotMapped

      HashSet<String> targetObjectPropertiesNotMapped
      Object properties of the target ontology that do not appear in the reference mapping.
    • sourceDatatypePropertiesNotMapped

      HashSet<String> sourceDatatypePropertiesNotMapped
      Classes of the source ontology that do not appear in the reference mapping.
    • targetDatatypePropertiesNotMapped

      HashSet<String> targetDatatypePropertiesNotMapped
      Classes of the target ontology that do not appear in the reference mapping.
  • Constructor Details

    • TestCaseValidationService

      public TestCaseValidationService(TestCase testCase, SemanticWebLibrary semanticWebLibrary)
      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

      public String 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

      public void toCSV(File csvFile)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getTestCase

      public TestCase getTestCase()
    • isSourceOntologyParseable

      public boolean isSourceOntologyParseable()
    • isTargetOntologyParseable

      public boolean isTargetOntologyParseable()
    • isReferenceAlignmentParseable

      public boolean isReferenceAlignmentParseable()
    • getNotFoundInSourceOntology

      public HashSet<String> getNotFoundInSourceOntology()
    • getNotFoundInTargetOntology

      public HashSet<String> getNotFoundInTargetOntology()
    • isAllSourceReferenceEntitiesFound

      public boolean isAllSourceReferenceEntitiesFound()
    • isAllTargetReferenceEntitiesFound

      public boolean isAllTargetReferenceEntitiesFound()
    • getnSourceMappings

      public HashSet<String> getnSourceMappings()
    • getnTargetMappings

      public HashSet<String> getnTargetMappings()
    • getSourceClassesNotMapped

      public HashSet<String> getSourceClassesNotMapped()
    • getTargetClassesNotMapped

      public HashSet<String> getTargetClassesNotMapped()
    • getSourceObjectPropertiesNotMapped

      public HashSet<String> getSourceObjectPropertiesNotMapped()
    • getTargetObjectPropertiesNotMapped

      public HashSet<String> getTargetObjectPropertiesNotMapped()
    • getSourceDatatypePropertiesNotMapped

      public HashSet<String> getSourceDatatypePropertiesNotMapped()
    • getTargetDatatypePropertiesNotMapped

      public HashSet<String> getTargetDatatypePropertiesNotMapped()
    • getSourceOntologyValidationService

      public OntologyValidationService<?> getSourceOntologyValidationService()
    • getTargetOntologyValidationService

      public OntologyValidationService<?> getTargetOntologyValidationService()
    • close

      public void close()
    • analzye

      private void analzye()
      Perform an analysis on the level of a test case.