diff --git a/app/assets/stylesheets/tables.scss b/app/assets/stylesheets/tables.scss index 3e45f0e8..d297e5a3 100644 --- a/app/assets/stylesheets/tables.scss +++ b/app/assets/stylesheets/tables.scss @@ -56,3 +56,37 @@ --table--cell-padding-x: 0.5em; } } + +.schema-table { + .code { + font-family: monospace; + + $font-size-multiplier: 0.75; + font-size: calc($font-size-multiplier * shared.$font-size--base); + line-height: calc(shared.$line-height--base / $font-size-multiplier); + } + + .na { + color: gray; + + $font-size-multiplier: 0.9; + font-size: calc($font-size-multiplier * shared.$font-size--base); + line-height: calc(shared.$line-height--base / $font-size-multiplier); + } + + $levels: 1, 2, 3, 4, 5, 6; + @for $level from 1 through 6 { + .indent--#{$level} > td:first-child { + padding-left: #{$level * 4}ch; + } + } + + .code { + .key { + color: shared.$color--blue-2; + } + .value { + color: shared.$color--red-1; + } + } +} diff --git a/app/views/fact_check_insights/guide.html.erb b/app/views/fact_check_insights/guide.html.erb index 0d20c590..37730c35 100644 --- a/app/views/fact_check_insights/guide.html.erb +++ b/app/views/fact_check_insights/guide.html.erb @@ -46,12 +46,105 @@
The Fact-Check Insights dataset is available for download as JSON (one file) and CSV (multiple files).
-Not every fact-check will contain data for every field, but the main components are:
+The Fact-Check Insights dataset is available for download as JSON (one file) and CSV (multiple files). The tables below show the JSON data structure; see the "CSV Field" column for the name of the corresponding CSV column. Note that not every item will contain every field.
+| Field | +Value | +Description | +Data Type | +CSV Field | +
|---|---|---|---|---|
| + { + | +||||
| + "@type": + | ++ "ClaimReview", + | +Type of object. | +String | ++ "@type" + | +
| + "author": { + | ++ | Object | +n/a | +|
| + "@type": + | ++ "Organization", + | +The type of author. | +String | ++ "author_@type" + | +
| + "name": + | ++ "realfact", + | +The name of the fact-checking organization that submitted the fact-check. | +String | ++ "author_name" + | +
| + }, + | +||||
| + } + | +||||
| Field | +Value | +Description | +Data Type | +CSV Field | +
|---|