Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
acouch committed Mar 6, 2019
0 parents commit bd36f76
Show file tree
Hide file tree
Showing 128 changed files with 6,733 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

#production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 Datopian

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Empty file added README.md
Empty file.
1 change: 1 addition & 0 deletions api/data.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions api/dataset.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions api/dataset/afghanistan-election-dist.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"@type":"dcat:Dataset","accessLevel":"public","contactPoint":{"fn":"Gray, Stefanie","hasEmail":"mailto:datademo@example.com"},"description":"<p>This data created by the National Democratic Institute (NDI) in partnership with Development Seed, a Washington, D.C.-based online communications consultancy, is designed to make data from the August 20, 2009, Afghanistan presidential election accessible and transparent. We have provided this csv file as there is no download for the whole dataset. There are many more files on the website.</p>\n","distribution":[{"@type":"dcat:Distribution","downloadURL":"http://catalog-demo.interra.io/media/district_centerpoints.csv","mediaType":"text/csv","format":"csv","description":"<p>You can see this data plotted on a map, by clicking on 'Map' below. Individual data records can be seen by clicking on each point.</p>\n","title":"District Names","interra":{"id":"district-names","source":"dkandemo"},"schema":{"fields":[{"name":"state","type":"string"},{"name":"total.foreclosures","type":"integer"},{"name":"foreclosure.ratio","type":"integer"}]},"identifier":"f8d6eeda-a0ca-4a0f-9bfd-7955cdbae92d","created":"2017-11-17","modified":"2017-11-17"}],"identifier":"c9e2d352-e24c-4051-9158-f48127aa5692","issued":"2012-10-30","keyword":[{"created":"2017-11-17T21:51:13.596Z","title":"country-afghanistan","modified":"2017-11-17T21:51:13.596Z","identifier":"country-afghanistan","interra":{"id":"country-afghanistan"}},{"created":"2017-11-17T21:51:13.597Z","title":"election","modified":"2017-11-17T21:51:13.597Z","identifier":"election","interra":{"id":"election"}},{"created":"2017-11-17T21:51:13.598Z","title":"politics","modified":"2017-11-17T21:51:13.598Z","identifier":"politics","interra":{"id":"politics"}},{"created":"2017-11-17T21:51:13.598Z","title":"transparency","modified":"2017-11-17T21:51:13.598Z","identifier":"transparency","interra":{"id":"transparency"}}],"landingPage":"http://demo.getdkan.com/dataset/afghanistan-election-districts","license":"http://opendefinition.org/licenses/odc-by/","modified":"2017-11-17","publisher":{"@type":"org:Organization","name":"Committee on International Affairs","description":"The Committee on International Affairs is a working group to identify opportunities to learn from and collaborate with government and organizations across the globe.","image":"http://catalog-demo.interra.io/media/map.png","interra":{"id":"committee-on-internationa","source":"dkandemo"},"identifier":"3b611ac7-17a1-48ee-a4e7-4fd08d9af3f7","created":"2017-11-17","modified":"2017-11-17"},"spatial":"POLYGON ((60.8642578125 29.878755346038, 61.787109375 30.977609093349, 61.7431640625 31.391157522825, 60.7763671875 31.653381399664, 60.8642578125 32.361403315275, 60.556640625 33.137551192346, 60.908203125 33.578014746144, 60.5126953125 33.614619292334, 60.5126953125 34.307143856288, 60.8642578125 34.343436068483, 61.3037109375 35.603718740697, 62.666015625 35.353216101238, 64.5556640625 36.421282443649, 64.86328125 37.195330582801, 65.654296875 37.195330582801, 65.654296875 37.474858084971, 67.9833984375 37.055177106661, 68.7744140625 37.265309955619, 69.345703125 37.125286284967, 69.697265625 37.683820326694, 70.3125 37.683820326694, 70.3125 38.065392351332, 71.0595703125 38.582526159353, 71.279296875 37.78808138412, 71.7626953125 37.926867601481, 71.4990234375 37.405073750177, 71.630859375 36.738884124394, 73.3447265625 37.474858084971, 73.7841796875 37.474858084971, 73.7841796875 37.265309955619, 74.7509765625 37.335224359306, 74.9267578125 37.160316546737, 74.1357421875 36.809284702059, 72.9931640625 36.949891786813, 71.54296875 36.315125147481, 71.2353515625 36.066862132579, 71.5869140625 35.460669951495, 71.54296875 34.813803317113, 71.103515625 34.560859367084, 71.1474609375 34.08906131585, 70.3125 33.979808728725, 69.873046875 33.979808728725, 70.2685546875 33.321348526699, 69.345703125 32.916485347314, 69.2578125 32.324275588877, 69.1259765625 31.802892586707, 68.7744140625 31.578535426473, 68.0712890625 31.802892586707, 67.67578125 31.615965936476, 67.8515625 31.353636941501, 67.4560546875 31.278550858947, 67.0166015625 31.278550858947, 66.4892578125 30.939924331023, 66.2255859375 30.334953881989, 66.357421875 29.91685223307, 65.0390625 29.535229562948, 64.248046875 29.611670115197, 64.2041015625 29.420460341013, 63.4130859375 29.458731185355, 62.6220703125 29.420460341013))","title":"Afghanistan Election Districts","interra":{"id":"afghanistan-election-dist","source":"dkandemo"}}
1 change: 1 addition & 0 deletions api/dataset/crime-data-for-the-ten-mo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"@type":"dcat:Dataset","accessLevel":"public","accrualPeriodicity":"R/P1Y","contactPoint":{"fn":"Gray, Stefanie","hasEmail":"mailto:datademo@example.com"},"description":"<p><strong>Source:</strong> FBI Uniform Crime Report, 2014 (<a href=\"https://www.fbi.gov/about-us/cjis/ucr/ucr\">https://www.fbi.gov/about-us/cjis/ucr/ucr</a>)</p>\n<p>Data is split into two categories:</p>\n<p><strong>Violent Crime:</strong> Includes aggravated assault, murder, rape and robbery.<br /><strong>Property Crime:</strong> Includes arson, burglary, larceny-theft and motor vehicle theft.</p>\n<p><strong>Top 10 Most Populous U.S. Cities:</strong></p>\n<ol>\n<li>New York, NY</li>\n<li>Los Angeles, CA</li>\n<li>Chicago, IL</li>\n<li>Houston, TX</li>\n<li>Philadelphia, PA</li>\n<li>Las Vegas, NV</li>\n<li>Phoenix, AZ</li>\n<li>San Antonio, TX</li>\n<li>San Diego, TX</li>\n<li>Dallas, TX</li>\n</ol>\n<p><strong>Related Data Dashboard: </strong><a href=\"/crime-americas-top-10-most-populous-cities\">Crime in America's Top 10 Most Populous Cities</a></p>\n","distribution":[{"@type":"dcat:Distribution","downloadURL":"http://catalog-demo.interra.io/media/ViolentCrimeRates.csv","mediaType":"text/csv","format":"csv","description":"<p>Source: FBI Uniform Crime Report, 2014 (<a href=\"https://www.fbi.gov/about-us/cjis/ucr/ucr\">https://www.fbi.gov/about-us/cjis/ucr/ucr</a>)</p>\n<p>Includes information on the frequency of violent crimes in general, murder and non-negligent manslaughter, aggravated assault, rape and robbery. All crime rates are per 100,000 people.</p>\n","title":"Violent Crime Data for the Ten Most Populous Cities in the U.S.","interra":{"id":"violent-crime-data-for-th","source":"dkandemo"},"identifier":"b5bee926-93b8-47b4-b325-f31bb2510426","created":"2017-11-17","modified":"2017-11-17"},{"@type":"dcat:Distribution","downloadURL":"http://catalog-demo.interra.io/media/PropertyCrimesByCity.csv","mediaType":"text/csv","format":"csv","title":"Property Crime Statistics by City","interra":{"id":"property-crime-statistics","source":"dkandemo"},"identifier":"c25cb14b-c662-4426-8002-c71174257dfb","created":"2017-11-17","modified":"2017-11-17"},{"@type":"dcat:Distribution","downloadURL":"http://catalog-demo.interra.io/media/PropertyCrimeRates.csv","mediaType":"text/csv","format":"csv","description":"<p>Source: FBI Uniform Crime Report, 2014 (<a href=\"https://www.fbi.gov/about-us/cjis/ucr/ucr\">https://www.fbi.gov/about-us/cjis/ucr/ucr</a>)</p>\n","title":"Property Crime Rates for 10 Most Populous US Cities (2015)","interra":{"id":"property-crime-rates-for-","source":"dkandemo"},"identifier":"7df5eafa-1c27-42a0-9b90-7d20b3fef736","created":"2017-11-17","modified":"2017-11-17"},{"@type":"dcat:Distribution","downloadURL":"http://catalog-demo.interra.io/media/NumbersByCity.csv","mediaType":"text/csv","format":"csv","title":"Violent Crime Statistics by City ","interra":{"id":"violent-crime-statistics-","source":"dkandemo"},"identifier":"c1989976-c5c4-4cd8-9702-a0c76db4c58c","created":"2017-11-17","modified":"2017-11-17"}],"identifier":"d460252e-d42c-474a-9ea9-5287b1d595f6","issued":"2016-04-20","keyword":[{"created":"2017-11-17T21:51:13.542Z","title":"crime","modified":"2017-11-17T21:51:13.542Z","identifier":"crime","interra":{"id":"crime"}},{"created":"2017-11-17T21:51:13.543Z","title":"public safety","modified":"2017-11-17T21:51:13.543Z","identifier":"public-safety","interra":{"id":"public-safety"}}],"landingPage":"http://demo.getdkan.com/dataset/crime-data-ten-most-populous-cities-us","license":"http://opendefinition.org/licenses/odc-odbl/","modified":"2017-11-17","publisher":{"@type":"org:Organization","name":"DKAN Demo Examples","description":"These are examples from the <a href='http://demo.getdkan.com'>DKAN demo</a> site.","image":"http://catalog-demo.interra.io/media/dkan-logo.svg","interra":{"id":"demogetdkancom","source":"dkandemo"},"identifier":"3a326e8b-0aa0-497c-9f2b-c7d0bd083fc6","created":"2017-11-17","modified":"2017-11-17"},"spatial":"POLYGON ((-129.7265625 24.046463999667, -129.7265625 51.835777520452, -65.390625 51.835777520452, -65.390625 24.046463999667))","temporal":"2014-01-01T05:00:00+00:00/2014-01-01T05:00:00+00:00","theme":[{"created":"2017-11-17T21:51:13.545Z","title":"Public Safety","modified":"2017-11-17T21:51:13.545Z","identifier":"public-safety","icon":"safety","interra":{"id":"public-safety"}}],"title":"Crime Data for the Ten Most Populous Cities in the U.S.","interra":{"id":"crime-data-for-the-ten-mo","source":"dkandemo"}}
1 change: 1 addition & 0 deletions api/dataset/florida-bike-lanes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"@type":"dcat:Dataset","accessLevel":"public","accrualPeriodicity":"R/P1Y","contactPoint":{"fn":"admin","hasEmail":"mailto:noemailprovided@usa.gov"},"description":"<p>Data on bike lanes in Florida.</p>\n","distribution":[{"@type":"dcat:Distribution","downloadURL":"http://catalog-demo.interra.io/media/Bike_Lane.csv","mediaType":"text/csv","format":"csv","title":"Florida Bike Lanes","interra":{"id":"florida-bike-lanes","source":"dkandemo"},"identifier":"bfcd3357-1e14-4ab0-bf9c-5a64bdcc623a","created":"2017-11-17","modified":"2017-11-17"}],"identifier":"cedcd327-4e5d-43f9-8eb1-c11850fa7c55","issued":"2016-06-22","landingPage":"http://demo.getdkan.com/dataset/florida-bike-lanes","license":"http://opendefinition.org/licenses/odc-odbl/","modified":"2017-11-17","publisher":{"@type":"org:Organization","name":"DKAN Demo Examples","description":"These are examples from the <a href='http://demo.getdkan.com'>DKAN demo</a> site.","image":"http://catalog-demo.interra.io/media/dkan-logo.svg","interra":{"id":"demogetdkancom","source":"dkandemo"},"identifier":"3a326e8b-0aa0-497c-9f2b-c7d0bd083fc6","created":"2017-11-17","modified":"2017-11-17"},"theme":[{"created":"2017-11-17T21:51:13.508Z","title":"Transportation","modified":"2017-11-17T21:51:13.508Z","identifier":"transportation","icon":"transport","interra":{"id":"transportation"}},{"created":"2017-11-17T21:51:13.509Z","title":"City Planning","modified":"2017-11-17T21:51:13.509Z","identifier":"city-planning","icon":"building-12","interra":{"id":"city-planning"}}],"title":"Florida Bike Lanes ","keyword":[{"created":"2017-11-17T21:51:13.503Z","title":"No keyword provided","modified":"2017-11-17T21:51:13.503Z","identifier":"no-keyword-provided","interra":{"id":"no-keyword-provided"}}],"interra":{"id":"florida-bike-lanes","source":"dkandemo"}}
1 change: 1 addition & 0 deletions api/dataset/gold-prices-in-london-195.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"@type":"dcat:Dataset","accessLevel":"public","contactPoint":{"fn":"Gray, Stefanie","hasEmail":"mailto:datademo@example.com"},"description":"<p>Monthly gold prices (USD) in London from Bundesbank.</p>\n<p>General: 1 ounce of fine gold = 31.1034768g.</p>\n<p>Method of calculation:</p>\n<ul>\n<li>Since 1 April 1968, calculated from the daily morning fixing;</li>\n<li>From January 1950 to 21 March 1954, calculated using the Bank of England's gold purchasing price (1 ounce of fine = pound 12.40) in connection with the average exchange rate for the pound in New York (up to the end of 1952; source: Federal Reserve Bulletin) and, from January 1953, midpoint exchange rates for the US dollar in London (source: Financial Times (FT)).</li>\n<li>From 22 March 1954 to December 1959, calculated using the fixing price for gold bars of approx. 12 1/2 kg and 995/1000 fineness and over (so-called standard bars) according to data from Metallgesellschaft AG, Frankfurt am Main, in connection with the average midpoint exchange rates for the US dollar in London (source: FT).</li>\n<li>From January 1960 to 14 March 1968, average fixing price for standard bars as specified in the Bank of England's Quarterly Bulletin.</li>\n<li>On 15 March 1968, fixing price suspended. Gold market split into an official (reserved for central banks) and a free market as a result of the Washington Communique of 17 March 1968. Gold trading suspended from 18 to 29 March 1968.</li>\n<li>Sources for daily prices: April 1968 - March 1974: FT; April 1974 - December 1980: Samuel Montagu &amp; Co. Ltd.; January 1981 - December 2005: FT; January 2006 - present: Reuters.</li>\n<li>Comment on 1968-03: Average from 1 to 14 March 1968.</li>\n</ul>\n<p>License: PDDL (Source indicates no restrictions on data).</p>\n","distribution":[{"@type":"dcat:Distribution","downloadURL":"http://catalog-demo.interra.io/media/data.csv","mediaType":"text/csv","format":"csv","description":"<p>CSV file extracted and cleaned from source excel.</p>\n<p>Click on Graph button under Preview and plot date (x-axis) against price (y-axis) to see a line graph. Hovering over a point gives you the value of that data entry.</p>\n","title":"Table of Gold Prices","interra":{"id":"table-of-gold-prices","source":"dkandemo"},"identifier":"b9ed31f7-a4f2-4e98-98b3-fd28d3d97540","created":"2017-11-17","modified":"2017-11-17"}],"identifier":"5dc1cfcf-8028-476c-a020-f58ec6dd621c","issued":"2013-02-10","keyword":[{"created":"2017-11-17T21:51:13.589Z","title":"economy","modified":"2017-11-17T21:51:13.589Z","identifier":"economy","interra":{"id":"economy"}},{"created":"2017-11-17T21:51:13.591Z","title":"price","modified":"2017-11-17T21:51:13.591Z","identifier":"price","interra":{"id":"price"}},{"created":"2017-11-17T21:51:13.591Z","title":"time-series","modified":"2017-11-17T21:51:13.591Z","identifier":"time-series","interra":{"id":"time-series"}}],"landingPage":"http://demo.getdkan.com/dataset/gold-prices-london-1950-2008-monthly","license":"http://opendefinition.org/licenses/odc-pddl/","modified":"2017-11-17","publisher":{"@type":"org:Organization","name":"DKAN Demo Examples","description":"These are examples from the <a href='http://demo.getdkan.com'>DKAN demo</a> site.","image":"http://catalog-demo.interra.io/media/dkan-logo.svg","interra":{"id":"demogetdkancom","source":"dkandemo"},"identifier":"3a326e8b-0aa0-497c-9f2b-c7d0bd083fc6","created":"2017-11-17","modified":"2017-11-17"},"spatial":"POLYGON ((-0.56854248046875 51.253320526331, -0.56854248046875 51.725326868065, 0.3076171875 51.725326868065, 0.3076171875 51.253320526331))","temporal":"1950-01-01T05:00:00+00:00/1950-01-01T05:00:00+00:00","theme":[{"created":"2017-11-17T21:51:13.592Z","title":"Finance and Budgeting","modified":"2017-11-17T21:51:13.592Z","identifier":"finance-and-budgeting","icon":"budget","interra":{"id":"finance-and-budgeting"}}],"title":"Gold Prices in London 1950-2008 (Monthly)","interra":{"id":"gold-prices-in-london-195","source":"dkandemo"}}
1 change: 1 addition & 0 deletions api/dataset/london-deprivation-index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"@type":"dcat:Dataset","accessLevel":"public","accrualPeriodicity":"R/P1Y","contactPoint":{"fn":"Gray, Stefanie","hasEmail":"mailto:datademo@example.com"},"description":"<p>Deprivation is measured across seven different areas or domains - income, employment, health, education, living environment, crime and barriers to services using a wide range of indicators, and the methods used show how each area compares with other areas across England using a combination of all these indicators.</p>\n<p>As stated by The Guardian, \"the data is based on a close analysis of the UK government's Indices of Multiple Deprivation - which measures relative poverty across England – by Alasdair Rae at the University of Sheffield.\" (<a href=\"http://www.theguardian.com/uk/datablog/2012/apr/12/deprivation-poverty-london\">Source</a>)</p>\n<p><strong>Source:</strong> <a href=\"http://data.london.gov.uk/dataset/indices-of-deprivation-2015\">http://data.london.gov.uk/dataset/indices-of-deprivation-2015</a></p>\n<p><strong>Related Data Story: </strong><a href=\"/story/london-income-analysis\">London Income Analysis</a></p>\n","distribution":[{"@type":"dcat:Distribution","downloadURL":"http://catalog-demo.interra.io/media/media/IMD-MAPS.zip","mediaType":"application/zip","format":"zip","title":"English Indices of Deprivation 2010","interra":{"id":"english-indices-of-depriv","source":"dkandemo"},"identifier":"554f79c0-6911-4af7-8879-7f0a63fae186","created":"2017-11-17","modified":"2017-11-17"}],"identifier":"fb3525f2-d32a-451e-8869-906ed41f7695","issued":"2016-04-21","keyword":[{"created":"2017-11-17T21:51:13.565Z","title":"demographics","modified":"2017-11-17T21:51:13.565Z","identifier":"demographics","interra":{"id":"demographics"}},{"created":"2017-11-17T21:51:13.589Z","title":"economy","modified":"2017-11-17T21:51:13.589Z","identifier":"economy","interra":{"id":"economy"}},{"created":"2017-11-17T21:51:13.530Z","title":"spatial data","modified":"2017-11-17T21:51:13.530Z","identifier":"spatial-data","interra":{"id":"spatial-data"}},{"created":"2017-11-17T21:51:13.531Z","title":"United Kingdom","modified":"2017-11-17T21:51:13.531Z","identifier":"united-kingdom","interra":{"id":"united-kingdom"}}],"landingPage":"http://demo.getdkan.com/dataset/london-deprivation-index","license":"http://opendefinition.org/licenses/odc-odbl/","modified":"2017-11-17","publisher":{"@type":"org:Organization","name":"State Economic Council","description":"The State Economic Council is responsible for increasing economic development of the state by collecting statistics and performing analysis on the labor force, workforce and employer demographics, generational trends, etc.","image":"http://catalog-demo.interra.io/media/money-saving.png","interra":{"id":"state-economic-council","source":"dkandemo"},"identifier":"d48ea7d8-ef73-4d59-894a-327822b803db","created":"2017-11-17","modified":"2017-11-17"},"references":["http://www.lfpress.com/2016/05/13/expert-panel-says-londons-living-wage-is-1553h-londoners-need-30284-to-meet-basic-needs"],"spatial":"POLYGON ((-1.1178588867187 51.08282186161, -1.1178588867187 51.859531509855, 1.1178588867187 51.859531509855, 1.1178588867187 51.08282186161))","theme":[{"created":"2017-11-17T21:51:13.592Z","title":"Finance and Budgeting","modified":"2017-11-17T21:51:13.592Z","identifier":"finance-and-budgeting","icon":"budget","interra":{"id":"finance-and-budgeting"}}],"title":"London Deprivation Index","interra":{"id":"london-deprivation-index","source":"dkandemo"}}
Loading

0 comments on commit bd36f76

Please sign in to comment.