public class FreebaseImageProcessor extends Object implements org.apache.stanbol.entityhub.indexing.core.EntityProcessor
PARAM_SOURCE_PROPERTY
(default: fb:common.topic.image)
property and converts it to URIs that can be used to retrieve an image via
the google APIs| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_DEPICTION_PROPERTY |
static String |
DEFAULT_IMAGE_SERVICE_URI |
static int |
DEFAULT_MAX_DEPICTION_HEIGTH |
static int |
DEFAULT_MAX_DEPICTION_WIDTH |
static int |
DEFAULT_MAX_THUMBNAIL_SIZE |
static String |
DEFAULT_SOURCE_PROPERTY |
static String |
DEFAULT_THUMBNAIL_PROPERTY |
static String |
FB_NS |
static String |
FOAF_NS |
static String |
PARAM_DEPICTION_PROPERTY
The property used for depictions.
|
static String |
PARAM_IMAGE_SERVICE_URI
The service URI of the Image Service
|
static String |
PARAM_MAX_DEPICTION_HEIGTH |
static String |
PARAM_MAX_DEPICTION_WIDTH |
static String |
PARAM_MAX_THUMBNAIL_SIZE |
static String |
PARAM_SOURCE_PROPERTY
The source property for the image links.
|
static String |
PARAM_THUMBNAIL_PROPERTY
The property used for thumbnails.
|
| Constructor and Description |
|---|
FreebaseImageProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
initialise() |
boolean |
needsInitialisation() |
org.apache.stanbol.entityhub.servicesapi.model.Representation |
process(org.apache.stanbol.entityhub.servicesapi.model.Representation rep) |
void |
setConfiguration(Map<String,Object> config) |
public static final String FB_NS
public static final String FOAF_NS
public static final String PARAM_SOURCE_PROPERTY
Reference and contain Freebase topicspublic static final String DEFAULT_SOURCE_PROPERTY
public static final String PARAM_IMAGE_SERVICE_URI
public static final String DEFAULT_IMAGE_SERVICE_URI
public static final String PARAM_THUMBNAIL_PROPERTY
!' is parsed thumbnail
generation is deactivated.public static final String DEFAULT_THUMBNAIL_PROPERTY
public static final String PARAM_MAX_THUMBNAIL_SIZE
public static final int DEFAULT_MAX_THUMBNAIL_SIZE
public static final String PARAM_DEPICTION_PROPERTY
!' is parsed depiction
generation is deactivated.public static final String DEFAULT_DEPICTION_PROPERTY
public static final String PARAM_MAX_DEPICTION_WIDTH
public static final int DEFAULT_MAX_DEPICTION_WIDTH
public static final String PARAM_MAX_DEPICTION_HEIGTH
public static final int DEFAULT_MAX_DEPICTION_HEIGTH
public void setConfiguration(Map<String,Object> config)
setConfiguration in interface org.apache.stanbol.entityhub.indexing.core.IndexingComponentpublic org.apache.stanbol.entityhub.servicesapi.model.Representation process(org.apache.stanbol.entityhub.servicesapi.model.Representation rep)
process in interface org.apache.stanbol.entityhub.indexing.core.EntityProcessorpublic boolean needsInitialisation()
needsInitialisation in interface org.apache.stanbol.entityhub.indexing.core.IndexingComponentpublic void initialise()
initialise in interface org.apache.stanbol.entityhub.indexing.core.IndexingComponentpublic void close()
close in interface org.apache.stanbol.entityhub.indexing.core.IndexingComponentCopyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.