Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manage multilingual fields #26

Open
fonji opened this issue Jan 14, 2014 · 4 comments
Open

Manage multilingual fields #26

fonji opened this issue Jan 14, 2014 · 4 comments

Comments

@fonji
Copy link

fonji commented Jan 14, 2014

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
Copy link
Author

fonji commented Feb 26, 2014

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

@RicSwirrl
Copy link
Member

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

@fonji
Copy link
Author

fonji commented Feb 27, 2014

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

@fonji
Copy link
Author

fonji commented Feb 28, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants