com.hp.hpl.jena.util
Class QueryMapper

java.lang.Object
  extended by com.hp.hpl.jena.util.QueryMapper

public class QueryMapper
extends java.lang.Object

Utility class for ModelQueryUtil which converts a query represented by a model with jqv: variables into a .graph.query.Query object.

Author:
kers

Constructor Summary
QueryMapper(Model m, Resource[] variables)
           
 
Method Summary
 Graph getGraph()
           
 Query getQuery()
           
 Node[] getVariables()
           
 Graph toQueryGraph(Model m)
           
 Node toQueryNode(RDFNode rn)
           
 Triple toQueryTriple(Statement s)
           
 Node[] toQueryVariables(Resource[] vars)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryMapper

public QueryMapper(Model m,
                   Resource[] variables)
Method Detail

getVariables

public Node[] getVariables()

getQuery

public Query getQuery()

getGraph

public Graph getGraph()

toQueryGraph

public Graph toQueryGraph(Model m)

toQueryTriple

public Triple toQueryTriple(Statement s)

toQueryVariables

public Node[] toQueryVariables(Resource[] vars)

toQueryNode

public Node toQueryNode(RDFNode rn)


Copyright � 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP