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

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

public class TemplateLib
extends java.lang.Object


Constructor Summary
TemplateLib()
           
 
Method Summary
static MultiMap<com.hp.hpl.jena.graph.Node,com.hp.hpl.jena.graph.Triple> calcTriples(java.util.List<Quad> quads, java.util.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, java.util.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, java.util.Map<com.hp.hpl.jena.graph.Node,com.hp.hpl.jena.graph.Node> bNodeMap)
          Substitute into a triple, with rewriting of bNodes
static MultiMap<com.hp.hpl.jena.graph.Node,com.hp.hpl.jena.graph.Triple> template(java.util.List<Quad> quads, com.hp.hpl.jena.graph.Node dftGraph, java.util.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(java.util.List<Quad> quads,
                                                                                         com.hp.hpl.jena.graph.Node dftGraph,
                                                                                         java.util.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.


calcTriples

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


subst

public static Quad subst(Quad quad,
                         Binding b,
                         java.util.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,
                                                 java.util.Map<com.hp.hpl.jena.graph.Node,com.hp.hpl.jena.graph.Node> bNodeMap)
Substitute into a triple, with rewriting of bNodes



Copyright ? 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP Copyright ? 2010 Talis Systems Ltd. Copyright ? 2010, 2011 Epimorphics Ltd.