Class SHACLARQFunction

    • Field Detail

    • Constructor Detail

      • SHACLARQFunction

        protected SHACLARQFunction​(SHFunction shaclFunction)
        Constructs a new SHACLARQFunction based on a given sh:Function. The shaclFunction must be associated with the Model containing the triples of its definition.
        Parameters:
        shaclFunction - the SHACL function
    • Method Detail

      • addParameters

        protected void addParameters​(SHParameterizable parameterizable)
      • build

        public void build​(String uri,
                          org.apache.jena.sparql.expr.ExprList args)
        Specified by:
        build in interface org.apache.jena.sparql.function.Function
      • create

        public org.apache.jena.sparql.function.Function create​(String uri)
        Specified by:
        create in interface org.apache.jena.sparql.function.FunctionFactory
      • exec

        public org.apache.jena.sparql.expr.NodeValue exec​(org.apache.jena.sparql.engine.binding.Binding binding,
                                                          org.apache.jena.sparql.expr.ExprList args,
                                                          String uri,
                                                          org.apache.jena.sparql.function.FunctionEnv env)
        Specified by:
        exec in interface org.apache.jena.sparql.function.Function
      • executeBody

        public abstract org.apache.jena.sparql.expr.NodeValue executeBody​(org.apache.jena.query.Dataset dataset,
                                                                          org.apache.jena.rdf.model.Model model,
                                                                          org.apache.jena.query.QuerySolution bindings)
      • getQueryString

        protected abstract String getQueryString()
      • getSHACLFunction

        public SHFunction getSHACLFunction()
        Gets the underlying sh:Function Model object for this ARQ function.
        Returns:
        the sh:Function (may be null)
      • getParamNames

        public String[] getParamNames()
        Gets the names of the declared parameters, in order from left to right.
        Returns:
        the parameter names