Hi,
When trying to add the types to the Dutch index that I'm currently creating
(using AddTypesToIndex), I noticed that the type info was not present. After
closer inspection I noticed the following:
The applications starts with loading the indexing configuration parameters
in the object "config". Next, the type info from the file pointed to in
indexing.properties is loaded via loadTypes in AddTypesToIndex. This method
in turn executes TypesLoader.getTypesMap_java(input), which reads the
subject and object of each triple in this file. In this method, a new
DBpediaResource object is created via new
DBpediaResource(triple(0).toString).
However, in this constructor the value of
SpotlightConfiguration.DEFAULT_NAMESPACE (which has the value
"http://dbpedia.org/resource/") is used instead of the value that is
configured in indexing.properties (e.g., http://nl.dbpedia.org/resource/).
Consequently, the resources in the typesMap remain their full length. This
causes the type info to not be included in the index because the index has,
until this point, properly removed the common URL part.
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Dbp-spotlight-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbp-spotlight-users