Interface NodeMapping
- All Known Implementing Classes:
NodeMappingImpl_AllToBNodes
,NodeMappingImpl_AllToURIs
public interface NodeMapping
This interface captures the notion of a node mapping that is part of the notion of an LPG-to-RDF configuration,
and that such a node mapping is an injective function from nodes in LPGs to IRIs or blank nodes as
can occur in RDF graphs.
This interface contains the functions:
-map: map nodes to IRIs/BNodes
-unmap: map IRIs/BNodes to nodes
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isPossibleResult
(org.apache.jena.graph.Node node) Check if the given RDF term is in the image of this node mapping and, thus, may be one of the RDF terms returned by themap(LPGNode)
function for some LPG node.org.apache.jena.graph.Node
Returns a URI or a blank node (in the form of a JenaNode
object) for the given LPG node.unmap
(org.apache.jena.graph.Node node) Returns the LPG node that corresponds to the given RDF term.
-
Method Details
-
map
Returns a URI or a blank node (in the form of a JenaNode
object) for the given LPG node. It applies this node mapping to the given LPG node -
unmap
Returns the LPG node that corresponds to the given RDF term. It applies the inverse of this node mapping to the given RDF term (which is assumed to be a blank node or an IRI) in order to obtain the corresponding LPG node. -
isPossibleResult
boolean isPossibleResult(org.apache.jena.graph.Node node) Check if the given RDF term is in the image of this node mapping and, thus, may be one of the RDF terms returned by themap(LPGNode)
function for some LPG node.
-