Interface PropertyNameMapping

All Known Implementing Classes:
CompositePropertyNameMappingImpl, PropertyNameMappingImpl_AllToURIs, PropertyNameMappingImpl_RegexMatchToURIs, PropertyNameMappingImpl_SingleMatchToURI

public interface PropertyNameMapping
This interface captures the notion of a property name mapping that is part of the notion of an LPG-to-RDF configuration, where such a property name mapping is an injective function from names of properties in LPGs to IRIs nodes as can occur in RDF graphs. This interface contains the functions: -map: map String of properties to IRIs properties -unmap: map IRIs properties to String -isPossibleResult: Check if the given RDF term is in the image of this property mapping
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isPossibleResult(org.apache.jena.graph.Node node)
    Check if the given RDF term is in the image of this property mapping and, thus, may be one of the RDF terms returned by the map(String) function for some String.
    org.apache.jena.graph.Node
    map(String property)
    Returns the IRI (in the form of a Jena Node object) that is the result of applying this property name mapping to the given property name.
    unmap(org.apache.jena.graph.Node node)
    Returns the String that corresponds to the given RDF term.
  • Method Details

    • map

      org.apache.jena.graph.Node map(String property)
      Returns the IRI (in the form of a Jena Node object) that is the result of applying this property name mapping to the given property name.
    • unmap

      String unmap(org.apache.jena.graph.Node node)
      Returns the String that corresponds to the given RDF term. It applies the inverse of this property mapping to the given RDF term (which is assumed to be an IRI) in order to obtain the corresponding String.
    • isPossibleResult

      boolean isPossibleResult(org.apache.jena.graph.Node node)
      Check if the given RDF term is in the image of this property mapping and, thus, may be one of the RDF terms returned by the map(String) function for some String.