Hi

For the Stanbol Enhancer please have a look on the documentation [1]
on the webpage.

For API usage of the Stanbol Enhancer you need the following OSGI Services:

* ContentItemFactory: create ContentItems for InputStreams, Strings
and/or ByteArrays
* ChainManager: Allows to lookup configured chains
* EnhancementJobManager: the interface used to enhance ContentItems

best
Rupert



[1] 
http://stanbol.apache.org/docs/trunk/components/enhancer/#main-interfaces-and-utility-classes

On Fri, Sep 26, 2014 at 5:41 PM, Alessandro Adamou
<alessandro.ada...@open.ac.uk> wrote:
> I should mention that of course you will need to know how to use the
> APIs. Javadoc is available as a separate archive for every bundle. For
> example, to get the Javadoc of the Enhancer, you will go to:
>
> http://central.maven.org/maven2/org/apache/stanbol/org.apache.stanbol.enhancer.servicesapi/0.12.0/
>
> and download the file called
> org.apache.stanbol.enhancer.servicesapi-0.12.0-javadoc.jar
>
> Eventually, the Javadoc will be available in HTML on the project page,
> see http://issues.apache.org/jira/browse/STANBOL-578
>
> I'm writing all this assuming you are not using Maven. If you are, or
> course you do not need to manually download any JAR and have to proceed
> differently. Just let us know if you do.
>
> HTH
>
> Alessandro
>
>
>
> On 26/09/2014 16:32, Alessandro Adamou wrote:
>>
>> Hi Ghufran,
>>
>> Stanbol is an OSGi platform, so if you wish to use it programmatically
>> via the Java APIs, the natural way to do so is that you package your
>> code into a JAR file that is also an OSGi bundle [1], install it on a
>> running Stanbol launcher using its OSGi console and activate it.
>>
>> Of course, at development time you will need access to the Java APIs of
>> the Stanbol components. Most of the time, these are made available as
>> distinct packages called org.apache.stanbol.{component-name}.servicesapi
>> (example: org.apache.stanbol.enhancer.servicesapi). When developing in
>> Eclipse or NetBeans etc. you will then include the JAR file of this
>> servicesapi in your classpath.
>>
>> To do unit testing, you will most likely also need the reference
>> implementations of these serviceapis, which come as separate packages.
>> At runtime, instead of using these implementations directly, you can
>> refer to the servicesapi interfaces using the OSGi Service Reference
>> mechanism [2], and let the embedded Apache Felix do the job of matching
>> API and implementation.
>>
>> I hope this somehow gets you started.
>>
>> Alessandro
>>
>> [1] http://www.osgi.org/Specifications
>> [2]
>>
>> http://felix.apache.org/documentation/subprojects/apache-felix-maven-scr-plugin/scr-annotations.html
>>
>>
>>
>> On 26/09/2014 16:17, Mohammad Ghufran wrote:
>>>
>>> Hello,
>>>
>>> Is there a way to use stanbol through Java or some third party API like
>>> this one: https://github.com/zaizi/apache-stanbol-client has to be used?
>>>
>>> In case there is a way, could someone point me to some documentation and
>>> maybe some examples? In the latter case, which is the recommended API
>>> wrapper?
>>>
>>> Best Regards,
>>> Ghufran
>>>
>>
>> -- The Open University is incorporated by Royal Charter (RC 000391),
>> an exempt charity in England & Wales and a charity registered in
>> Scotland (SC 038302). The Open University is authorised and regulated
>> by the Financial Conduct Authority.
>> .
>>
>
> -- The Open University is incorporated by Royal Charter (RC 000391), an
> exempt charity in England & Wales and a charity registered in Scotland (SC
> 038302). The Open University is authorised and regulated by the Financial
> Conduct Authority.



-- 
| Rupert Westenthaler             rupert.westentha...@gmail.com
| Bodenlehenstraße 11                              ++43-699-11108907
| A-5500 Bischofshofen
| REDLINK.CO 
..........................................................................
| http://redlink.co/

Reply via email to