[Developers] Schools, Colleges, Data loading and more...

Christopher R. Maden crism at metaweb.com
Tue Jul 3 00:02:00 UTC 2007


Glad you like it, Paul!  I can address one of these questions for you.

Paul Lindner wrote:
> * What about internationalization?  Are there facilities for storing
>   different names based on language?  Or would that be a
>   specialization of an existing type?
> 
>     For example the city New York City is Nueva York in Spanish

The underlying data model is already there.  If you go look with the 
query editor, you will see that there are already polylingual names for 
things:

{
   "query": {
     "id": "/wikipedia/en/New_York_City",
     "name": [{}]
   }
}

{
   "result": {
     "id": "/wikipedia/en/New_York_City",
     "name": [
       {
         "lang": "/lang/fr",
         "type": "/type/text",
         "value": "New York"
       },
       {
         "lang": "/lang/de",
         "type": "/type/text",
         "value": "New York City"
       },
       {
         "lang": "/lang/it",
         "type": "/type/text",
         "value": "New York"
       },
       {
         "lang": "/lang/ja",
         "type": "/type/text",
         "value": "ニューヨーク"
       },
       {
         "lang": "/lang/es",
         "type": "/type/text",
         "value": "Nueva York"
       },
       {
         "lang": "/lang/en",
         "type": "/type/text",
         "value": "New York"
       }
     ]
   }
}

This isn’t yet exposed in the UI, but the data is there and can be 
manipulated in queries.

~Chris
-- 
Christopher R. Maden
Data Architect
Metaweb Technologies, Inc.
<URL: http://www.metaweb.com/ >


More information about the Developers mailing list