{"info":{"_postman_id":"36dff10b-398a-46de-8f41-559f57a52025","name":"NL-API - Documentation","description":"<html><head></head><body><p>The main idea of this work is to come up with an easy and a user-friendly way of querying the datasets in terms of parameters namely SPACE, THEME AND TIME at the API level. Constraints about SPACE, THEME, and TIME are expressed using natural language terms. Examples about how to express these constraints are provided in this documentation. Further details about the work can be found in <a href=\"https://run.unl.pt/handle/10362/67707\">https://run.unl.pt/handle/10362/67707</a>.</p>\n<p><strong>[SPACE]:</strong></p>\n<p>Space refers to the cityName. Currently, for this study datasets are available for these cities only:</p>\n<ol>\n<li>Bonn</li>\n<li>Dortmund</li>\n<li>Dusseldorf</li>\n<li>Dresden</li>\n<li>Kathmandu</li>\n<li>Munster</li>\n<li>Stuttgart</li>\n</ol>\n<hr>\n<p><strong>[THEME]:</strong></p>\n<h2 id=\"currently-datasets-for-following-theme-are-available-1-population-2-migration-3-crime-4-weather-5-transport-6-economy-7-landuse\">Currently datasets for following theme are available.\n1. Population\n2. Migration\n3. Crime\n4. Weather\n5. Transport\n6. Economy\n7. Landuse</h2>\n<p><strong>[TIME]:</strong></p>\n<h2 id=\"time-refers-to-the-date-users-can-enter-the-time-in-semantic-fashion-for-an-example-without-date-ranges\">Time refers to the date. Users can enter the time in semantic fashion. For an example:\n(without date ranges)</h2>\n<ol>\n<li>Today</li>\n<li>Yesterday</li>\n<li>Day before yesterday</li>\n<li>Last month</li>\n<li>Last year</li>\n<li>3 November 2017 or November 3rd 2017</li>\n</ol>\n<hr>\n<h2 id=\"with-date-ranges\">(with date ranges)</h2>\n<ol>\n<li>last month to today</li>\n<li>last year to last month</li>\n<li>16 november 2013 through 18 october 2017</li>\n</ol>\n<hr>\n<p>**[Note]:**<br>/api/all displays all the datasets currently available in the database.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"5553462","collectionId":"36dff10b-398a-46de-8f41-559f57a52025","publishedId":"RzffJ9cc","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-12-20T10:03:40.000Z"},"item":[{"name":"One parameter","item":[{"name":"api/:theme","id":"494bea16-a6e9-4cfb-a4d6-edc9ed75ca6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{myroute}}/population","description":"<p>This request gives all the theme datasets. \n<strong>Example:</strong> \nAbove endpoint gives all the population datasets.</p>\n","urlObject":{"path":["population"],"host":["{{myroute}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"494bea16-a6e9-4cfb-a4d6-edc9ed75ca6d"},{"name":"api/:cityName","id":"a3b133a4-76f0-432d-9c83-e78b47e62deb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{myroute}}/bonn","description":"<p>This request gives all the datasets that are within a given city. \n<strong>Example:</strong> \nAbove endpoint gives all the available datasets within the City of Bonn.</p>\n","urlObject":{"path":["bonn"],"host":["{{myroute}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a3b133a4-76f0-432d-9c83-e78b47e62deb"},{"name":"api/:time","id":"bd85120b-8038-4f50-9bba-6a3542dc919a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{myroute}}/3 november 2017 to yesterday","description":"<p>This request gives all the datasets based on time (date). \n<strong>Example:</strong> \nAbove endpoint gives all the available datasets from\\ \n3rd November 2017 to yesterday.</p>\n","urlObject":{"path":["3 november 2017 to yesterday"],"host":["{{myroute}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"bd85120b-8038-4f50-9bba-6a3542dc919a"}],"id":"7864f448-a4c6-4a56-b4d1-708d8d54e312","description":"<p>This is an end-point that gives an access to datasets using single parameter. This single parameter can be anything among (TIME, SPACE, AND THEME).</p>\n<ol>\n<li>api/:theme</li>\n<li>api/:space</li>\n<li>api/:time</li>\n</ol>\n","event":[{"listen":"prerequest","script":{"id":"e14d099e-9b4c-43a3-8e6e-dd93f7fadefe","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"65eb15ed-64c7-47a7-a9ed-66459e913df1","type":"text/javascript","exec":[""]}}],"_postman_id":"7864f448-a4c6-4a56-b4d1-708d8d54e312"},{"name":"Two Parameters","item":[{"name":"api/:theme/:cityName","id":"c6b39419-922b-453b-87ac-7d64080bbd50","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{myroute}}/crime/kathmandu","description":"<p>This request gives all the datasets that are within a given city. \n<strong>Example:</strong> \nAbove endpoint gives all the crime datasets of Kathmandu City.This can also be queried as /api/Kathmandu/crime</p>\n","urlObject":{"path":["crime","kathmandu"],"host":["{{myroute}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c6b39419-922b-453b-87ac-7d64080bbd50"},{"name":"api/:cityName/:time","id":"2c730a62-4b9b-43be-abad-32e29f3b24e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{myroute}}/Bonn/november 3rd 2017","description":"<p>This request gives all the datasets of specific date that are within a given city. \n<strong>Example:</strong> \nAbove endpoint gives all the datasets of City of Bonn.This can also be queried as<br />/api/november 3rd 2017/bonn</p>\n","urlObject":{"path":["Bonn","november 3rd 2017"],"host":["{{myroute}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2c730a62-4b9b-43be-abad-32e29f3b24e9"},{"name":"api/:theme/:time","id":"1de12764-a487-418b-b55a-4114b1af3021","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{myroute}}/economy/november 3rd 2017","description":"<p>This request gives all the datasets of a specific date. \n<strong>Example:</strong> \nAbove endpoint gives all the economy datasets of november 3rd 2017. This can also be queried as /api/november 3rd 2017/economy</p>\n","urlObject":{"path":["economy","november 3rd 2017"],"host":["{{myroute}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1de12764-a487-418b-b55a-4114b1af3021"},{"name":"api/:time/:theme","id":"70d3928e-8e12-4bbf-a566-40a45589a50b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{myroute}}/october 12th 2013 to today/crime","description":"<p>This request gives all the datasets that are available within a specific date range. \n<strong>Example:</strong> \nAbove endpoint gives all the crime datasets that are available from october 12th 2013 to today. This can also be queried as<br />/api/crime/october 12th 2013 to today</p>\n","urlObject":{"path":["october 12th 2013 to today","crime"],"host":["{{myroute}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"70d3928e-8e12-4bbf-a566-40a45589a50b"},{"name":"api/:theme/radius=10000&long,lat=[]","id":"7157ef62-2da7-4388-b5db-4f3b4e548dde","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{myroute}}/weather/radius=10000&long,lat=[85.2861785888672,27.7002479940336]","description":"<p>This request gives all the datasets that are within the defined radius from point of interest. \n<strong>Example:</strong> \nAbove endpoint gives all the weather datasets that are within the radius of 10000 meters from the point of interest denoted by an array of longitude and latitude.</p>\n","urlObject":{"path":["weather","radius=10000&long,lat=[85.2861785888672,27.7002479940336]"],"host":["{{myroute}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7157ef62-2da7-4388-b5db-4f3b4e548dde"}],"id":"efe9b7c4-dae0-4a71-b3bb-63576d787da8","description":"<p>This is an end-point that gives an access to datasets using two parameters. These two parameters can be any two from (TIME, SPACE, AND THEME). The pair can be in any order. All the possible combination for these two parameters to query datasets is shown below along with an example:</p>\n<ol>\n<li>api/:theme/:space </li>\n<li>api/:space/:theme</li>\n<li>api/:theme/:time</li>\n<li>api/:time/:theme</li>\n<li>api/:time/:space</li>\n<li>api/:space/:time</li>\n</ol>\n","event":[{"listen":"prerequest","script":{"id":"567bf5ae-59be-4e87-a9c2-e2a222be7b78","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"69fe1258-b2b1-4914-b764-2c77adca49d7","type":"text/javascript","exec":[""]}}],"_postman_id":"efe9b7c4-dae0-4a71-b3bb-63576d787da8"},{"name":"Three parameters","item":[{"name":"api/:cityName/:theme/:time","id":"969d269b-bd5c-48aa-8550-4dee1fa49e5d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{myroute}}/kathmandu/crime/11 december 2018","description":"<p>This request gives all the datasets of a <em><strong>specific date</strong></em> that are within a given city. \n<strong>Example:</strong> </p>\n<p>Above endpoint gives all the crime datasets of 11th December 2018 that are within the Kathmandu City. This can also be queried as any of the following:</p>\n<hr />\n<ol>\n<li>/api/kathmandu/december 11th 2018/crime</li>\n<li>/api/december 11th 2018/kathmandu/crime</li>\n<li>/api/december 11th 2018/crime/kathmandu</li>\n</ol>\n","urlObject":{"path":["kathmandu","crime","11 december 2018"],"host":["{{myroute}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"969d269b-bd5c-48aa-8550-4dee1fa49e5d"},{"name":"api/:cityName/:time/:theme","id":"4bdbec7c-c86e-4832-a86c-1761c181605d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{myroute}}/dortmund/17 december 2012 to yesterday/population","description":"<p>This request gives all the datasets that are within the given <em><strong>date range</strong></em> for a given city. \n<strong>Example:</strong> </p>\n<p>Above endpoint gives all the population datasets of Dortmund city from 17th December 2012 to yesterday.This can also be queried as any of the following:</p>\n<hr />\n<ol>\n<li>/api/december 17th 2012 to yesterday/dortmund/population</li>\n<li>/api/population/dortmund/december 17th 2012 to yesterday</li>\n<li>/api/dortmund/population/december 17th 2012 to yesterday</li>\n</ol>\n","urlObject":{"path":["dortmund","17 december 2012 to yesterday","population"],"host":["{{myroute}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4bdbec7c-c86e-4832-a86c-1761c181605d"}],"id":"5c524205-0d25-4a94-9f3c-c6bedef4556f","description":"<p>This is an end-point that gives an access to datasets using three parameters. These three parameters (TIME, SPACE, AND THEME) can be in any order. All the possible combination of these three parameters this API supports is shown below along with an example:</p>\n<ol>\n<li>api/:theme/:time/:space</li>\n<li>api/:theme/:space/:time</li>\n<li>api/:time/:space/:theme</li>\n<li>api/:time/:theme/:space</li>\n<li>api/:space/:theme/:time</li>\n<li>api/:space/:time/:theme</li>\n</ol>\n","event":[{"listen":"prerequest","script":{"id":"db2ded64-d504-4c0e-8698-f6e97059db29","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"763f349d-6563-4b32-9440-8fe29909092f","type":"text/javascript","exec":[""]}}],"_postman_id":"5c524205-0d25-4a94-9f3c-c6bedef4556f"}],"event":[{"listen":"prerequest","script":{"id":"7ae02039-8dd8-45ef-a4bc-b3b4320c794a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c1dc7045-b963-4466-b32e-581b9ab5d9a1","type":"text/javascript","exec":[""]}}]}