Hi Gregor, As the description says the configured mappings are only applied to Entities imported from ReferencedSites to the Entityhub.
The initial Idea of the "Entityhub" (the service not the component) was that it is used to manage your own entities by first configure several ReferencedSites and than importing those Entities to the "Entityhub" that you are using (and modifying). So those mappings allowed to align the schema of ReferencedSites to the schema used for your entities. They are not applied to Entities directly uploaded to the Entityhub (as the assumption was that those do already follow your schema). However as it turned out the Entityhub was rarely used like that. If you want to upload Entities (e.g. a SKOS thesauri) and apply mappings to the Entities you need to use a ManagedSite. [1] provides a good description on how to do that. Mappings configured for ManagedSites are applied to all uploaded RDF data. So defining "skos:prefLabel > rdfs:label" and "skos:altLabel > rdfs:label" will add the "rdfs:label" you expect to have for entity-linking. Hope this helps best Rupert [1] http://stanbol.apache.org/docs/trunk/components/entityhub/managedsite.html On Wed, Dec 4, 2013 at 2:09 PM, Gregor Müllegger <gre...@muellegger.de> wrote: > Hi, > > I'm trying to use a custom vocabulary to use in the stanbol enhancer. I > created > a Clerreza Yard and added the following vocabulary to it: > > @prefix skos: <http://www.w3.org/2004/02/skos/core#> . > @prefix : <http://gremu.net/da/ontologies/2013/10/do178b/labels#> . > :Partitioning skos:prefLabel "partitioning"@en . > > I configured an enhancement chain, that is using my configured Entityhub > Linking Engine. When I run the enhancer against this sentence, it doesn't > recognize the "Partitioning" entity: > > A document about Partitioning. > > However when I add the rdfs:label to the vocabulary as illustrated here, it > works like charm and recognizes "Partitioning": > > @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . > :Partitioning rdfs:label "partitioning"@en . > > So I guess the mapping from skos:prefLabel to rdfs:label is broken somehow. > However the documentation states that the Entityhub takes care of this. I > even > added "skos:prefLabel > rdfs:label" and "skos:altLabel > rdfs:label" to the > entityhub configuration in the OSGi Webconsole. By default, only the mapping > "skos:prefLabel > entityhub:label" was included. > > Here is a screenshot of the current configuration I'm using: > > http://i.imgur.com/cbkA95n.png > > Is there any command I need to run to activate the Entityhub mappings? > How do I make the SKOS vocabulary available without adding the rdfs:label > by hand? > > I'm running a recent version from trunk with the full launcher. > > > Thanks a lot, a quick pointer would be much appreciated! > > Gregor -- | Rupert Westenthaler rupert.westentha...@gmail.com | Bodenlehenstraße 11 ++43-699-11108907 | A-5500 Bischofshofen