com.hp.hpl.jena.sparql.modify
Class TemplateLib

java.lang.Object
  extended by com.hp.hpl.jena.sparql.modify.TemplateLib

public class TemplateLib
extends Object


Constructor Summary
TemplateLib()
           
 
Method Summary
static Iterator<Quad> calcQuads(List<Quad> quads, Iterator<Binding> bindings)
          Substitute into quad patterns
static MultiMap<com.hp.hpl.jena.graph.Node,com.hp.hpl.jena.graph.Triple> calcTriples(List<Quad> quads, List<Binding> bindings)
          Substitute into quad patterns, and build a map of graph name to lists of triples
static Quad subst(Quad quad, Binding b, Map<com.hp.hpl.jena.graph.Node,com.hp.hpl.jena.graph.Node> bNodeMap)
          Substitute into a quad, with rewriting of bNodes
static com.hp.hpl.jena.graph.Triple subst(com.hp.hpl.jena.graph.Triple triple, Binding b, Map<com.hp.hpl.jena.graph.Node,com.hp.hpl.jena.graph.Node> bNodeMap)
          Substitute into a triple, with rewriting of bNodes
static Iterator<Quad> template(List<Quad> quads, com.hp.hpl.jena.graph.Node dftGraph, Iterator<Binding> bindings)
          Take a template, as a list of quad patterns, a default graph, and an iterator of bindings, and produce an iterator of quads that result from applying the template to the bindings.
static MultiMap<com.hp.hpl.jena.graph.Node,com.hp.hpl.jena.graph.Triple> template(List<Quad> quads, com.hp.hpl.jena.graph.Node dftGraph, List<Binding> bindings)
          Take a template, as a list of quad patterns, a default graph, and a list of bindings, and produce a map of graph name to lists of triples.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateLib

public TemplateLib()
Method Detail

template

public static MultiMap<com.hp.hpl.jena.graph.Node,com.hp.hpl.jena.graph.Triple> template(List<Quad> quads,
                                                                                         com.hp.hpl.jena.graph.Node dftGraph,
                                                                                         List<Binding> bindings)
Take a template, as a list of quad patterns, a default graph, and a list of bindings, and produce a map of graph name to lists of triples.


template

public static Iterator<Quad> template(List<Quad> quads,
                                      com.hp.hpl.jena.graph.Node dftGraph,
                                      Iterator<Binding> bindings)
Take a template, as a list of quad patterns, a default graph, and an iterator of bindings, and produce an iterator of quads that result from applying the template to the bindings.


calcTriples

public static MultiMap<com.hp.hpl.jena.graph.Node,com.hp.hpl.jena.graph.Triple> calcTriples(List<Quad> quads,
                                                                                            List<Binding> bindings)
Substitute into quad patterns, and build a map of graph name to lists of triples


calcQuads

public static Iterator<Quad> calcQuads(List<Quad> quads,
                                       Iterator<Binding> bindings)
Substitute into quad patterns


subst

public static Quad subst(Quad quad,
                         Binding b,
                         Map<com.hp.hpl.jena.graph.Node,com.hp.hpl.jena.graph.Node> bNodeMap)
Substitute into a quad, with rewriting of bNodes


subst

public static com.hp.hpl.jena.graph.Triple subst(com.hp.hpl.jena.graph.Triple triple,
                                                 Binding b,
                                                 Map<com.hp.hpl.jena.graph.Node,com.hp.hpl.jena.graph.Node> bNodeMap)
Substitute into a triple, with rewriting of bNodes



Licenced under the Apache License, Version 2.0