rhdunn/cainteoir-engine — Issue #19: replace dc:language names with links to languages.rdf
Author: rhdunn
Created: 2011-12-08 07:36:05+00:00
State: open

The idea behind this is to simplify the logic to associate the language of a document with the language of a text-to-speech voice.

This requires that the RDF functionality supports `(graph, subject, predicate, object)` quads and the triplestore model with languages.rdf preloaded.

When constructing the voice metadata, the `tts-engine { voice dc:language L }` should be replaced with `tts-engine { voice dc:language U }` where `languages.rdf { U skos:altLabel L }`.

When adding a document to the triplestore, the document language `doc { doc dc:language L }` should be replaced with `doc { doc dc:language U }` where `languages.rdf { U skos:altLabel L }`.

Resolving the language name is the following lookup: `( X dc:language Y join language.rdf { Y skos:prefLabel L } ) as L`.