public static interface RedLink.Analysis extends Serializable
Credentials
object which will be used for each service request| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIDENCE |
static String |
DEREF_FIELDS |
static String |
ENHANCE |
static String |
LDPATH |
static String |
PATH |
static String |
SUMMARY |
static String |
THUMBNAIL |
| Modifier and Type | Method and Description |
|---|---|
Enhancements |
enhance(AnalysisRequest request)
Performs an analysis of the content included in the request, getting a
Enhancements object as result
The analysis result will depend on the configured in the configured application within the used Credentials |
<T> T |
enhance(AnalysisRequest request,
Class<T> responseType)
Performs an analysis of the content included in the request getting as response an instance of the
Class
passed by parameter. |
static final String PATH
static final String ENHANCE
static final String CONFIDENCE
static final String SUMMARY
static final String THUMBNAIL
static final String DEREF_FIELDS
static final String LDPATH
Enhancements enhance(AnalysisRequest request)
Enhancements object as result
The analysis result will depend on the configured in the configured application within the used Credentialsrequest - AnalysisRequest containing the request parameters and the content to be enhanced<T> T enhance(AnalysisRequest request, Class<T> responseType)
Class
passed by parameter. Current implementation supports String
InputStream - make sure to close the
stream after reading the contents from the response
Enhancements
Enhancements is passed, the request will assume RDF+XML as response format, and will parse the response
to create the Enhancements object. If String is passed as response type, the method will return
the RAW response in the format specified at the AnalysisRequest request parameterrequest - AnalysisRequest containing the request parameters and the content to be enhancedresponseType - Class of the response. Only Enhancements and String are supportedCopyright © 2018 Redlink GmbH. All rights reserved.