Interface NodeLabelMapping

All Known Implementing Classes:
CompositeNodeLabelMappingImpl, NodeLabelMappingImpl_AllToLiterals, NodeLabelMappingImpl_AllToURIs, NodeLabelMappingImpl_RegexMatchToLiterals, NodeLabelMappingImpl_RegexMatchToURIs, NodeLabelMappingImpl_SingleMatchToLiteral, NodeLabelMappingImpl_SingleMatchToURI

public interface NodeLabelMapping
This interface captures the notion of a nodeLabel mapping that is part of the notion of an LPG-to-RDF configuration, and that such a nodeLabel mapping is an injective function from nodeLabels in LPGs to IRIs or RDF-literal nodes as can occur in RDF graphs. This interface contains the functions: -map: map String of nodeLabels to IRIs/Literal NodeLabels -unmap: map IRIs/Literal NodeLabels to String -isPossibleResult: Check if the given RDF term is in the image of this nodeLabel 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 nodeLable 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 label)
    Returns a URI or a literal nodeLabel (in the form of a Jena Node object) for the given String.
    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 label)
      Returns a URI or a literal nodeLabel (in the form of a Jena Node object) for the given String. It applies this nodeLabel mapping to the given String.
    • 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 nodeLabel mapping to the given RDF term (which is assumed to be a literal or 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 nodeLable mapping and, thus, may be one of the RDF terms returned by the map(String) function for some String.