Class VocabularyMappingWrappingImpl
java.lang.Object
se.liu.ida.hefquin.base.data.mappings.impl.VocabularyMappingWrappingImpl
- All Implemented Interfaces:
VocabularyMapping
Temporary class. Will be removed once the rest of the internal API has been
changed to use
SchemaMapping and EntityMapping.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVocabularyMappingWrappingImpl(String rdfFile) VocabularyMappingWrappingImpl(Set<org.apache.jena.graph.Triple> triples) VocabularyMappingWrappingImpl(org.apache.jena.graph.Graph descriptionOfVM) -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks whether the vocabulary mapping only contains equivalence rules, e.g., owl:equivalentClass, owl:equivalentProperty, owl:sameAs Return true if the vocabulary mapping consists solely of equivalence rules, false otherwise.Applies this vocabulary mapping to the given solution mapping expressed in the local vocabulary and returns a resulting set of solution mappings expressed in the global vocabulary.Applies this vocabulary mapping to the given solution mapping expressed in the global vocabulary and returns a resulting set of solution mappings expressed in the local vocabulary.Applies this vocabulary mapping to the given triple pattern and returns the resulting combination of triple patterns, which may be a union of triple patterns (captured as aSPARQLUnionPattern) or just a single triple pattern (captured as aTriplePattern).
-
Field Details
-
em
-
sm
-
-
Constructor Details
-
VocabularyMappingWrappingImpl
-
VocabularyMappingWrappingImpl
-
VocabularyMappingWrappingImpl
-
VocabularyMappingWrappingImpl
public VocabularyMappingWrappingImpl(org.apache.jena.graph.Graph descriptionOfVM)
-
-
Method Details
-
translateTriplePattern
Description copied from interface:VocabularyMappingApplies this vocabulary mapping to the given triple pattern and returns the resulting combination of triple patterns, which may be a union of triple patterns (captured as aSPARQLUnionPattern) or just a single triple pattern (captured as aTriplePattern). If this mapping is not relevant for the given triple pattern (i.e., applying the mapping to the given triple pattern does not have any effect), then the result of this function is simply the given triple pattern itself.- Specified by:
translateTriplePatternin interfaceVocabularyMapping
-
translateSolutionMapping
Description copied from interface:VocabularyMappingApplies this vocabulary mapping to the given solution mapping expressed in the local vocabulary and returns a resulting set of solution mappings expressed in the global vocabulary. If this mapping is not relevant for the given solution mapping (i.e., applying the mapping to the given solution mapping does not have any effect), then the result of this function is a set containing only the given solution mapping.- Specified by:
translateSolutionMappingin interfaceVocabularyMapping
-
translateSolutionMappingFromGlobal
Description copied from interface:VocabularyMappingApplies this vocabulary mapping to the given solution mapping expressed in the global vocabulary and returns a resulting set of solution mappings expressed in the local vocabulary. If this mapping is not relevant for the given solution mapping (i.e., applying the mapping to the given solution mapping does not have any effect), then the result of this function is a set containing only the given solution mapping.- Specified by:
translateSolutionMappingFromGlobalin interfaceVocabularyMapping
-
isEquivalenceOnly
public boolean isEquivalenceOnly()Description copied from interface:VocabularyMappingChecks whether the vocabulary mapping only contains equivalence rules, e.g., owl:equivalentClass, owl:equivalentProperty, owl:sameAs Return true if the vocabulary mapping consists solely of equivalence rules, false otherwise.- Specified by:
isEquivalenceOnlyin interfaceVocabularyMapping
-