@Service(value=java.lang.Object.class) @Property(name="javax.ws.rs", boolValue=true) public class UIMAResourceTagger extends ResourceTagger
ResourceTagger
providing automatic concepts taggingModifier and Type | Field and Description |
---|---|
static String |
RELEVANCE |
static String |
TEXT |
cgProvider
Constructor and Description |
---|
UIMAResourceTagger() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context) |
javax.ws.rs.core.Response |
updateConcepts(UriRef uri,
javax.ws.rs.core.UriInfo uriInfo,
boolean override)
Update Resource with automatic concept recognition
|
updateConcepts
public static final String RELEVANCE
public static final String TEXT
protected void activate(org.osgi.service.component.ComponentContext context) throws URISyntaxException
activate
in class ResourceTagger
URISyntaxException
public javax.ws.rs.core.Response updateConcepts(UriRef uri, @Context javax.ws.rs.core.UriInfo uriInfo, boolean override)
uri
- Resource to enrichuriInfo
- Context for the ResourceCopyright © 2014 The Apache Software Foundation. All Rights Reserved.