diff --git a/files/catalog-example.json b/files/catalog-example.json index d9e1d59..e1679fb 100644 --- a/files/catalog-example.json +++ b/files/catalog-example.json @@ -13,7 +13,7 @@ "dcat:keyword": "http://schema.org/Service", "dcat:distribution": [{ "@type": "dcat:Distribution", - "dcat:accessUrl": "https://www.mechelen.be/huis-van-de-mechelaar", + "dcat:accessUrl": "http://smartflanders.ilabt.imec.be/graph/service-example.json", "dcat:mediaType": "text/html" }] }, @@ -22,7 +22,7 @@ "dcat:keyword": "http://purl.org/vocab/cpsv#PublicService", "dcat:distribution": [{ "@type": "dcat:Distribution", - "dcat:accessUrl": "http://www.academiemechelen.be/", + "dcat:accessUrl": "http://smartflanders.ilabt.imec.be/graph/service-example.json", "dcat:mediaType": "text/html" }] }, diff --git a/files/master-catalog.json b/files/master-catalog.json index eedaa7a..8ad523c 100644 --- a/files/master-catalog.json +++ b/files/master-catalog.json @@ -6,7 +6,7 @@ }, "@type": "dcterms:Collection", "dcterms:hasPart": [{ - "foaf:page": "http://smartflanders.ilabt.imec.be/catalog-example.json", + "foaf:page": "http://smartflanders.ilabt.imec.be/graph/catalog-example.json", "@type": "dcat:Catalog" }, { diff --git a/helpers/postcodeMapper.js b/helpers/postcodeMapper.js index 6303ca9..f567938 100644 --- a/helpers/postcodeMapper.js +++ b/helpers/postcodeMapper.js @@ -1,10 +1,11 @@ const https = require('https'); +const fs = require('fs'); let adressen = []; startMapping(); async function startMapping(){ console.log('started') - await fetchAddresses("https://basisregisters.vlaanderen.be/api/v1/adressen?Postcode=9300"); - console.log(addressen) + await fetchAddresses("https://basisregisters.vlaanderen.be/api/v1/adressen?Postcode=9300&limit=300"); + fs.writeFile('./', JSON.parse(adressen)); } async function fetchAddresses(url){ @@ -12,8 +13,8 @@ async function fetchAddresses(url){ _adressen.adressen.forEach(element => { adressen.push(element.identificator.objectId) }) - if(_addressen.volgende){ - await fetchAddresses(_addressen.volgende); + if(_adressen.volgende){ + await fetchAddresses(_adressen.volgende); } } diff --git a/meetings/SmartFlandersResponsibilities.odg b/meetings/SmartFlandersResponsibilities.odg new file mode 100644 index 0000000..078ba5b Binary files /dev/null and b/meetings/SmartFlandersResponsibilities.odg differ