com.hp.hpl.jena.util
Class QueryMapper

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

public class QueryMapper
extends 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()
           
 GraphQuery 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 GraphQuery 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)


Licenced under the Apache License, Version 2.0