tripod
tripod copied to clipboard
Manage multilingual fields
Hello! OK so this is a pretty big one...
We're going to add language tags to our litterals in our RDF store to have a multilingual knoledgebase.
As far as I know, this isn't managed in Tripod. I think language can be an option for the getters and setters. But there's a whole lot of cases to manage.
I just discovered ruby-rdf/spira (while writing this issue). It seems to support it so switching my app to use spira instead of tripod may be faster than coding this for tripod (sorry). I'll let you know. I like tripod!
Hello!
So I switched to spira, which was way too slow for our needs, came back to tripod and wrote a very basic getter for localized field. Please have a look.
Have a nice day, Yannick
Hey Yannick. Thanks for this - I'll take a look.
As I'm allowed to dream, I wrote some specs to complete this feature request.
I added an optional hash as a parameter to getters, so you can specify a different locale than the current one or get all values, just as in my specs. Here's the commit