@Properties(value={@Property(name="stanbol.enhancer.engine.name"),@Property(name="enhancer.engines.linking.entityhub.siteId"),@Property(name="enhancer.engines.linking.labelField",value="rdfs:label"),@Property(name="enhancer.engines.linking.caseSensitive",boolValue=false),@Property(name="enhancer.engines.linking.typeField",value="rdf:type"),@Property(name="enhancer.engines.linking.entityTypes",cardinality=2147483647),@Property(name="enhancer.engines.linking.redirectField",value="rdfs:seeAlso"),@Property(name="enhancer.engines.linking.redirectMode",options={@PropertyOption(value="%enhancer.engines.linking.redirectMode.option.ignore",name="IGNORE"),@PropertyOption(value="%enhancer.engines.linking.redirectMode.option.addValues",name="ADD_VALUES"),@PropertyOption(value="%enhancer.engines.linking.redirectMode.option.follow",name="FOLLOW")},value="IGNORE"),@Property(name="enhancer.engines.linking.minSearchTokenLength",intValue=3),@Property(name="enhancer.engines.linking.minTokenScore",floatValue=0.699999988079071f),@Property(name="enhancer.engines.linking.suggestions",intValue=3),@Property(name="enhancer.engines.linking.properNounsState",boolValue=false),@Property(name="enhancer.engines.linking.processedLanguages",cardinality=2147483647,value={"*;lmmtip;uc=LINK;prob=0.75;pprob=0.75","de;uc=MATCH","es;lc=Noun","nl;lc=Noun"}),@Property(name="enhancer.engines.linking.defaultMatchingLanguage",value=""),@Property(name="enhancer.engines.linking.typeMappings",cardinality=2147483647,value={"dbp-ont:Organisation; dbp-ont:Newspaper; schema:Organization > dbp-ont:Organisation","dbp-ont:Person; foaf:Person; schema:Person > dbp-ont:Person","dbp-ont:Place; schema:Place > dbp-ont:Place","dbp-ont:Work; schema:CreativeWork > dbp-ont:Work","dbp-ont:Event; schema:Event > dbp-ont:Event","schema:Product > schema:Product","skos:Concept > skos:Concept"}),@Property(name="enhancer.engines.linking.dereference",boolValue=false),@Property(name="enhancer.engines.linking.dereferenceFields",cardinality=2147483647,value={"rdfs:comment","geo:lat","geo:long","foaf:depiction","dbp-ont:thumbnail"}),@Property(name="service.ranking",intValue=0)})
public class EntityhubLinkingEngine
extends Object
implements org.osgi.util.tracker.ServiceTrackerCustomizer
EnhancementEngine but only an
OSGI Component that allows to configure instances of the
EntityLinkingEngine using an ReferencedSiteSearcher or
EntityhubSearcher to link entities.| Modifier and Type | Field and Description |
|---|---|
protected Dictionary<String,Object> |
engineMetadata |
protected org.osgi.framework.ServiceRegistration |
engineRegistration
The service registration for the
entityLinkingEngine |
protected org.apache.stanbol.enhancer.engines.entitylinking.engine.EntityLinkingEngine |
entityLinkingEngine
The engine initialised based on the configuration of this component
|
static String |
SITE_ID
The id of the Entityhub Site (Referenced or Managed Site) used for matching.
|
protected String |
siteName
The name of the reference site ('local' or 'entityhub') if the
Entityhub is used for enhancing
|
| Constructor and Description |
|---|
EntityhubLinkingEngine()
Default constructor as used by OSGI.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext ctx) |
Object |
addingService(org.osgi.framework.ServiceReference reference) |
protected void |
deactivate(org.osgi.service.component.ComponentContext context)
Deactivates this components.
|
void |
modifiedService(org.osgi.framework.ServiceReference reference,
Object service) |
void |
removedService(org.osgi.framework.ServiceReference reference,
Object service) |
public static final String SITE_ID
To match against the Entityhub use "entityhub" as value.
protected org.apache.stanbol.enhancer.engines.entitylinking.engine.EntityLinkingEngine entityLinkingEngine
protected Dictionary<String,Object> engineMetadata
protected org.osgi.framework.ServiceRegistration engineRegistration
entityLinkingEngineprotected String siteName
public EntityhubLinkingEngine()
activate(ComponentContext) is called before usage@Activate
protected void activate(org.osgi.service.component.ComponentContext ctx)
throws org.osgi.service.cm.ConfigurationException
org.osgi.service.cm.ConfigurationException@Deactivate protected void deactivate(org.osgi.service.component.ComponentContext context)
public Object addingService(org.osgi.framework.ServiceReference reference)
addingService in interface org.osgi.util.tracker.ServiceTrackerCustomizerpublic void modifiedService(org.osgi.framework.ServiceReference reference,
Object service)
modifiedService in interface org.osgi.util.tracker.ServiceTrackerCustomizerpublic void removedService(org.osgi.framework.ServiceReference reference,
Object service)
removedService in interface org.osgi.util.tracker.ServiceTrackerCustomizerCopyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.