Created
April 20, 2020 18:20
-
-
Save darobin/07324754f0db7f090d737b9d2616536c to your computer and use it in GitHub Desktop.
A quick and dirty JSON-LD of COVID reporting with schema.org (marked as being JS so the comments work)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": "http://schema.org/", | |
"@type": "SpecialAnnouncement", | |
"about": "https://en.wikipedia.org/wiki/Coronavirus_disease_2019", | |
"datePosted": "2020-04-20T13:45:00.000Z", | |
"diseaseSpreadStatistics": [ | |
// deaths in France on the 19th | |
{ | |
"@type": "Observation", | |
"measuredProperty": "https://ns.nytimes.com/#deathCount", | |
"measuredValue": 915, | |
"observationDate": "2020-04-19", | |
"geographicArea": { | |
"@type": "Country", | |
"name": "France" | |
} | |
}, | |
// cases in France on the 19th | |
{ | |
"@type": "Observation", | |
"measuredProperty": "https://ns.nytimes.com/#casesCount", | |
"measuredValue": 21053, | |
"observationDate": "2020-04-19", | |
"geographicArea": { | |
"@type": "Country", | |
"name": "France" | |
} | |
}, | |
// recovered in France on the 19th | |
{ | |
"@type": "Observation", | |
"measuredProperty": "https://ns.nytimes.com/#recoveredCount", | |
"measuredValue": 6538, | |
"observationDate": "2020-04-19", | |
"geographicArea": { | |
"@type": "Country", | |
"name": "France" | |
} | |
}, | |
// deaths in France on the 18th | |
{ | |
"@type": "Observation", | |
"measuredProperty": "https://ns.nytimes.com/#deathCount", | |
"measuredValue": 901, | |
"observationDate": "2020-04-18", | |
"geographicArea": { | |
"@type": "Country", | |
"name": "France" | |
} | |
}, | |
// deaths in New York State on the 19th | |
{ | |
"@type": "Observation", | |
"measuredProperty": "https://ns.nytimes.com/#deathCount", | |
"measuredValue": 10002, | |
"observationDate": "2020-04-19", | |
"geographicArea": { | |
"@type": "State", | |
"name": "New York", | |
"containedInPlace": { "@type": "Country", "USA" } | |
} | |
}, | |
// deaths in Suffolk County on the 19th | |
{ | |
"@type": "Observation", | |
"measuredProperty": "https://ns.nytimes.com/#deathCount", | |
"measuredValue": 362, | |
"observationDate": "2020-04-19", | |
"geographicArea": { | |
"@type": "County", | |
"name": "Suffolk", | |
"containedInPlace": { | |
"@type": "State", | |
"name": "New York", | |
"containedInPlace": { "@type": "Country", "USA" } | |
} | |
} | |
} | |
] | |
} |
Left a more detailed comment regarding potential alignment with SOSA vocabulary over at schemaorg/schemaorg#2564 (comment)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
GIS @0318
Identity of Phenom Enthrophy Observer as a Human is needed.
:^)