public final class SearchFields extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BNODE_ID_PREFIX
String used to prefix BNode IDs with so that we can distinguish BNode fields from URI fields in
Documents.
|
static String |
CONTEXT_FIELD_NAME
The name of the Document field holding the context identifer(s).
|
static String |
CONTEXT_NULL
the null context
|
static Pattern |
HIGHLIGHTER_PATTERN |
static String |
HIGHLIGHTER_POST_TAG |
static String |
HIGHLIGHTER_PRE_TAG |
static String |
ID_FIELD_NAME
The name of the Document field holding the document identifier.
|
static String |
TEXT_FIELD_NAME
The name of the Document field that holds multiple text values of a Resource.
|
static String |
URI_FIELD_NAME
The name of the Document field holding the Resource identifier.
|
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.rdf4j.model.Resource |
createContext(String idString) |
static org.eclipse.rdf4j.model.Resource |
createResource(String idString)
Parses an id-string (a serialized resource) back to a resource Inverse method of
getResourceID |
static org.eclipse.rdf4j.model.Literal |
distanceToLiteral(double d) |
static String |
formIdString(String resourceId,
String contextId) |
static String |
getContextID(org.eclipse.rdf4j.model.Resource resource)
Get the ID for a context.
|
static String |
getLiteralPropertyValueAsString(org.eclipse.rdf4j.model.Statement statement) |
static String |
getPropertyField(org.eclipse.rdf4j.model.URI property) |
static String |
getResourceID(org.eclipse.rdf4j.model.Resource resource)
Returns the String ID corresponding with the specified Resource.
|
static String |
getSnippet(String highlightedValue) |
static boolean |
isPropertyField(String fieldName)
Determines whether the specified field name is a property field name.
|
static org.eclipse.rdf4j.model.Literal |
scoreToLiteral(float score)
Returns a score value encoded as a Literal.
|
static org.eclipse.rdf4j.model.Literal |
wktToLiteral(String wkt) |
public static final String ID_FIELD_NAME
public static final String URI_FIELD_NAME
public static final String TEXT_FIELD_NAME
#addPropertyFields(String, String, Document)public static final String CONTEXT_FIELD_NAME
public static final String CONTEXT_NULL
public static final String BNODE_ID_PREFIX
public static final String HIGHLIGHTER_PRE_TAG
public static final String HIGHLIGHTER_POST_TAG
public static final Pattern HIGHLIGHTER_PATTERN
public static String getResourceID(org.eclipse.rdf4j.model.Resource resource)
public static String getContextID(org.eclipse.rdf4j.model.Resource resource)
resource - the contextpublic static org.eclipse.rdf4j.model.Resource createResource(String idString)
getResourceIDidString - public static org.eclipse.rdf4j.model.Resource createContext(String idString)
public static String getLiteralPropertyValueAsString(org.eclipse.rdf4j.model.Statement statement)
public static String getPropertyField(org.eclipse.rdf4j.model.URI property)
public static boolean isPropertyField(String fieldName)
public static org.eclipse.rdf4j.model.Literal scoreToLiteral(float score)
score - the float score to convertpublic static org.eclipse.rdf4j.model.Literal wktToLiteral(String wkt)
public static org.eclipse.rdf4j.model.Literal distanceToLiteral(double d)
Copyright © 2015-2016 Eclipse Foundation. All Rights Reserved.