Package com.inrupt.rdf.wrapping.commons
Interface TermMapping<T>
-
- Type Parameters:
T
- the type of value to convert
- All Superinterfaces:
BiFunction<T,org.apache.commons.rdf.api.Graph,org.apache.commons.rdf.api.RDFTerm>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface TermMapping<T> extends BiFunction<T,org.apache.commons.rdf.api.Graph,org.apache.commons.rdf.api.RDFTerm>
Represents a function that converts a value to a term in a graph. Intended to be used in wrapping classes.- See Also:
Common mappings
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.commons.rdf.api.RDFTerm
apply(T value, org.apache.commons.rdf.api.Graph graph)
Converts a value to a term.-
Methods inherited from interface java.util.function.BiFunction
andThen
-
-
-
-
Method Detail
-
apply
org.apache.commons.rdf.api.RDFTerm apply(T value, org.apache.commons.rdf.api.Graph graph)
Converts a value to a term.- Specified by:
apply
in interfaceBiFunction<T,org.apache.commons.rdf.api.Graph,org.apache.commons.rdf.api.RDFTerm>
- Parameters:
value
- the value to convertgraph
- the graph that serves as the context for creating the term- Returns:
- a node that represents the value
-
-