Hi Sebstian Thank for the code snipped. I was unaware this functionality was part of VIE (saw something similar in the defunct VIE²) and was assuming that I had to care about implementing the REST calls myself. What serialization format is this VIE functionality using for communication with the server, not JSON-LD?
What are / how can I use the entities passes to the callback function? Can I get the triples from them and add them to an rdfQuery databank? Cheers, Reto On Thu, Sep 29, 2011 at 3:00 PM, Sebastian Germesin <[email protected]> wrote: > Hi Reto, > > just a short question: >> >> As a next step I would like to integrate VIE in the enhancer interface so >> that the enhancements appear while you type. VIE could pass its content as >> JSON-LD with ajax to the server. Is there an existing MessageBodyReader or >> other JSON-LD parser in use in Stanbol or elsewhere? >> > > I don't understand the information flow here. The user types something into > a text-field. The text gets then send to stanbol using VIE (see code > example) > > var elem = $('<p>This is a small test, where Steve Jobs sings a song.</p>'); > var v = new VIE(); > > v > .use(new v.StanbolService({name: 'stanbol', url : "/"})) > .analyze({element: elem}) > .using('stanbol') > .execute() > .done(function(entities) { > //Your code goes here > }) > .fail(function(f){ > //Your error-handling-code goes here > }); > > and after that, each returned entity could be presented on the UI. Where do > you > want to pass around JSON-LD Objects? > > Thanks, > > Sebastian > >> >> Cheers, >> Reto > > -- > M.Sc. Sebastian Germesin > Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH (DFKI) > > Stuhlsatzenhausweg 3 > 66123 Saarbruecken > Germany > > Tel.: +49.681.85775.5079 > Fax.: +49.681.85775.5021 > > email: [email protected] > GPG: http://www.dfki.de/~germesin/gpg/germesin_dfki.gpgkey > web: http://www.dfki.de/~germesin > skype: neogermi1337 > twitter: germesin > github: http://github.com/neogermi > > ### > # > # > >
