java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_eval.refinement.TypeRefiner
All Implemented Interfaces:
Refiner

public class TypeRefiner extends Object implements Refiner
The type refiner is capable of refining an ExecutionResult according to types. The implemented types are those of ResourceType.
Author:
Sven Hertling, Jan Portisch
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • type

      private ResourceType type
      The ResourceType as defined for the refinement.
    • subsumeProperties

      private boolean subsumeProperties
      Indicates whether all different property types like DATATYPE_PROPERTY, OBJECT_PROPERTY, ANNOTATION_PROPERTY, and RDF_PROPERTY shall be subsumed.
  • Constructor Details

    • TypeRefiner

      public TypeRefiner(ResourceType type, boolean subsumeProperties)
      Constructor
      Parameters:
      type - The type that shall be used for a refinement.
      subsumeProperties - Indicator whether property subsumption shall be enabled. Type subsumption is implemented in ResourceType and means that all different property types like DATATYPE_PROPERTY, OBJECT_PROPERTY, ANNOTATION_PROPERTY, and RDF_PROPERTY are subsumed.
    • TypeRefiner

      public TypeRefiner(ResourceType type)
      Constructor, subsumption of properties is assumed to be true by default.
      Parameters:
      type - The type that shall be used for a refinement.
  • Method Details

    • refine

      public ExecutionResult refine(ExecutionResult toBeRefined)
      Description copied from interface: Refiner
      Create a new refined ExecutionResult from an ExecutionResult. Examples are: only class matches, only non trivial matches etc.
      Specified by:
      refine in interface Refiner
      Parameters:
      toBeRefined - ExecutionResult which should be refined
      Returns:
      a new ExecutionResult which is refined
    • refineMapping

      public Alignment refineMapping(org.apache.jena.ontology.OntModel source, org.apache.jena.ontology.OntModel target, Alignment originalAlignment)
      Perform the actual refinement.
      Parameters:
      source - The source ontology model.
      target - The target ontology model.
      originalAlignment - The original mapping before the refinement action.
      Returns:
      The refined mapping.
    • getResourceType

      protected ResourceType getResourceType(org.apache.jena.rdf.model.Model model, String resourceURI)
      Obtain the resource type for a particular URI.
      Parameters:
      model - The model containing the resource.
      resourceURI - The URI of the resource for which the type shall be determined.
      Returns:
      The resource type.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object