Thank's a lot for the advices. For now, I've decided to keep with the Fuseki 1 style single config.ttl, where I put the entity maps at the end of the file.
This allows me to re-use the definition(s) for temporary configuration files used during batch data loading and indexing. csplit --quiet -f /tmp/entitymaps config.ttl "%## Text index definitions ##%" creates a file /tmp/entitymaps00, which contains everything below the line "## Text index definitions ##", and can be appended to the temp.ttl. Thus, I've config.ttl as the single source of wisdom about the text index definitions. Cheers, Joachim -----Ursprüngliche Nachricht----- Von: Andy Seaborne [mailto:a...@apache.org] Gesendet: Sonntag, 20. Dezember 2015 22:32 An: users@jena.apache.org Betreff: Re: Fuseki 2 text: how to factor out entMap in configuration Another way is to have one configuration file : they don't have to be separated out into individual files on configuration. Multiple definitions can go in the top-level config.ttl or passed in on the start up line. Andy On 20/12/15 12:02, Andy Seaborne wrote: > In assemblers, URIs are just names. They are not dereferenced, nor is > there an include mechanism. > > One way around this, for some situations, is to build the > configurations files as the service starts with a macro > processor/templating solution of your choice. > > Andy > > > On 20/12/15 09:02, Neubert, Joachim wrote: >> Thanks for looking into this! The URI was supposed to be just a name, >> not to be dereferenced. Your question triggered the idea of a more >> simple solution (omitting an additional namespace and referencing the >> according definition in config.ttl directly): >> >> <#swdskosIndex> a text:TextIndexLucene ; >> text:entityMap <file:///opt/fuseki/run/config.ttl#entMap> . >> >> However, that resulted in the same error: >> >> [2015-12-20 09:52:40] Server ERROR Exception in initialization: >> the root file:///opt/fuseki/run/config.ttl#entMap has no most >> specific type that is a subclass of ja:Object >> >> I've double checked that /opt/fuseki/run/config.ttl#entMap exists, so >> that doesn't seem to work either. >> >> Cheers, Joachim >> >>> -----Original Message----- >>> From: Jonathan Camilleri [mailto:camilleri....@gmail.com] >>> Sent: Sunday, December 20, 2015 8:55 AM >>> To: users@jena.apache.org >>> Subject: Re: Fuseki 2 text: how to factor out entMap in >>> configuration >>> >>> The page you quoted isn't loading is this a temporary problem? >>> http://zbw.eu/namespaces/fuseki/entMap >>> >>> On 20 December 2015 at 07:50, Neubert, Joachim <j.neub...@zbw.eu> >>> wrote: >>> >>>> I have about a dozend services which share a common text:entityMap >>>> definition for their text indexes. When moving to Fuseki 2 style >>>> config, I've tried to define entMap in config.ttl (with an absolute >>>> URI) and to reference this URI in the config files of the services. >>>> >>>> When fuseki starts up and loads the services' .ttl, I get: >>>> >>>> [2015-12-20 07:45:03] Server ERROR Exception in initialization: the >>>> root http://zbw.eu/namespaces/fuseki/entMap has no most specific >>>> type that is a subclass of ja:Object >>>> >>>> Now I'm not sure if such a sharing of definitions supposed to work, >>>> or if perhaps another approach should be followed. >>>> >>> >>> >>> >>> -- >>> Jonathan Camilleri >>> >>> Mobile (MT): ++356 7982 7113 >>> E-mail: camilleri....@gmail.com >>> Please consider your environmental responsibility before printing >>> this e- mail. >>> >>> I usually reply to emails within 2 business days. If it's urgent, >>> give me a call. >