Thirumal
Thirumal

Reputation: 9546

What is best way to implement multi-lingual / internationalization in Graph database?

What is best way to implement multi-lingual / internationalization in Graph database?

I am using Gremlin-Neputune Property graph database. I did not find any default implementation for multilingual

Let say, I have node Role with property Employee, How to maintain the same in different language?

Upvotes: 0

Views: 231

Answers (2)

Thirumal
Thirumal

Reputation: 9546

Another option:- Having meta-properties to the default language property

g.addV('city').
  property('name', 'London', 'name_fr', 'Londres', 'name_ne', 'Londen')

Reference for MetaProperties: http://www.kelvinlawrence.net/book/PracticalGremlin.html#metaprop

Upvotes: 0

Kelvin Lawrence
Kelvin Lawrence

Reputation: 14371

RDF/SPARQL has multi lingual support built in which is handy - strings can be annotated as being in a specific language. Gremlin does not have such a concept. However you could do something like this:

g.addV('City').
  property('name_en', 'London').
  property('name_fr', 'Londres').
  property('name_ne', 'Londen')

Upvotes: 2

Related Questions