@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix freq: <http://purl.org/cld/freq/> .
@prefix hydra: <http://www.w3.org/ns/hydra/core#> .
@prefix ns1: <http://spdx.org/rdf/terms#> .
@prefix ns2: <http://schema.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix scv: <http://purl.org/NET/scovo#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<https://data.public.lu/datasets/56fd16fa855e9b6a1088f552/> a dcat:Dataset ;
    dct:accrualPeriodicity freq:weekly ;
    dct:description """La BD-Adresses est **un sous-ensemble** des adresses figurant dans le **registre national des localités et des rues**, enrichi par des coordonnées géographiques.

La **base du géoréférencement** des adresses est la **parcelle cadastrale** et le **plan cadastral numérisé** (PCN), dont le référentiel peut présenter des décalages vis-à-vis du système de référence LUREF (Luxembourg Reference Frame).

Les coordonnées des points d'adresses peuvent avoir comme origine:
- un placement manuel
- un calcul automatisé (soit au géocentre d'une parcelle cadastrale, soit au géocentre du plus grand bâtiment situé sur une parcelle cadastrale)

**_Remarques:_**
- les points d'adresses ne représentent pas l'entrée réelle des bâtiments
- plusieurs points d'adresses peuvent être situés aux mêmes coordonnées géographiques
- la BD-adresses ne contient pas toutes les adresses officielles du registre national des localités et des rues. Un certain nombre d'adresses ne sont pas encore géoréférencées.
- l'exhaustivité des données ne peut être garantie.""" ;
    dct:identifier "56fd16fa855e9b6a1088f552" ;
    dct:issued "2016-03-31T12:24:26.072000"^^xsd:dateTime ;
    dct:modified "2020-01-13T05:38:31.629000"^^xsd:dateTime ;
    dct:publisher <https://data.public.lu/organizations/56f54c310d6ceb552837f07c/> ;
    dct:title "Adresses géoréférencées (BD-Adresses)" ;
    dcat:distribution <https://data.public.lu/datasets/56fd16fa855e9b6a1088f552/#resource-28edc114-6af1-4271-a019-5d0d4bf4b6b2>,
        <https://data.public.lu/datasets/56fd16fa855e9b6a1088f552/#resource-2a17ddc2-b961-45ce-83a2-be751d3af9b8>,
        <https://data.public.lu/datasets/56fd16fa855e9b6a1088f552/#resource-5cadc5b8-6a7d-4283-87bc-f9e58dd771f7>,
        <https://data.public.lu/datasets/56fd16fa855e9b6a1088f552/#resource-7b58cf20-cbb0-4970-83f7-53a277f691b8>,
        <https://data.public.lu/datasets/56fd16fa855e9b6a1088f552/#resource-8127ecf4-0bdf-45f1-b1a0-10a0eab89dfa> ;
    dcat:keyword "adresses",
        "adresses-georeferencees",
        "communes",
        "localisation",
        "luref",
        "pcn",
        "point-adresse",
        "urbanisme" .

<https://data.public.lu/datasets/56fd16fa855e9b6a1088f552/#resource-28edc114-6af1-4271-a019-5d0d4bf4b6b2> a dcat:Distribution ;
    dct:description """Parameters:
- easting: East Coordinate in LUREF Coordinates
- northing: North Coordinate in LUREF Coodinates
- dc: random number (optional) to prevent caching
- cb: callback function name. If specified return JSONP rather than JSON

Full example:
````
http://apiv3.geoportail.lu/geocode/reverse?easting=80000&northing=80000
````

Alternative:
- lat: latitude in WGS84 Coordinates
- lon: longitude in WGS84 Coordinates
- cb: callback function name

Example: 
````
http://apiv3.geoportail.lu/geocode/reverse?lon=6.11249&lat=49.61055
````

Return parameters:
- success: success true/false
- count: Number of results found
- results: List order by ascending distance
- distance: distance in m to the address
- geom: geojson object with the coordinates of the point in LUREF coordinates
- geomlonlat: geojson Geometry Object with coordinates in WGS84 Lat/Lon
- name: formatted address string
- easting: East Coordinate in LUREF coordinates
- northing: North Coordinates in LUREF coordinates
- address: formatted address string
- AddressDetails: Address Details
- zip: Postcode
- Locality: locality
- id_caclr_street: Street ID in national Address DB
- street: street name
- postnumber: hosuenumber
- id_caclr_building: Building ID in national Address DB

Result:
````
{"count": 1, "results": [{"distance": 8.2954085109112103, "geom": {"type": "Point", "coordinates": [75983.84375, 75110.6796875]}, "name": "23,Avenue des Archiducs 1135 Luxembourg", "easting": 75983.84375, "address": "23 Avenue des Archiducs,1135 Luxembourg", "geomlonlat": {"type": "Point", "coordinates": [6.11255434207935, 49.6106117587006]}, "AddressDetails": {"zip": "1135", "locality": "Luxembourg", "id_caclr_street": "15", "street": "Avenue des Archiducs", "postnumber": "23", "id_caclr_building": "571"}, "matching street": "Avenue des Archiducs", "northing": 75110.6796875}], "success": true}
````""" ;
    dct:format "json" ;
    dct:identifier "28edc114-6af1-4271-a019-5d0d4bf4b6b2" ;
    dct:issued "2016-07-25T00:00:00"^^xsd:dateTime ;
    dct:license <https://creativecommons.org/publicdomain/zero/1.0/> ;
    dct:modified "2018-09-04T10:51:55.165000"^^xsd:dateTime ;
    dct:rights "Creative Commons Zero (CC0)" ;
    dct:title "Reverse geocode REST API" ;
    dcat:accessURL <https://data.public.lu/fr/datasets/r/28edc114-6af1-4271-a019-5d0d4bf4b6b2> ;
    dcat:downloadURL <http://apiv3.geoportail.lu/geocode/reverse> .

<https://data.public.lu/datasets/56fd16fa855e9b6a1088f552/#resource-2a17ddc2-b961-45ce-83a2-be751d3af9b8> a dcat:Distribution ;
    dct:description """Fichier de points en LUREF EPSG:2169

Contient les coordonnées au format LUREF XY et WGS84 Lat/Lon""" ;
    dct:format "zip" ;
    dct:identifier "2a17ddc2-b961-45ce-83a2-be751d3af9b8" ;
    dct:issued "2016-04-05T09:23:17.696000"^^xsd:dateTime ;
    dct:license <https://creativecommons.org/publicdomain/zero/1.0/> ;
    dct:modified "2020-01-13T05:36:17"^^xsd:dateTime ;
    dct:rights "Creative Commons Zero (CC0)" ;
    dct:title "addresses-shp.zip" ;
    ns1:checksum [ a ns1:Checksum ;
            ns1:algorithm ns1:checksumAlgorithm_sha1 ;
            ns1:checksumValue "733d44cff40f427fac6fcf216e74e2e12d000435" ] ;
    dcat:accessURL <https://data.public.lu/fr/datasets/r/2a17ddc2-b961-45ce-83a2-be751d3af9b8> ;
    dcat:bytesSize 16659133 ;
    dcat:downloadURL <https://download.data.public.lu/resources/adresses-georeferencees-bd-adresses/20200113-053617/addresses-shp.zip> ;
    dcat:mediaType "application/zip" .

<https://data.public.lu/datasets/56fd16fa855e9b6a1088f552/#resource-5cadc5b8-6a7d-4283-87bc-f9e58dd771f7> a dcat:Distribution ;
    dct:description "Contient les coordonnées au format LUREF XY et WGS84 Lat/Lon" ;
    dct:format "csv" ;
    dct:identifier "5cadc5b8-6a7d-4283-87bc-f9e58dd771f7" ;
    dct:issued "2016-04-05T09:21:36.927000"^^xsd:dateTime ;
    dct:license <https://creativecommons.org/publicdomain/zero/1.0/> ;
    dct:modified "2020-01-13T05:30:48"^^xsd:dateTime ;
    dct:rights "Creative Commons Zero (CC0)" ;
    dct:title "addresses.csv" ;
    ns1:checksum [ a ns1:Checksum ;
            ns1:algorithm ns1:checksumAlgorithm_sha1 ;
            ns1:checksumValue "f523258063cd1a866f1dd615d7c4a66758c802cd" ] ;
    dcat:accessURL <https://data.public.lu/fr/datasets/r/5cadc5b8-6a7d-4283-87bc-f9e58dd771f7> ;
    dcat:bytesSize 23831328 ;
    dcat:downloadURL <https://download.data.public.lu/resources/adresses-georeferencees-bd-adresses/20200113-053047/addresses.csv> ;
    dcat:mediaType "text/csv" .

<https://data.public.lu/datasets/56fd16fa855e9b6a1088f552/#resource-7b58cf20-cbb0-4970-83f7-53a277f691b8> a dcat:Distribution ;
    dct:description "Points addresse au format GEOJSON" ;
    dct:format "geojson" ;
    dct:identifier "7b58cf20-cbb0-4970-83f7-53a277f691b8" ;
    dct:issued "2016-04-07T17:48:04.180000"^^xsd:dateTime ;
    dct:license <https://creativecommons.org/publicdomain/zero/1.0/> ;
    dct:modified "2020-01-13T05:38:29"^^xsd:dateTime ;
    dct:rights "Creative Commons Zero (CC0)" ;
    dct:title "addresses.geojson" ;
    ns1:checksum [ a ns1:Checksum ;
            ns1:algorithm ns1:checksumAlgorithm_sha1 ;
            ns1:checksumValue "1fe89478aefe7b4dc838f457c5f294297515e0c1" ] ;
    dcat:accessURL <https://data.public.lu/fr/datasets/r/7b58cf20-cbb0-4970-83f7-53a277f691b8> ;
    dcat:bytesSize 66995978 ;
    dcat:downloadURL <https://download.data.public.lu/resources/adresses-georeferencees-bd-adresses/20200113-053828/addresses.geojson> ;
    dcat:mediaType "application/octet-stream" .

<https://data.public.lu/datasets/56fd16fa855e9b6a1088f552/#resource-8127ecf4-0bdf-45f1-b1a0-10a0eab89dfa> a dcat:Distribution ;
    dct:description """Parameters:
- num: House number
- street: Street name
- locality: Locality
- zip: Postcode
- dc: random number (optional) to prevent caching
- cb: callback function name. If specified return JSONP rather than JSON

Full example:
```` 
http://apiv3.geoportail.lu/geocode/search?num=54&street=Avenue%20Gaston%20Diderich&zip=&locality=Luxembourg&_dc=1386599465147&cb=stcCallback1001
````

Alternative:
- queryString: formatted address in one string
- dc random number
- cb: callback function name

Example: 
```
http://apiv3.geoportail.lu/geocode/search?queryString=54,%20avenue%20Gaston%20Diderich,1420%20%20Luxembourg
```

Return parameters
- success: success true/false
- count: Number of results found
- results: List order by descending accuracy and ratio
- ratio: ratio from 0-1. Expresses the certainty of the result, 1 being the maximum
- name: Formatted string representing the addresse
- easting: East Coordinate in LUREF Coords
- northing: North Coordinate in LUREF Coords
- address: Address String
- geom : geojson Geometry Object with coordinates in LUREF X,Y
- geomlonlat: geojson Geometry Object with coordinates in WGS84 Lat/Lon
- matching street: Name of the street
- accuracy: Codes from 0 - 8 expressing the level of geocoding(
  - 8 at house number level
  - 7 at point of interest level
  - 6 at street level
  - 5 at locality level
  - 1 at national level (Luxembourg)
- AddressDetails: Address Details
- zip: Postcode
- Locality: locality
- id_caclr_street: Street ID in national Address DB
- street: street name
- postnumber: hosuenumber
- id_caclr_building: Building ID in national Address DB

Result:
````
{"count": 2, "results": [{"ratio": 1.0, "name": "54,Avenue Gaston Diderich 1420 Luxembourg", "easting": 75983.84375, "address": "54 Avenue Gaston Diderich,1420 Luxembourg", "geomlonlat": {"type": "Point", "coordinates": [6.11255434207935, 49.6106117587006]}, "geom": {"type": "Point", "coordinates": [75983.84375, 75110.6796875]}, "northing": 75110.6796875, "AddressDetails": {"zip": "1420", "locality": "Luxembourg", "id_caclr_street": "19", "street": "Avenue Gaston Diderich", "postnumber": "54", "id_caclr_building": "1088"}, "matching street": "Avenue Gaston Diderich", "accuracy": 8}, {"ratio": 1.0, "name": ",Avenue Gaston Diderich 1420 Luxembourg", "easting": 75643.185748922406, "address": " Avenue Gaston Diderich,1420 Luxembourg", "geomlonlat": {"type": "Point", "coordinates": [6.1078415667193298, 49.6100594816659]}, "geom": {"type": "Point", "coordinates": [75643.185748922406, 75049.512442753199]}, "northing": 75049.512442753199, "AddressDetails": {"zip": "1420", "locality": "Luxembourg", "id_caclr_street": "19", "street": "Avenue Gaston Diderich", "postnumber": "None", "id_caclr_building": ""}, "matching street": "Avenue Gaston Diderich", "accuracy": 6}], "success": true}
````""" ;
    dct:format "json" ;
    dct:identifier "8127ecf4-0bdf-45f1-b1a0-10a0eab89dfa" ;
    dct:issued "2016-07-25T00:00:00"^^xsd:dateTime ;
    dct:license <https://creativecommons.org/publicdomain/zero/1.0/> ;
    dct:modified "2018-09-04T10:50:12.161000"^^xsd:dateTime ;
    dct:rights "Creative Commons Zero (CC0)" ;
    dct:title "Geocode REST API" ;
    dcat:accessURL <https://data.public.lu/fr/datasets/r/8127ecf4-0bdf-45f1-b1a0-10a0eab89dfa> ;
    dcat:downloadURL <http://apiv3.geoportail.lu/geocode/search> .

<https://data.public.lu/organizations/56f54c310d6ceb552837f07c/> a foaf:Organization ;
    rdfs:label "Administration du cadastre et de la topographie" ;
    foaf:homepage <http://www.act.public.lu/fr/administration-cadastre/index.html> ;
    foaf:name "Administration du cadastre et de la topographie" .

