Hello, thanks, i am going to take a look at that
On Mon, Aug 26, 2013 at 8:46 AM, Rupert Westenthaler < rupert.westentha...@gmail.com> wrote: > Hi Joseph > > I tried to replicate this issue but failed to do it. > > My configuration: > > * As vocabulary I used a geonames.org index similar to [1] > * I configured a typical chain: langdetect, opennlp-token, > opennlp-sentence, opennlp-pos, geonames-linking > * geonames-linking is an EntityhubLinkingEngine configured for the > geonames index. > > To ensure that the geonames featureCode is used as type instead of the > default rdf:type I added the following configuration to the engine > > enhancer.engines.linking.typeField=" > http://www.geonames.org/ontology#featureCode" > > After that I tested with the text "Paris is a very nice City in > France." and got the following fise:EntityAnnotation (removed some > triples to keep the mail short) > > <rdf:Description > rdf:about="urn:enhancement-424be11a-552a-a764-c8c2-81bfc58c4be4"> > <rdf:type > rdf:resource="http://fise.iks-project.eu/ontology/EntityAnnotation"/> > <rdf:type > rdf:resource="http://fise.iks-project.eu/ontology/Enhancement"/> > <j.4:entity-type > rdf:resource="http://www.geonames.org/ontology#P.PPLC"/> > <j.4:entity-label xml:lang="en">Paris</j.4:entity-label> > <j.4:entity-reference rdf:resource=" > http://sws.geonames.org/2988507/"/> > <j.2:site>geonames</j.2:site> > <j.1:relation > rdf:resource="urn:enhancement-44adf661-0306-1bb7-fe34-af3ac5e59168"/> > </rdf:Description> > > you can clearly see that the added fise:entity-type property is as > expected the genomes:featureCode. I also had a look at the code and > could not find any problem. Because of that I was "again" reading your > initial mail and I think I found the reason. > > The different EntityAnnotations have included in our initial mail do > come from two different Entityhub Sites! > > Here the one with the correct fise:entity-type > > On Fri, Aug 2, 2013 at 12:14 PM, Joseph M'Bimbi-Bene wrote: > > <rdf:Description > > rdf:about="urn:enhancement-1f443226-3f8b-aee9-ab31-6ca9a34dbaae"> > > <j.4:entity-type rdf:resource=" > http://www.edf.fr/EdfAcronyme.owl#Acronyme"/> > > <rdf:type rdf:resource=" > http://fise.iks-project.eu/ontology/EntityAnnotation"/> > > <rdf:type rdf:resource=" > http://fise.iks-project.eu/ontology/Enhancement"/> > > <j.4:entity-label>EMI</j.4:entity-label> > > <j.4:entity-reference rdf:resource=" > http://www.edf.fr/EdfAcronyme.owl#EMI"/> > > <j.3:site>EDFAcronymeMS</j.3:site> > > </rdf:Description> > > NOTE the '<j.3:site>EDFAcronymeMS</j.3:site>' > > In contrast the one without an fise:entity-type > > > <rdf:Description > > rdf:about="urn:enhancement-52cdf80e-64ed-9f1c-c4bb-6a2d222f732d"> > > <rdf:type rdf:resource=" > http://fise.iks-project.eu/ontology/EntityAnnotation"/> > > <rdf:type rdf:resource=" > http://fise.iks-project.eu/ontology/Enhancement"/> > > <j.4:entity-label>EMI</j.4:entity-label> > > <j.4:entity-reference rdf:resource=" > http://www.edf.fr/EdfAcronyme.owl#EMI"/> > > <j.3:site>EDFImplantationMS</j.3:site> > > </rdf:Description> > > NOTE that this entity - even that is has the same URI do come from a > different Entityhub Site '<j.3:site> EDFImplantationMS </j.3:site>'! > > So my assumption is that the entity in 'EDFImplantationMS' simple does > not define the expected type. > > Hope this helps in tracking down the issue > > best > Rupert > > > -- > | Rupert Westenthaler rupert.westentha...@gmail.com > | Bodenlehenstraße 11 ++43-699-11108907 > | A-5500 Bischofshofen >