Sinar / popolo.contenttypes

GNU General Public License v2.0
1 stars 2 forks source link

Area Content Type #12

Open kaerumy opened 4 years ago

kaerumy commented 4 years ago

Reference: https://www.popoloproject.com/specs/area.html

Used for area field for Organization schema https://www.popoloproject.com/specs/organization.html

Also used for Post (eg. MP for Constituency)

JustineSurGithub commented 4 years ago

@kaerumy regarding the fields in that type, I saw the identifier is an Open Civic Data Division Identifier; do you want to make a simple text line for it, or instead import the csv rows as items and make a searchable field to choose the identifier? Also for the classification I was wondering, do you want me to make a vocabulary with it and if yes, then I would like to know what it would consist of. Finally for the area geometry, were you thinking of using the collective.geo.json package?

kaerumy commented 4 years ago

@JustineSurGithub I think we keep it as textline (str) for now, and file the option to select from a vocabulary from https://github.com/opencivicdata/ocd-division-ids/tree/master/identifiers as future wishlist because we will need to create some csv's for missing countries.

For classifications, I couldn't see any clear definition from the referenced http://www.geonames.org/ontology/documentation.html if you can find it.. then use it, else file as separate issue and mark as TODO same with parent classification.

Also for geojson, we can keep it as text field for now, and figure out if there is better way later.

Main use case for this could be to link issues to some political constituencies, which may make Area's better off as a Relation from Organization and Post vs sub-object. Else we might have duplicates of the same Area in multiple Org and Post content.