Interface SchemaMapping

All Known Implementing Classes:
SchemaMappingImpl

public interface SchemaMapping
Maps from the global schema (considered RDF vocabularies) to a local schema of some data source(s) / federation member(s).
  • Method Summary

    Modifier and Type
    Method
    Description
    Applies the inverse of this schema mapping to the given solution mapping, which is assumed to use the local schema for the vocabulary terms that it binds to its query variables.
    Applies this schema mapping to the given solution mapping, which is assumed to use the global schema for the vocabulary terms that it binds to its query variables.
    Applies this mapping to the given triple pattern and returns the resulting graph pattern.
    boolean
    Checks whether the schema mapping only contains equivalence rules, e.g., owl:equivalentClass, owl:equivalentProperty Return true if the schema mapping consists solely of equivalence rules, false otherwise.
  • Method Details

    • applyToTriplePattern

      SPARQLGraphPattern applyToTriplePattern(TriplePattern tp)
      Applies this mapping to the given triple pattern and returns the resulting graph pattern. If this mapping is not relevant for the the given triple pattern (i.e., applying the mapping to the triple pattern does not have any effect), then the result of this function is simply the given triple pattern itself.
    • applyToSolutionMapping

      Set<SolutionMapping> applyToSolutionMapping(SolutionMapping solmap)
      Applies this schema mapping to the given solution mapping, which is assumed to use the global schema for the vocabulary terms that it binds to its query variables. If this schema mapping is not relevant for anything mentioned in the given solution mapping (i.e., applying this schema mapping to the solution mapping does not have any effect), then the result of this function is simply a singleton set that contains the given solution mapping without any changes.
    • applyInverseToSolutionMapping

      Set<SolutionMapping> applyInverseToSolutionMapping(SolutionMapping solmap)
      Applies the inverse of this schema mapping to the given solution mapping, which is assumed to use the local schema for the vocabulary terms that it binds to its query variables. If this schema mapping is not relevant for anything mentioned in the given solution mapping (i.e., applying the inverse of this schema mapping to the solution mapping does not have any effect), then the result of this function is simply a singleton set that contains the given solution mapping without any changes.
    • isEquivalenceOnly

      boolean isEquivalenceOnly()
      Checks whether the schema mapping only contains equivalence rules, e.g., owl:equivalentClass, owl:equivalentProperty Return true if the schema mapping consists solely of equivalence rules, false otherwise.