denshoproject / ddr-cmdln

Command-line tools for automating the Densho Digital Repository's various processes.
Other
0 stars 2 forks source link

Add geography attribute #97

Open gjost opened 5 years ago

gjost commented 5 years ago

Add a multi-value, complex attribute to entity.json, collection.json

geography attribute should support multiple values and multiple sub-attributes per node.

...
    'geography': 
        [
            {
                'label': 'Seattle',
                'id': 'http://vocab.getty.edu/tgn/7014494',
                'geo_lat': '47.6000',
                'geo_long': '-122.3167',
                'parent_id': 'http://vocab.getty.edu/tgn/7007920'
            },
           {
                'label': 'Sacramento',
                'id': 'http://vocab.getty.edu/tgn/7017902',
                'geo_lat': '38.5667',
                'geo_long': '-121.4833',
                'parent_id': 'http://vocab.getty.edu/tgn/7007157'
           }
        ],   
...

TODO: define data structure