Thank you very much Max. I'm forwarding this to the list: > Hi again, > > On Thu, Nov 29, 2012 at 2:07 PM, Rafa Haro <[email protected]> wrote: >> Max thinks the fact that Type field doesn't appear >> in my generated index is caused by the use of Spanish namespaces ( >> org.dbpedia.spotlight.default_namespace = http://es.dbpedia.org/resource/ >> instead of org.dbpedia.spotlight.default_namespace = >> http://dbpedia.org/resource/). > What I meant before was actually, that changing this property in the > properties file does have an effect! This has to be fixed ASAP. I'll > see what I can do in the next days. > > To really change the namespace, at the moment, you have to change it > in the code: > https://github.com/dbpedia-spotlight/dbpedia-spotlight/blob/master/core/src/main/java/org/dbpedia/spotlight/model/SpotlightConfiguration.java#L53 > >> if I download the spanish >> datasets but use as default namespace http://dbpedia.org/resource/: >> Are the indexes going to be generated properly? >> Is this going to fix the Type field issue? > Internally in Spotlight, we only use the last part of the URI (after > 'http://dbpedia.org/resource/') as the identifiers. In the index, the > URI field contains these identifiers. > When we add types to the index from an .nt file, we have to remove the > namespace of a URI in order to find the corresponding document in the > index and add the type. If this removal fails because of a wrong > namespace (uses String.replace), the AddTypesToIndex process looks for > identifiers starting with 'http://es.dbpedia...' and does not find any > in the index. > > The reason why it works to have short identifiers when creating the > index and does not work when adding types, is that the index is > created from Wikipedia which does not know anything about DBpedia > namespaces to begin with. > > Does this answer your questions? > > Cheers, > Max
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. ------------------------------------------------------------------------------ Keep yourself connected to Go Parallel: VERIFY Test and improve your parallel project with help from experts and peers. http://goparallel.sourceforge.net _______________________________________________ Dbp-spotlight-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dbp-spotlight-users
