Hi Andrea,
On Mon, Nov 12, 2012 at 12:59 PM, Andrea Taurchini <ataurch...@gmail.com> wrote: > folder /indexing/dist the two files : > > 1)dbpedia.solrindex.zip > 2)org.apache.stanbol.data.site.dbpedia-{version}.jar > > I prefer to install it as a new referenced site and not overwriting it to > previous dbpedia english index so I made the following : > > 1) saved the zip in the stanbol/datafiles directory > 2) installed the bundle using the Apache Felix web console > > So I have a new referenced site under http://localhost:8080/entityhub. > The problem is that if I try to search for an entity such as > > curl " > http://localhost:8080/entityhub/site/ITdbpedia/entity?id=http://dbpedia.org/resource/Paris > " > How have you managed to deploy the Site under "ITdbpedia"? Have you manually changed the configuration after installing the Bundle? While this might work (if you correctly adapt the configuration for the ReferencedSite, Cache and SolrYard those will still override the configurations of the default DBpedia index simple because the OSGI config files provided by the bundle (2) do have the same name as the default dbpedia index config files. > <p>Problem accessing /entityhub/site/ITdbpedia/find. Reason: > <pre> Unable to initialize the Cache with Yard ITdbpediaIndex! This > is usually caused by Errors while reading the Cache Configuration from > the Yard.</pre></p><h3>Caused > by:</h3><pre>java.lang.IllegalStateException: Unable to initialize the > Cache with Yard ITdbpediaIndex! This is usually caused by Errors while > reading the Cache Configuration from the Yard. This usually happens if the SolrYard "ITdbpediaIndex" is configured for a SolrCore that is not available. Are you sure that a SolrCore with the name configured for the "Solr Index/Core" property of the ITdbpediaIndex SolrYard is available? Assuming you have configured {solr-core} you will need to (a) extract the "dbpedia.solrindex.zip" file (b) rename the root folder from "dbpedia" to "{solr-core}" (c) re-create the ZIP file (d) rename it to "{solr-core}.solrindex.tzp". - - - The intended way to change the name of a ReferencedSite created by the Entityhub Indexing Tool is to change the value of the "name" property within the "./indexing/config/indexing.properties" file. In case of the dbpedia Indexing tool you need to change the "indexingDestination" from indexingDestination=org.apache.stanbol.entityhub.indexing.destination.solryard.SolrYardIndexingDestination,solrConf,boosts:fieldboosts to indexingDestination=org.apache.stanbol.entityhub.indexing.destination.solryard.SolrYardIndexingDestination,solrConf:dbpedia,boosts:fieldboosts NOTE the change from "solrConf" to "solrConf:dbpedia". This is necessary to tell the SolrYardIndexingDestination component that the SolrCore configuration is called "dbpedia". By default it assumes that the name is equals to the value of the "name" property. Before re-indexing you should also delete the "./indexing/destination" folder as otherwise you will have both the data of the old index (dbpedia) and the new one {name} in the destination folder. - - - If you want to create an "installable bundle" without reindexing the data you can follow the following steps: 0. if there are still files in the indexing/resources/rdfdata folder remove them as they are already imported into the Jena TDB store (indexing/resources/tdb) 1. make the changes as described above 2. delete the indexing/destination folder (make sure to NOT delete the indexing/dist folder!) 3. replace the indexing/resource/incoming_links.txt file with an empty one (make sure to not delete the current version) 4. start the indexing (this should now complete in some seconds as no entities are indexed. After that you should see in the indexing/dist folder 4 files a. "dbpedia.solrindex.zip" b. "{name}.solrindex.zip" (this is empty - delete it) c. "org.apache.stanbol.data.site.dbpedia-{version}.jar" (the old bundle - delete it) d. "org.apache.stanbol.data.site.{name}-{version}.jar (the new bundle) (d) is the patched Bundle that you can use to install your custom dbpedia index without overriding the default one. However to use this bundle you need still modify the "dbpedia.solrindex.zip" as described above: (a) extract the "dbpedia.solrindex.zip" file (b) rename the root folder from "dbpedia" to "{name}" (c) re-create the ZIP file (d) renme it to "{name}.solrindex.zip". I admit that those steps are complex, but they might save you the time needed to re-create your index. best Rupert -- | Rupert Westenthaler rupert.westentha...@gmail.com | Bodenlehenstraße 11 ++43-699-11108907 | A-5500 Bischofshofen