|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.stanbol.enhancer.engines.entityhublinking.EntityhubLinkingEngine
@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
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.
| 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 |
|---|
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
entityLinkingEngine
protected String siteName
| Constructor Detail |
|---|
public EntityhubLinkingEngine()
activate(ComponentContext) is called before usage
| Method Detail |
|---|
@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.ServiceTrackerCustomizer
public void modifiedService(org.osgi.framework.ServiceReference reference,
Object service)
modifiedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer
public void removedService(org.osgi.framework.ServiceReference reference,
Object service)
removedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||