Package io.carml.util

Class RmlConstantShorthandExpander

  • All Implemented Interfaces:
    Function<org.eclipse.rdf4j.model.Model,​org.eclipse.rdf4j.model.Model>, UnaryOperator<org.eclipse.rdf4j.model.Model>

    public class RmlConstantShorthandExpander
    extends Object
    implements UnaryOperator<org.eclipse.rdf4j.model.Model>
    Replaces RML constant shortcut properties by their expanded/full form. See https://www.w3.org/TR/r2rml/#constant The input model is not modified. A new model is created, populated with the result and returned. For the sake of keeping the implementation simple, all triples that match the shortcut signatures are replaced, without consideration of their position in the graph / relation to other objects.
    • Constructor Detail

      • RmlConstantShorthandExpander

        public RmlConstantShorthandExpander()
    • Method Detail

      • apply

        public org.eclipse.rdf4j.model.Model apply​(org.eclipse.rdf4j.model.Model input)
        Specified by:
        apply in interface Function<org.eclipse.rdf4j.model.Model,​org.eclipse.rdf4j.model.Model>