Class TypeRefiner
java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_eval.refinement.TypeRefiner
- All Implemented Interfaces:
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 Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private boolean
Indicates whether all different property types like DATATYPE_PROPERTY, OBJECT_PROPERTY, ANNOTATION_PROPERTY, and RDF_PROPERTY shall be subsumed.private ResourceType
The ResourceType as defined for the refinement. -
Constructor Summary
ConstructorDescriptionTypeRefiner
(ResourceType type) Constructor, subsumption of properties is assumed to be true by default.TypeRefiner
(ResourceType type, boolean subsumeProperties) Constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
protected ResourceType
getResourceType
(org.apache.jena.rdf.model.Model model, String resourceURI) Obtain the resource type for a particular URI.int
hashCode()
refine
(ExecutionResult toBeRefined) Create a new refined ExecutionResult from an ExecutionResult.refineMapping
(org.apache.jena.ontology.OntModel source, org.apache.jena.ontology.OntModel target, Alignment originalAlignment) Perform the actual refinement.toString()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
type
The ResourceType as defined for the refinement. -
subsumeProperties
private boolean subsumePropertiesIndicates whether all different property types like DATATYPE_PROPERTY, OBJECT_PROPERTY, ANNOTATION_PROPERTY, and RDF_PROPERTY shall be subsumed.
-
-
Constructor Details
-
TypeRefiner
Constructor- Parameters:
type
- The type that shall be used for a refinement.subsumeProperties
- Indicator whether property subsumption shall be enabled. Type subsumption is implemented inResourceType
and means that all different property types like DATATYPE_PROPERTY, OBJECT_PROPERTY, ANNOTATION_PROPERTY, and RDF_PROPERTY are subsumed.
-
TypeRefiner
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
Description copied from interface:Refiner
Create a new refined ExecutionResult from an ExecutionResult. Examples are: only class matches, only non trivial matches etc. -
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
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() -
equals
-
toString
-