public class ReconcileQuery extends Object
getTypes() and ReconcileValue.getId() do support 'prefix:localname'
syntax for prefixes defined in the NamespaceEnum.
Also defines methods for parsing single and multiple request strings.
| Modifier and Type | Class and Description |
|---|---|
static class |
ReconcileQuery.TYPE_STRICT |
| Modifier and Type | Field and Description |
|---|---|
static Integer |
DEFAULT_LIMIT
The default limit for suggestions if not explicitly parsed
|
static ReconcileQuery.TYPE_STRICT |
DEFAULT_TYPE_STRICT
The default entity type mode if not explicitly parsed by the query
|
| Constructor and Description |
|---|
ReconcileQuery(String query,
Collection<String> types) |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getLimit() |
Iterable<Map.Entry<ReconcileProperty,Collection<ReconcileValue>>> |
getProperties() |
Collection<ReconcileValue> |
getProperty(String field) |
String |
getQuery() |
Set<String> |
getTypes() |
ReconcileQuery.TYPE_STRICT |
getTypeStrict() |
static Map<String,ReconcileQuery> |
parseQueries(String queriesString,
org.apache.stanbol.commons.namespaceprefix.NamespacePrefixService nsPrefixService) |
static ReconcileQuery |
parseQuery(String queryString,
org.apache.stanbol.commons.namespaceprefix.NamespacePrefixService nsPrefixService)
Parses a Google Refine Reconcile Query from the parsed String.
|
Collection<ReconcileValue> |
putProperty(String field,
Collection<ReconcileValue> values,
org.apache.stanbol.commons.namespaceprefix.NamespacePrefixService nsPrefixService) |
Collection<ReconcileValue> |
removeProperty(String field) |
void |
setLimit(Integer limit) |
void |
setTypeStrict(ReconcileQuery.TYPE_STRICT typeStrict) |
public static final Integer DEFAULT_LIMIT
public static final ReconcileQuery.TYPE_STRICT DEFAULT_TYPE_STRICT
public ReconcileQuery(String query, Collection<String> types)
public final Integer getLimit()
public final void setLimit(Integer limit)
limit - the limit to setpublic final ReconcileQuery.TYPE_STRICT getTypeStrict()
public final void setTypeStrict(ReconcileQuery.TYPE_STRICT typeStrict)
typeStrict - the typeStrict to setpublic final String getQuery()
public Collection<ReconcileValue> putProperty(String field, Collection<ReconcileValue> values, org.apache.stanbol.commons.namespaceprefix.NamespacePrefixService nsPrefixService)
public Collection<ReconcileValue> removeProperty(String field)
public Collection<ReconcileValue> getProperty(String field)
public Iterable<Map.Entry<ReconcileProperty,Collection<ReconcileValue>>> getProperties()
public static Map<String,ReconcileQuery> parseQueries(String queriesString, org.apache.stanbol.commons.namespaceprefix.NamespacePrefixService nsPrefixService) throws javax.ws.rs.WebApplicationException
javax.ws.rs.WebApplicationExceptionpublic static ReconcileQuery parseQuery(String queryString, org.apache.stanbol.commons.namespaceprefix.NamespacePrefixService nsPrefixService) throws javax.ws.rs.WebApplicationException
queryString - the string representation of the reconcile queryReconcileQuery objectjavax.ws.rs.WebApplicationException - Response.Status#BAD_REQUEST in
case of the parsed string is not a well formated query. Unsupported
Properties are silently ignored (warnings are still logged).Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.