Skip to content

Latest commit

 

History

History
57 lines (48 loc) · 1.68 KB

region.md

File metadata and controls

57 lines (48 loc) · 1.68 KB

Data Mapping: Microsoft Azure Cloud Regions

https://azure.microsoft.com/en-au/global-infrastructure/regions/

Getting Input

Data: original json for Azure Cloud https://azure.microsoft.com/api/v2/pricing/virtual-machines-base/calculator/?culture=en-au&discount=mosp

Recorded on:

  1. 2018-03-02
  2. 2019-03-07

human-readbale name to slug mapping

Obtained by run

.regions | 
[
  to_entries[] |
  {
    "key": .value.displayName, 
    "value": .value.slug
  }
] | from_entries

on input

Try live on jq playground

Result:

  1. 2018-03-02: file, https://jqplay.org/s/eRBisoYbDb
  2. 2019-03-07: file, https://jqplay.org/s/cFmrjydbkC

Geonames Mapping

See example in geonames_rdf directory.

SPARQL-Generate

2018-03-02 cocoon v1.0.0: Queries Results (RDF turtle)

CloudHarmony Data

Run jq query on data collected via CloudHarmony

[
    .[][0] | select(.region != null) | {
        "location": .location,
        "region": .region
    }
] | unique

CoCoOn v1.0.1

json, https://jqplay.org/s/8Hd1vD-PmF

java -jar sparql-generate-jena.jar --query-file azure/v1.0.1/region_geo_coord.rqg --output result/azure/v1.0.1/region_geo_coord.ttl --log-level ERROR

Query ->

Result