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

189 views Asked by At

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?

2

There are 2 answers

1
Kelvin Lawrence On BEST ANSWER

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')
5
Thirumal On

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