tripod icon indicating copy to clipboard operation
tripod copied to clipboard

Manage multilingual fields

Open fonji opened this issue 11 years ago • 4 comments

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!

fonji avatar Jan 14 '14 13:01 fonji

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

fonji avatar Feb 26 '14 15:02 fonji

Hey Yannick. Thanks for this - I'll take a look.

ricroberts avatar Feb 26 '14 17:02 ricroberts

As I'm allowed to dream, I wrote some specs to complete this feature request.

fonji avatar Feb 27 '14 09:02 fonji

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

fonji avatar Feb 28 '14 14:02 fonji