org.topbraid.spin.util
Class QueryWrapper
java.lang.Object
org.topbraid.spin.util.QueryWrapper
public class QueryWrapper
- extends java.lang.Object
Wraps a (pre-compiled) Jena Query with its source SPIN Query and
a human-readable string representation.
Also needed to work around the issue of Query.equals/hashCode: Otherwise
multiple distinct template calls will be merged into one in HashMaps.
- Author:
- Holger Knublauch
Constructor Summary |
QueryWrapper(Query query,
Resource source,
java.lang.String text,
Query spinQuery,
java.lang.String label,
Statement statement,
boolean thisUnbound)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryWrapper
public QueryWrapper(Query query,
Resource source,
java.lang.String text,
Query spinQuery,
java.lang.String label,
Statement statement,
boolean thisUnbound)
getLabel
public java.lang.String getLabel()
getQuery
public Query getQuery()
getSPINQuery
public Query getSPINQuery()
getStatement
public Statement getStatement()
getSource
public Resource getSource()
- Gets the SPIN Query or template call that has created this QueryWrapper.
- Returns:
- the source
getText
public java.lang.String getText()
isThisUnbound
public boolean isThisUnbound()