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

Add language property to PITs #8

Open
bertspaan opened this issue Jul 2, 2015 · 4 comments
Open

Add language property to PITs #8

bertspaan opened this issue Jul 2, 2015 · 4 comments

Comments

@bertspaan
Copy link
Member

For example:

{"id":"YUG1992-2-nl","name":"Joegoslavië","type":"hg:Country", "language": "nl"}

This way, we can meaningful add language synonyms to PITs.

@wires What do you think?

@bertspaan
Copy link
Member Author

The solution above has some major drawbacks, I realize already.... It involves creating a new PIT for each object, for which an ID has to be created or an URI has to be present. In the case of GeoNames, we do not have URIs or IDs for each language variant. Maybe introducing a languages object containing a list of language, name pairs will work better:

{
    "uri": "http://sws.geonames.org/2747373",
    "name": "The Hague",
    "type": "hg:Place",
    "geometry": {
        "type": "Point",
        "coordinates": [
            4.29861,
            52.07667
        ]
    },
    "languages": {
      "en": "The Hague",
      "ga": "An Háig",
      "it": "L'Aia",
      "fy": "De Haach"  
    },
    "data": {
        "featureClass": "P",
        "featureCode": "PPLG",
        "countryCode": "NL"
    }
}

@bertspaan
Copy link
Member Author

Or maybe this conflicts with our core conceptual model: each place name or spelling variant is a PIT.... But we also do not want to introduce new IDs for a datasets which uses its own URIs for all other PITs...

@hpfast
Copy link

hpfast commented Jul 2, 2015

I'll take a stab at this with the first approach for now: new source 'multilingual_names' with a record for each language synonym. Least elegant but at least we'll have something, later we can try the other approach.

@bertspaan
Copy link
Member Author

See https://github.com/whosonfirst/whosonfirst-dates for inspiration!

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

No branches or pull requests

3 participants