本文整理了Java中com.hp.hpl.jena.query.Query.<init>
方法的一些代码示例,展示了Query.<init>
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.<init>
方法的具体详情如下:
包路径:com.hp.hpl.jena.query.Query
类名称:Query
方法名:<init>
[英]Creates a new empty query
[中]创建一个新的空查询
代码示例来源:origin: com.hp.hpl.jena/arq
/**
* Make a query - no parsing done
*/
static public Query create() { return new Query() ; }
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq
/**
* Make a query - no parsing done
*/
static public Query create() { return new Query() ; }
代码示例来源:origin: com.hp.hpl.jena/arq
/** Create a query from the given string by calling the parser.
*
* @param queryString The query string
* @param baseURI Base URI
* @param syntax {@link Syntax}
* @throws QueryException Thrown when a parse error occurs
*/
static public Query create(String queryString, String baseURI, Syntax syntax)
{
Query query = new Query() ;
parse(query, queryString, baseURI, syntax) ;
return query ;
}
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq
/** Create a query from the given string by calling the parser.
*
* @param queryString The query string
* @param baseURI Base URI
* @throws QueryException Thrown when a parse error occurs
*/
static public Query create(String queryString, String baseURI)
{
Query query = new Query() ;
return parse(query, queryString, baseURI, Syntax.defaultQuerySyntax) ;
}
代码示例来源:origin: com.hp.hpl.jena/arq
protected void startSubSelect(int line, int col)
{
// Query is null in an update.
stack.push(query) ;
Query subQuery = new Query(getPrologue()) ;
query = subQuery ;
}
代码示例来源:origin: com.hp.hpl.jena/arq
/** Create a query from the given string by calling the parser.
*
* @param queryString The query string
* @param baseURI Base URI
* @throws QueryException Thrown when a parse error occurs
*/
static public Query create(String queryString, String baseURI)
{
Query query = new Query() ;
parse(query, queryString, baseURI, Syntax.defaultQuerySyntax) ;
return query ;
}
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq
/** Create a query from the given string by calling the parser.
*
* @param queryString The query string
* @param baseURI Base URI
* @param syntax {@link Syntax}
* @throws QueryException Thrown when a parse error occurs
*/
static public Query create(String queryString, String baseURI, Syntax syntax)
{
Query query = new Query() ;
return parse(query, queryString, baseURI, syntax) ;
}
代码示例来源:origin: Quetzal-RDF/quetzal
public ConjunctiveQuery() {
query = new Query();
query.setQuerySelectType();
}
public ConjunctiveQuery(Query q) {
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq
protected void startSubSelect(int line, int col)
{
if ( query == null )
throw new ARQInternalErrorException("Parser query object is null") ;
stack.push(query) ;
query = new Query(getPrologue()) ;
}
代码示例来源:origin: com.hp.hpl.jena/arq
public static Element parseElement(String string)
{
final Query query = new Query () ;
Action action = new Action() {
public void exec(SPARQLParser11 parser) throws Exception
{
Element el = parser.GroupGraphPattern() ;
query.setQueryPattern(el) ;
}
} ;
perform(query, string, action) ;
return query.getQueryPattern() ;
}
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq
public void setUpdateSink(UpdateSink sink)
{
this.sink = sink ;
this.query = new Query() ;
setPrologue(sink.getPrologue()) ;
}
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq
public static Template parseTemplate(String string)
{
final Query query = new Query () ;
Action action = new Action() {
@Override
public void exec(SPARQLParser11 parser) throws Exception
{
Template t = parser.ConstructTemplate() ;
query.setConstructTemplate(t) ;
}
} ;
perform(query, string, action) ;
return query.getConstructTemplate() ;
}
代码示例来源:origin: com.hp.hpl.jena/arq
public static Element parseElement(String string)
{
final Query query = new Query () ;
Action action = new Action() {
public void exec(SPARQLParser10 parser) throws Exception
{
Element el = parser.GroupGraphPattern() ;
query.setQueryPattern(el) ;
}
} ;
perform(query, string, action) ;
return query.getQueryPattern() ;
}
代码示例来源:origin: com.hp.hpl.jena/arq
public static Template parseTemplate(String string)
{
final Query query = new Query () ;
Action action = new Action() {
public void exec(SPARQLParser10 parser) throws Exception
{
Template t = parser.ConstructTemplate() ;
query.setConstructTemplate(t) ;
}
} ;
perform(query, string, action) ;
return query.getConstructTemplate() ;
}
代码示例来源:origin: com.hp.hpl.jena/arq
public static Template parseTemplate(String string)
{
final Query query = new Query () ;
Action action = new Action() {
public void exec(ARQParser parser) throws Exception
{
Template t = parser.ConstructTemplate() ;
query.setConstructTemplate(t) ;
}
} ;
perform(query, string, action) ;
return query.getConstructTemplate() ;
}
代码示例来源:origin: com.hp.hpl.jena/arq
public static Element parseElement(String string)
{
final Query query = new Query () ;
Action action = new Action() {
public void exec(ARQParser parser) throws Exception
{
Element el = parser.GroupGraphPattern() ;
query.setQueryPattern(el) ;
}
} ;
perform(query, string, action) ;
return query.getQueryPattern() ;
}
代码示例来源:origin: com.hp.hpl.jena/arq
public static Template parseTemplate(String string)
{
final Query query = new Query () ;
Action action = new Action() {
public void exec(SPARQLParser11 parser) throws Exception
{
Template t = parser.ConstructTemplate() ;
query.setConstructTemplate(t) ;
}
} ;
perform(query, string, action) ;
return query.getConstructTemplate() ;
}
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq
public static Element parseElement(String string)
{
final Query query = new Query () ;
Action action = new Action() {
@Override
public void exec(SPARQLParser11 parser) throws Exception
{
Element el = parser.GroupGraphPattern() ;
query.setQueryPattern(el) ;
}
} ;
perform(query, string, action) ;
return query.getQueryPattern() ;
}
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq
protected Query elementToQuery(Element pattern)
{
if ( pattern == null )
return null ;
Query query = new Query() ;
query.setQueryPattern(pattern) ;
query.setQuerySelectType() ;
query.setQueryResultStar(true) ;
query.setResultVars() ;
return query ;
}
代码示例来源:origin: com.hp.hpl.jena/arq
protected Query elementToQuery(Element pattern)
{
if ( pattern == null )
return null ;
Query query = new Query() ;
query.setQueryPattern(pattern) ;
query.setQuerySelectType() ;
query.setQueryResultStar(true) ;
query.setResultVars() ;
return query ;
}
内容来源于网络,如有侵权,请联系作者删除!