Class NodeLabelMappingImpl_SingleMatchToLiteral
java.lang.Object
se.liu.ida.hefquin.engine.wrappers.lpg.conf.impl.NodeLabelMappingImpl_SingleMatchToLiteral
- All Implemented Interfaces:
NodeLabelMapping
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisPossibleResult(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 theNodeLabelMapping.map(String)function for some String.org.apache.jena.graph.NodeReturns a URI or a literal nodeLabel (in the form of a JenaNodeobject) for the given String.unmap(org.apache.jena.graph.Node node) Returns the String that corresponds to the given RDF term.
-
Field Details
-
label
-
node
protected final org.apache.jena.graph.Node node
-
-
Constructor Details
-
NodeLabelMappingImpl_SingleMatchToLiteral
-
-
Method Details
-
map
Description copied from interface:NodeLabelMappingReturns a URI or a literal nodeLabel (in the form of a JenaNodeobject) for the given String. It applies this nodeLabel mapping to the given String.- Specified by:
mapin interfaceNodeLabelMapping
-
unmap
Description copied from interface:NodeLabelMappingReturns 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.- Specified by:
unmapin interfaceNodeLabelMapping
-
isPossibleResult
public boolean isPossibleResult(org.apache.jena.graph.Node node) Description copied from interface:NodeLabelMappingCheck if the given RDF term is in the image of this nodeLable mapping and, thus, may be one of the RDF terms returned by theNodeLabelMapping.map(String)function for some String.- Specified by:
isPossibleResultin interfaceNodeLabelMapping
-