Hi Sabine, For a ManagedSite [1] the configured mappings are applied if you create/update an Entity via the RESTful API. For ReferencedSites they are only used when you import Entities from a ReferencedSite to the Entityhub.
You can also have this feature for ReferencedSites, but in that case it depends on the configuration: 1) If you use the Entityhub Indexing Tool, you need to configure the mapping in the indexing/config/mappings.txt file before the indexing. In this case your data will be converted during the indexing process. 2) if you configure the ReferencedSite to use remote services (Access URI, Query Service URI) for getting the EntityData, you will need to configure a local Cache (Cache ID, Cache Strategy=Used). Configure a ClerezzaYard or SolrYard with the id given by Cache ID and finally configure a Cache (Entityhub Cache Configuration) for the Yard. For this cache you can add the "dctype:subject > rdf:type" mapping in the "Cache Mappings" configuration. In this case your data will be converted after they are dereferenced from the remote service and stored to the Cache. However NOTE that queries for rdf:type would not work, as they are executed on the remote site. You can also use the LDPath support to transform EntityData. The following statement rdf:type = dc:subject; when added to a find ('entityhub/site/{site-name}/find') request, field query ('entityhub/site/{site-name}/query') or a LDPath request ('entityhub/site/{site-name}/ldpath') would also copy all dc:subject values to rdf:type. But for this option you will also need to query for dc:subject, as the transformation is only done when returning the results. There are no rdf:type values stored in the Entityhub So if you want to have transformation of the data like that I would recommend you to go for a ManagedSite or (if the data do not change often) use the Entityhub Indexing Tool and configure the desired mappings before indexing. For both cases you will need the STW data available at [2] best Rupert [1] https://stanbol.apache.org/docs/trunk/components/entityhub/managedsite#configuration-of-the-yardsite [2] http://zbw.eu/stw/versions/latest/download/about.en.html On Tue, Jun 11, 2013 at 6:49 PM, Sabine Schmidt <sabine.schm...@studium.uni-erlangen.de> wrote: > Deleting the field mappings works indeed, thank you! > > But I think I was using the wrong approach then, because I actually wanted to > change the mappings e. g. I want to change the dcterms:subject of my entity > to rdf:type. Where would I have to configure that? > > -----Ursprüngliche Nachricht----- > Von: Rupert Westenthaler [mailto:rupert.westentha...@gmail.com] > Gesendet: Dienstag, 11. Juni 2013 11:25 > An: dev@stanbol.apache.org > Betreff: Re: Felix Console Entityhub Index changes failed with message FULL > head > > Hi Sabine > > This happens if the configuration is to big and the request sent by the Felix > Web Console is to big to get processed by the embedded Jetty server. In such > cases you will need to change the configuration directly in the according > config file. You should be able to find this in "stanbol/datafiles" folder. > > If you prefer to change the config via the Felix Web Console you will need to > try to reduce the size of the configuration (e.g. by deleting all lines with > comments from the "Field Mappings" config). If you do not plan to use the > Entityhub lookup service (import entities from Referenced/Managed sites to > the Entityhub) you can also delete the whole "Field Mapping" configuration as > it is anyways only used for that. > > best > Rupert > > > On Tue, Jun 11, 2013 at 10:35 AM, Sabine Schmidt > <sabine.schm...@studium.uni-erlangen.de> wrote: >> Hello, >> >> >> >> I am afraid I have another problem with stanbol. I downloaded the >> prebuilt stw index from your site and would like to change the default >> field mappings. >> >> >> >> As far as I understood I can do so in the Entityhub Referenced Site >> configurations. However if I want to save changes I get an Ajax error >> saying "The request failed: FULL head". What does that mean? This >> error does not occur if I change the field mappings of my dbpedia index. >> >> >> >> Thank you very much! >> >> Sabine >> > > > > -- > | Rupert Westenthaler rupert.westentha...@gmail.com > | Bodenlehenstraße 11 ++43-699-11108907 > | A-5500 Bischofshofen > -- | Rupert Westenthaler rupert.westentha...@gmail.com | Bodenlehenstraße 11 ++43-699-11108907 | A-5500 Bischofshofen