public class QuerySpec extends AbstractSearchQueryEvaluator
Constructor and Description |
---|
QuerySpec(StatementPattern matchesPattern,
StatementPattern queryPattern,
StatementPattern propertyPattern,
StatementPattern scorePattern,
StatementPattern snippetPattern,
StatementPattern typePattern,
Resource subject,
String queryString,
IRI propertyURI) |
QuerySpec(String matchesVarName,
String propertyVarName,
String scoreVarName,
String snippetVarName,
Resource subject,
String queryString,
IRI propertyURI) |
Modifier and Type | Method and Description |
---|---|
StatementPattern |
getMatchesPattern() |
String |
getMatchesVariableName()
return the name of the bound variable that should match the query
|
QueryModelNode |
getParentQueryModelNode() |
StatementPattern |
getPropertyPattern() |
IRI |
getPropertyURI() |
String |
getPropertyVariableName() |
StatementPattern |
getQueryPattern() |
String |
getQueryString()
return the literal expression of the query or null, if none set.
|
IRI |
getQueryType()
the type of query, must equal
LuceneSailSchema.LUCENE_QUERY . |
StatementPattern |
getScorePattern() |
String |
getScoreVariableName()
The variable name associated with the query score
|
StatementPattern |
getSnippetPattern() |
String |
getSnippetVariableName() |
Resource |
getSubject() |
StatementPattern |
getTypePattern() |
boolean |
isEvaluable() |
QueryModelNode |
removeQueryPatterns()
Removes the query patterns and returns a placeholder where the query results could be placed.
|
String |
toString() |
replaceQueryPatternsWithResults
public QuerySpec(StatementPattern matchesPattern, StatementPattern queryPattern, StatementPattern propertyPattern, StatementPattern scorePattern, StatementPattern snippetPattern, StatementPattern typePattern, Resource subject, String queryString, IRI propertyURI)
public QueryModelNode getParentQueryModelNode()
public QueryModelNode removeQueryPatterns()
SearchQueryEvaluator
public StatementPattern getMatchesPattern()
public String getMatchesVariableName()
public StatementPattern getQueryPattern()
public StatementPattern getPropertyPattern()
public String getPropertyVariableName()
public StatementPattern getScorePattern()
public String getScoreVariableName()
public StatementPattern getSnippetPattern()
public String getSnippetVariableName()
public StatementPattern getTypePattern()
public IRI getQueryType()
LuceneSailSchema.LUCENE_QUERY
. A null type is possible, but not valid.public Resource getSubject()
public String getQueryString()
public IRI getPropertyURI()
null
public boolean isEvaluable()
Copyright © 2015-2019 Eclipse Foundation. All Rights Reserved.