[Fiware-lab-help] Semantic Annotation GE

Kißels, Timm timm.kissels at iais.fraunhofer.de
Wed Apr 9 14:09:51 CEST 2014


Hello Boris, hello Fabio,

thank you for your answer. At the moment I do not need this kind of functionality. I experienced similar issues some time ago while using an API so I was just aksing if there may be an easy way to fix this just in case. It is sufficient that the GE is now working again  and that I can proceed with my developments.

Thank you and best regards,
Timm

Von: Moltchanov Boris [mailto:boris.moltchanov at telecomitalia.it]
Gesendet: Mittwoch, 9. April 2014 12:07
An: Kißels, Timm
Cc: Eble, Michael; Kirch, Sebastian; Mondin Fabio Luciano
Betreff: RE: Semantic Annotation GE

Hi Timm,

we've had our GE unavailable in the FI-WARE for some technical issues happened during the last migration, thus this took some time to recover the situation. I apologize for making your waiting. Now it up and running thanks to Fabio.

Regarding your request, we will need to evaluate it in terms of effort to implement it as supposed by Fabio.

On another hand, the process of the changes request is regulated by the FI-WARE. There is a dedicated to the use-case projects page in the FI-WARE wiki allowing to insert new tickets http://forge.fi-ware.org/plugins/mediawiki/wiki/fiware/index.php/Unclassified_Themes/Epics/Features_Backlog, while the backlog tracker itself is available (and editable) at the https://forge.fi-ware.org/tracker/?atid=163&group_id=7&func=browse page (btw, you have to be registered in order to submit a new ticket).
BUT, I'm afraid that the new developments (and consequently) new releases are frozen until the end of the project (few months). Nevertheless, if you really need this functionality (and after check with our internal team) we may ask to "unfroze" the component development (maybe as a bug fix :)) and produce this change, if it will take little time and effort.

Please, let me know, that I move this request in FI-WARE and discuss it internally in TI.

Thank you very much.

Best Regards,
Boris

From: Mondin Fabio Luciano
Sent: Wednesday, April 09, 2014 11:44 AM
To: Kißels, Timm
Cc: Eble, Michael; Kirch, Sebastian; Moltchanov Boris
Subject: RE: Semantic Annotation GE

Dear Timm
At now, we do not support POST requests, but I don't think it would be a great issue to add this to the enabler. Perhaps it could be something like "if text GET parameter is empty, check POST parameter named text...". I have to check with Boris if this has impacts in terms of burcoracy/documentation/project, since I actually don't know perfectly FIWARE workflow, I just make this enabler work.

Let me know if you need this, and in parallel we check about this feature request.

Thanks,
Fabio

From: Kißels, Timm [mailto:timm.kissels at iais.fraunhofer.de]
Sent: lunedì 7 aprile 2014 11:58
To: Mondin Fabio Luciano
Cc: Eble, Michael; Kirch, Sebastian; Moltchanov Boris
Subject: AW: Semantic Annotation GE

Dear Fabio,

thank you for this very detailed explanation of the service. One short question about the query parameter: Do you allow requests which contain the text snippet also as a POST body? There might be some limitations to the GET method due to length restrictions of URLs while using different clients and/or operating systems.

Cheers,
Timm

Von: Mondin Fabio Luciano [mailto:fabioluciano.mondin at telecomitalia.it]
Gesendet: Montag, 7. April 2014 11:30
An: Kißels, Timm; Moltchanov Boris
Cc: Eble, Michael; Kirch, Sebastian
Betreff: RE: Semantic Annotation GE

Dear Timm,
thank you for you patience.

The enabler is now (again) up and running and all of the information in the catalogue is compliant to the running instance.
I will explain you very shortly how does it works. The enabler consists of a very simple API, responding to a GET HTTP request to

http://semantican.testbed.fi-ware.eu/ajax/extract_words.php

there is a main parameter to send, which is "text" , which should be send as an http GET param, this way (text gets urlencoded):

http://semantican.testbed.fi-ware.eu/ajax/extract_words.php?text=Torino%20is%20a%20wonderful%20city,%20who%20hosted%20the%20olympic%20games%20in%202006.%20The%20mayor%20is%20Piero%20Fassino

That will return a json, which for the specific case will be as follows:

{
                        "queryId": "1202",
                        "lang": "en",
                        "keywords": "Torino Piero+Fassino",
                        "extags": "city hosted Torino wonderful olympic Piero Fassino games mayor",
                        "freeling": "Torino Piero_Fassino",
                        "proc_time": "2",
                        "terms": [
                        {"id": "tc-Torino",
                                               "term": "Torino",
                                               "candidates": [
                                                                                              {"id": "tag--Torino--http://dbpedia.org/resource/Torino_(typeface)",
                                                                                                                      "label": "Torino",
                                                                                                                      "uri": "http://dbpedia.org/resource/Torino_(typeface)",
                                                                                                                      "type": "tag",
                                                                                                                      "ext": "Torino (typeface)",
                                                                                                                      "extra": [],
                                                                                                                      "wrapper": "dbpedia",
                                                                                                                      "lev": "0",
                                                                                                                      "sim": "1",
                                                                                                                      "sis": "1",
                                                                                                                      "jw": "1",
                                                                                                                      "sc": "0.38273124299982",
                                                                                                                      "class": "empty",
                                                                                                                      "preferred": "true"},
                                                                                              {"id": "tag--Torino--http://dbpedia.org/resource/Torino_CF",
                                                                                                                      "label": "Torino CF",
                                                                                                                      "uri": "http://dbpedia.org/resource/Torino_CF",
                                                                                                                      "type": "organization",
                                                                                                                      "ext": "Torino CF",
                                                                                                                      "extra": [],
                                                                                                                      "wrapper": "dbpedia",
                                                                                                                      "lev": "3",
                                                                                                                      "sim": "0.8",
                                                                                                                      "sis": "1",
                                                                                                                      "jw": "0.93333333333333",
                                                                                                                      "sc": "0.25358977831721",
                                                                                                                      "class": "empty"},
                                                                                              {"id": "tag--Torino--http://dbpedia.org/resource/Gran_Torino",
                                                                                                                      "label": "Gran Torino",
                                                                                                                      "uri": "http://dbpedia.org/resource/Gran_Torino",
                                                                                                                      "type": "tag",
                                                                                                                      "ext": "Gran Torino",
                                                                                                                      "extra": [],
                                                                                                                      "wrapper": "dbpedia",
                                                                                                                      "lev": "5",
                                                                                                                      "sim": "0.70588235294118",
                                                                                                                      "sis": "1",
                                                                                                                      "jw": "0.59090909090909",
                                                                                                                      "sc": "0.26619275167385",
                                                                                                                      "class": "empty"},
                                                                                              {"id": "tag--Torino--http://dbpedia.org/resource/Torino_F.C.",
                                                                                                                      "label": "Torino F.C.",
                                                                                                                      "uri": "http://dbpedia.org/resource/Torino_F.C.",
                                                                                                                      "type": "organization",
                                                                                                                      "ext": "Torino F.C.",
                                                                                                                      "extra": [],
                                                                                                                      "wrapper": "dbpedia",
                                                                                                                      "lev": "5",
                                                                                                                      "sim": "0.70588235294118",
                                                                                                                      "sis": "1",
                                                                                                                      "jw": "0.90909090909091",
                                                                                                                      "sc": "1",
                                                                                                                      "class": "empty"},
                                                                                              {"id": "tag--Torino--http://dbpedia.org/resource/Torino_Film_Festival",
                                                                                                                      "label": "Torino Film Festival",
                                                                                                                      "uri": "http://dbpedia.org/resource/Torino_Film_Festival",
                                                                                                                      "type": "event",
                                                                                                                      "ext": "Torino Film Festival",
                                                                                                                      "extra": [],
                                                                                                                      "wrapper": "dbpedia",
                                                                                                                      "lev": "14",
                                                                                                                      "sim": "0.46153846153846",
                                                                                                                      "sis": "1",
                                                                                                                      "jw": "0.86",
                                                                                                                      "sc": "0.27349434831142",
                                                                                                                      "class": "empty"},
                                                                                              {"id": "tag--Torino--http://dbpedia.org/resource/R.S._Ginnastica_Torino",
                                                                                                                      "label": "R.S. Ginnastica Torino",
                                                                                                                      "uri": "http://dbpedia.org/resource/R.S._Ginnastica_Torino",
                                                                                                                      "type": "organization",
                                                                                                                      "ext": "R.S. Ginnastica Torino",
                                                                                                                      "extra": [],
                                                                                                                      "wrapper": "dbpedia",
                                                                                                                      "lev": "16",
                                                                                                                      "sim": "0.42857142857143",
                                                                                                                      "sis": "1",
                                                                                                                      "jw": "0.54545454545455",
                                                                                                                      "sc": "0.3784570596299",
                                                                                                                      "class": "empty"},
                                                                                              {"id": "tag--Torino--http://dbpedia.org/resource/Stadio_Olimpico_di_Torino",
                                                                                                                      "label": "Stadio Olimpico di Torino",
                                                                                                                      "uri": "http://dbpedia.org/resource/Stadio_Olimpico_di_Torino",
                                                                                                                      "type": "location",
                                                                                                                      "ext": "Stadio Olimpico di Torino",
                                                                                                                      "extra": [],
                                                                                                                      "wrapper": "dbpedia",
                                                                                                                      "lev": "19",
                                                                                                                      "sim": "0.38709677419355",
                                                                                                                      "sis": "1",
                                                                                                                      "jw": "0.54",
                                                                                                                      "sc": "0.44330373508527",
                                                                                                                      "class": "empty"},
                                                                                              {"id": "tag--Torino--http://dbpedia.org/resource/Internazionale_F.C._Torino",
                                                                                                                      "label": "Internazionale F.C. Torino",
                                                                                                                      "uri": "http://dbpedia.org/resource/Internazionale_F.C._Torino",
                                                                                                                      "type": "organization",
                                                                                                                      "ext": "Internazionale F.C. Torino",
                                                                                                                      "extra": [],
                                                                                                                      "wrapper": "dbpedia",
                                                                                                                      "lev": "20",
                                                                                                                      "sim": "0.375",
                                                                                                                      "sis": "1",
                                                                                                                      "jw": "0.44017094017094",
                                                                                                                      "sc": "0.43563689415004",
                                                                                                                      "class": "empty"}],
                                               "html": "<fieldset><legend>Concetti associati a <strong>Torino</strong></legend><ul><li><img src='../img/tag.png' alt='tag' title='tag'> <a href='http://dbpedia.org/resource/Torino_(typeface)' target='_blank' title='[0-1-1/0.38273124299982]' >Torino (typeface)</a> (dbpedia)</li><li><img src='../img/organization.png' alt='organization' title='organization'> <a href='http://dbpedia.org/resource/Torino_CF' target='_blank' title='[3-0.8-0.93333333333333/0.25358977831721]' >Torino CF</a> (dbpedia)</li><li><img src='../img/tag.png' alt='tag' title='tag'> <a href='http://dbpedia.org/resource/Gran_Torino' target='_blank' title='[5-0.70588235294118-0.59090909090909/0.26619275167385]' >Gran Torino</a> (dbpedia)</li><li><img src='../img/organization.png' alt='organization' title='organization'> <a href='http://dbpedia.org/resource/Torino_F.C.' target='_blank' title='[5-0.70588235294118-0.90909090909091/1]' >Torino F.C.</a> (dbpedia)</li><li><img src='../img/event.png' alt='event' title='event'> <a href='http://dbpedia.org/resource/Torino_Film_Festival' target='_blank' title='[14-0.46153846153846-0.86/0.27349434831142]' >Torino Film Festival</a> (dbpedia)</li><li><img src='../img/organization.png' alt='organization' title='organization'> <a href='http://dbpedia.org/resource/R.S._Ginnastica_Torino' target='_blank' title='[16-0.42857142857143-0.54545454545455/0.3784570596299]' >R.S. Ginnastica Torino</a> (dbpedia)</li><li><img src='../img/location.png' alt='location' title='location'> <a href='http://dbpedia.org/resource/Stadio_Olimpico_di_Torino' target='_blank' title='[19-0.38709677419355-0.54/0.44330373508527]' >Stadio Olimpico di Torino</a> (dbpedia)</li><li><img src='../img/organization.png' alt='organization' title='organization'> <a href='http://dbpedia.org/resource/Internazionale_F.C._Torino' target='_blank' title='[20-0.375-0.44017094017094/0.43563689415004]' >Internazionale F.C. Torino</a> (dbpedia)</li></ul></fieldset>",
                                               "class": "empty"},
                        {"id": "tc-Piero+Fassino",
                                               "term": "Piero Fassino",
                                               "candidates": [
                                                                                              {"id": "tag--Piero_Fassino--http://dbpedia.org/resource/Piero_Fassino",
                                                                                                                      "label": "Piero Fassino",
                                                                                                                      "uri": "http://dbpedia.org/resource/Piero_Fassino",
                                                                                                                      "type": "user",
                                                                                                                      "ext": "Piero Fassino",
                                                                                                                      "extra": [],
                                                                                                                      "wrapper": "dbpedia",
                                                                                                                      "lev": "2",
                                                                                                                      "sim": "0.92307692307692",
                                                                                                                      "sis": "1",
                                                                                                                      "jw": "0.96923076923077",
                                                                                                                      "sc": "1",
                                                                                                                      "class": "empty",
                                                                                                                      "preferred": "true"},
                                                                                              {"id": "tag--Piero_Fassino--http://dbpedia.org/resource/Democrats_of_the_Left",
                                                                                                                      "label": "Demokraci Lewicy",
                                                                                                                      "uri": "http://dbpedia.org/resource/Democrats_of_the_Left",
                                                                                                                      "type": "tag",
                                                                                                                      "ext": "Demokraci Lewicy",
                                                                                                                      "extra": [],
                                                                                                                      "wrapper": "sindice",
                                                                                                                      "lev": "21",
                                                                                                                      "sim": "0.27586206896552",
                                                                                                                      "sis": "1",
                                                                                                                      "jw": "0.49903846153846",
                                                                                                                      "sc": "",
                                                                                                                      "class": "empty"}],
                                               "html": "<fieldset><legend>Concetti associati a <strong>Piero Fassino</strong></legend><ul><li><img src='../img/user.png' alt='user' title='user'> <a href='http://dbpedia.org/resource/Piero_Fassino' target='_blank' title='[2-0.92307692307692-0.96923076923077/1]' >Piero Fassino</a> (dbpedia)</li><li><img src='../img/tag.png' alt='tag' title='tag'> <a href='http://dbpedia.org/resource/Democrats_of_the_Left' target='_blank' title='[21-0.27586206896552-0.49903846153846/]' >Demokraci Lewicy</a> (sindice)</li></ul></fieldset>",
                                               "class": "empty"}]
}

The enabler analyses the text in input, it finds the entities in text (which are basically persons,places and organizations). So, the firs level ARRAY "terms" contains the entities found in the text (in the example: Torino and Piero Fassino).
Then, for each "term" it returns an array of candidates which are the entries in the semantic datasets, which could be correlated to the entity found. Each candidate has a descriptor containing the dataset URI of the resource, the label, the wrapper (meaning the dataset from whom it has been taken (dbepdia...) and a "preferred" flag, meaning that THAT candidate is the one which is more lilkely to be the one which the text really refers to.

Finally, for each term, there is an "html" field, which shows an html snippets with the "linked" list of the candidates, which could be useful in case your application wants to let the real candidate choice to the final user.

I hope this helps! Let me know if you need more help!
Regards,
Fabio


From: Kißels, Timm [mailto:timm.kissels at iais.fraunhofer.de]
Sent: lunedì 7 aprile 2014 08:22
To: Moltchanov Boris; Mondin Fabio Luciano
Cc: Eble, Michael; Kirch, Sebastian; fiware-lab-help at lists.fi-ware.eu<mailto:fiware-lab-help at lists.fi-ware.eu>
Subject: Semantic Annotation GE

Dear Boris, dear Fabio,

I would like to kindly remind you both of my request for some help on using the semantic annotation GE. I appended my initial email on this topic.

Best regards,
Timm Kissels

---------------------------
M. Sc. Timm Kißels
Research Engineer, Netmedia
Fraunhofer Institut Intelligente Analyse- und Informationssysteme
Schloss Birlinghoven
53754 Sankt Augustin
Germany
Telefon: +49 (0) 22 41 / 14-1908
Fax:     +49 (0) 22 41 / 14-4-1908
Email: Timm.Kissels at iais.fraunhofer.de<mailto:Timm.Kissels at iais.fraunhofer.de>
Internet: www.iais.fraunhofer.de<http://www.iais.fraunhofer.de/>


From: Kißels, Timm [mailto:timm.kissels at iais.fraunhofer.de]
Sent: Wednesday, March 12, 2014 1:40 PM
To: Moltchanov Boris; Mondin Fabio Luciano
Cc: Kirch, Sebastian
Subject: Semantic Annotation GE

Dear Boris, dear Fabio,

my name is Timm Kissels and I am a software engineer at Fraunhofer IAIS. I am responsible for the development of a specific enabler regarding the FI-Content project. Currently I am working on an integration of two generic enablers with our software. One of these enablers is your semantic annotation GE. A colleague of mine, Sebastian Kirch, already did some testing on an older version of the GE last year. Now I am trying to evaluate it regarding our SE but unfortunately it is quite hard for me to find information about the GE and how to use it. Sebastian gave me some links which perhaps may be outdated due to some recent changes of the FI-Content testbed (change from .eu to .org, etc.). In addition it seems to me that the necessary information are quite spread over several resources. So I kindly ask you if you can give me some hints to the right resources where I can find up-to-date information especially regarding the location of the current service and how to use and authenticate with it (tutorials/examples are welcome).

Best regards,
Timm Kissels


Questo messaggio e i suoi allegati sono indirizzati esclusivamente alle persone indicate. La diffusione, copia o qualsiasi altra azione derivante dalla conoscenza di queste informazioni sono rigorosamente vietate. Qualora abbiate ricevuto questo documento per errore siete cortesemente pregati di darne immediata comunicazione al mittente e di provvedere alla sua distruzione, Grazie.

This e-mail and any attachments is confidential and may contain privileged information intended for the addressee(s) only. Dissemination, copying, printing or use by anybody else is unauthorised. If you are not the intended recipient, please delete this message and any attachments and advise the sender by return e-mail, Thanks.
[rispetta l'ambiente]Rispetta l'ambiente. Non stampare questa mail se non è necessario.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-lab-help/attachments/20140409/e8e69ec7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 677 bytes
Desc: image001.gif
URL: <https://lists.fiware.org/private/fiware-lab-help/attachments/20140409/e8e69ec7/attachment.gif>


More information about the Fiware-lab-help mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy