Hi Reto
Yes I see your mail and principally agree to your points, but IMO this
is something should discuss/decide when we actually work on the
integration (e.g. while working in a branch, but at least before the
first release of the client).
Most likely this will be something that we need to decide from case to
case. While it looks good for the FeaturedSearch and most likely also
for most of the Entityhub API does not necessarily work for other
parts.
e.g. Filter By Confidence
EnhancementResult eRes =
client.enhancer().enhance(TEST_URI, "Paris is the capital of France");
assertTrue(eRes.getEntityAnnotations().size() == 5);
eRes.filterByConfidence(0.2);
assertTrue(eRes.getEntityAnnotations().size() == 3);
does for sure make sense on the client, but is not really feasible on
the server side. Also the API wrapper over the EnhancementStructure is
nice to have (or maybe even a must have) for the client side, but
something we do not really need on the server. Event the Enhancer API
does not work so well for a Client because most Clients will not want
to use a ContentItemFactory, create ContentSources ... On the server
this API is present to allow different implementations for ContentItem
(e.g. InMemeory and FileBased). On the client one would most likely
use a simplified version where users only parse an InputStream.
best
Rupert
On Wed, Mar 27, 2013 at 10:42 AM, Reto Bachmann-Gmür <[email protected]> wrote:
> Just to add an example:
>
> I think one should be able to use the interface
>
> http://svn.apache.org/viewvc/stanbol/trunk/contenthub/servicesapi/src/main/java/org/apache/stanbol/contenthub/servicesapi/search/featured/FeaturedSearch.java?view=markup
>
> both to search against the local instance as well as a remote instance and
> that it's not necessary to have
>
> https://github.com/zaizi/apache-stanbol-client/blob/master/src/main/java/org/apache/stanbol/client/contenthub/search/services/StanbolContenthubFeaturedSearchService.java
>
> Cheers,
> Reto
>
> On Wed, Mar 27, 2013 at 10:31 AM, Reto Bachmann-Gmür <[email protected]>wrote:
>
>>
>>
>> On Wed, Mar 27, 2013 at 10:06 AM, Rupert Westenthaler <
>> [email protected]> wrote:
>>
>>> Hi Rafa,
>>>
>>> On Tue, Mar 26, 2013 at 5:12 PM, Rafa Haro <[email protected]> wrote:
>>> > Dear all,
>>> >
>>> > We have recently released a new version of our Java Apache Stanbol
>>> Client
>>> > (https://github.com/zaizi/apache-stanbol-client). The project
>>> intention is
>>> > to ease Apache Stanbol integrators to use Stanbol in their Java
>>> projects.
>>> > The tool covers almost the full REST API for the following Stanbol
>>> > components: Enhancer, ContenHub, EntityHub and Sparql.
>>> >
>>>
>>> Looks great! Would be really cool to have this in Stanbol!
>>>
>>
>> Did you see my email? I agree it looks good but I think our API should
>> look good in general and that you should be able to use the same nice
>> interfaces to access the data both directly in the same vm as the services
>> as well as remotely. In some cases it makes sense to have a façade to make
>> the interface easier but in this case the question why the façaded
>> interface has to be complex in the first place.
>>
>> Cheers,
>> Reto
>>
>>
>>>
>>> best
>>> Rupert
>>>
>>> > If anyone is interested on use it for his own projects, it would be
>>> great
>>> > for us to have some feedback, suggestions, improvements.....We also
>>> > encourage all of you to participate in its development if you find it
>>> > useful.
>>> >
>>> > Regards!
>>> >
>>> > --
>>> >
>>> > ------------------------------
>>> > This message should be regarded as confidential. If you have received
>>> this
>>> > email in error please notify the sender and destroy it immediately.
>>> > Statements of intent shall only become binding when confirmed in hard
>>> copy
>>> > by an authorised signatory.
>>> >
>>> > Zaizi Ltd is registered in England and Wales with the registration
>>> number
>>> > 6440931. The Registered Office is 222 Westbourne Studios, 242 Acklam
>>> Road,
>>> > London W10 5JJ, UK.
>>>
>>>
>>>
>>> --
>>> | Rupert Westenthaler [email protected]
>>> | Bodenlehenstraße 11 ++43-699-11108907
>>> | A-5500 Bischofshofen
>>>
>>
>>
--
| Rupert Westenthaler [email protected]
| Bodenlehenstraße 11 ++43-699-11108907
| A-5500 Bischofshofen