org.apache.stanbol.enhancer.engines.entityhublinking
Class EntityhubLinkingEngine

java.lang.Object
  extended by org.apache.stanbol.enhancer.engines.entityhublinking.EntityhubLinkingEngine
All Implemented Interfaces:
org.osgi.util.tracker.ServiceTrackerCustomizer

@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.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;prop=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),@Property(name="enhancer.engines.linking.dereference",boolValue=true),@Property(name="enhancer.engines.linking.dereferenceFields",cardinality=2147483647,value={"http://www.w3.org/2000/01/rdf-schema#comment","http://www.w3.org/2003/01/geo/wgs84_pos#lat","http://www.w3.org/2003/01/geo/wgs84_pos#long","http://xmlns.com/foaf/0.1/depiction","http://dbpedia.org/ontology/thumbnail"}),@Property(name="service.ranking",intValue=0)})
public class EntityhubLinkingEngine
extends Object
implements org.osgi.util.tracker.ServiceTrackerCustomizer

The EntityhubLinkingEngine in NOT an EnhancementEngine but only an OSGI Component that allows to configure instances of the EntityLinkingEngine using an ReferencedSiteSearcher or EntityhubSearcher to link entities.

Author:
Rupert Westenthaler

Field Summary
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 Summary
EntityhubLinkingEngine()
          Default constructor as used by OSGI.
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SITE_ID

public static final String SITE_ID
The id of the Entityhub Site (Referenced or Managed Site) used for matching.

To match against the Entityhub use "entityhub" as value.

See Also:
Constant Field Values

entityLinkingEngine

protected org.apache.stanbol.enhancer.engines.entitylinking.engine.EntityLinkingEngine entityLinkingEngine
The engine initialised based on the configuration of this component


engineMetadata

protected Dictionary<String,Object> engineMetadata

engineRegistration

protected org.osgi.framework.ServiceRegistration engineRegistration
The service registration for the entityLinkingEngine


siteName

protected String siteName
The name of the reference site ('local' or 'entityhub') if the Entityhub is used for enhancing

Constructor Detail

EntityhubLinkingEngine

public EntityhubLinkingEngine()
Default constructor as used by OSGI. This expects that activate(ComponentContext) is called before usage

Method Detail

activate

@Activate
protected void activate(org.osgi.service.component.ComponentContext ctx)
                 throws org.osgi.service.cm.ConfigurationException
Throws:
org.osgi.service.cm.ConfigurationException

deactivate

@Deactivate
protected void deactivate(org.osgi.service.component.ComponentContext context)
Deactivates this components.


addingService

public Object addingService(org.osgi.framework.ServiceReference reference)
Specified by:
addingService in interface org.osgi.util.tracker.ServiceTrackerCustomizer

modifiedService

public void modifiedService(org.osgi.framework.ServiceReference reference,
                            Object service)
Specified by:
modifiedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer

removedService

public void removedService(org.osgi.framework.ServiceReference reference,
                           Object service)
Specified by:
removedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer


Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.