Interface ValueMapping<T>

  • Type Parameters:
    T - the type of value to convert to
    All Superinterfaces:
    BiFunction<org.eclipse.rdf4j.model.Value,​org.eclipse.rdf4j.model.Model,​T>
    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 ValueMapping<T>
    extends BiFunction<org.eclipse.rdf4j.model.Value,​org.eclipse.rdf4j.model.Model,​T>
    Represents a function that converts a term in a graph to another value. Intended to be used in wrapping classes.
    See Also:
    Common mappings
    • Method Detail

      • apply

        T apply​(org.eclipse.rdf4j.model.Value rdfValue,
                org.eclipse.rdf4j.model.Model model)
        Converts a node to a value.
        Specified by:
        apply in interface BiFunction<org.eclipse.rdf4j.model.Value,​org.eclipse.rdf4j.model.Model,​T>
        Parameters:
        rdfValue - the node to convert
        Returns:
        a value that represents the term