/
Usmernenie: JSON-LD API Získanie údajov adresy

Usmernenie: JSON-LD API Získanie údajov adresy

Možné vstupy:

  • Identifikátor adresy, alebo
  • GPS pozície a vzdialenosti, alebo
  • Popisu adresy

Výstup (príklad):

Štefánikova 15, Bratislava  Staré Mesto, GPS: (long. 17.106678 , lat. 48.150914)

ID v registry adries: 10539221, URI adresy: https://data.gov.sk/id/physical-address/10539221

{
  "@context": {
    "pper": "https://data.gov.sk/def/ontology/physical-person/",
    "lsub": "https://data.gov.sk/def/ontology/legal-subject/",
    "loca": "https://data.gov.sk/def/ontology/location/",
    "egov": "https://data.gov.sk/def/ontology/egovernment/",
    "name-prefix": "https://data.gov.sk/def/name-prefix/",
    "name-suffix": "https://data.gov.sk/def/name-prefix/",
    "nuts3": "https://data.gov.sk/id/nuts3/",
    "lau1": "https://data.gov.sk/id/lau1/",
    "lau2": "https://data.gov.sk/id/lau2/",
    "street": "https://data.gov.sk/id/street/",
    "uncountry": "https://data.gov.sk/def/uncountry/",
    "address-type": "https://data.gov.sk/def/address-type/",
    "address": "https://data.gov.sk/id/physical-address/",
    "legal-subject": "https://data.gov.sk/id/legal-subject/",
    "isvs": "https://data.gov.sk/id/egov/isvs/",
    "codelist": "https://data.gov.sk/set/codelist/",
    "geo": "http://www.opengis.net/ont/geosparql#",
    "sf": "http://www.opengis.net/ont/sf#",
    "adms": "http://www.w3.org/ns/adms#",
    "dct": "http://purl.org/dc/terms/",
    "skos": "http://www.w3.org/2004/02/skos/core#",
    "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
    "locn": "http://www.w3.org/ns/locn#",
    "xs": "http://www.w3.org/2001/XMLSchema#"
  },
  "@id": "isvs:192",
  "@graph": [
    {
      "@id": "address:10539221",
      "@type": "loca:PhysicalAddress",
      "adms:identifier": {
        "@type": "adms:Identifier",
        "skos:notation": {
          "@value": "10539221",
          "@type": "xs:string"
        },
        "dct:type": {
          "@id": "identifiertype:_101",
          "@type": "egov:IdentifierType",
          "skos:prefLabel": {
            "@language": "sk",
            "@value": "Identifikátor adresného bodu"
          },
          "skos:inScheme": {
            "@id": "codelist:CL004001"
          }
        },
        "egov:issuingCountry": {
          "@id": "uncountry:703",
          "skos:prefLabel": {
            "@value": "Slovenská republika",
            "@language": "sk"
          },
          "skos:inScheme": {
            "@id": "codelist:CL000086"
          }
        }
      },
      "loca:formattedAddress": {
        "@value": "Štefánikova 882/15, Bratislava-Staré Mesto, 81105",
        "@language": "sk"
      },
      "geo:hasGeometry": {
        "@type": "sf:Point",
        "geo:asWKT:": {
          "@value": "POINT(17.106678 48.150914)",
          "@type": "geo:wktLiteral"
        }
      },
      "loca:street": {
        "@id": "street:4576744710567",
        "@type": "loca:Street",
        "skos:prefLabel": {
          "@value": "Štefánikova",
          "@language": "sk"
        }
      },
      "loca:orientationNumber:": {
        "@value": "15",
        "@type": "xs:string"
      },
      "loca:propertyRegistrationNumber:": {
        "@value": "3013",
        "@type": "xs:string"
      },
      "loca:postCode": {
        "@id": "postcode:82905",
        "@type": "loca:PostCode",
        "skos:prefLabel": {
          "@value": "82905",
          "@type": "xs:string"
        }
      },
      "loca:district": {
        "@id": "district:2040990",
        "@type": "loca:District",
        "skos:prefLabel": {
          "@value": "Bratislava - historické jadro",
          "@language": "sk"
        }
      },
      "loca:lau2": {
        "@id": "lau2:SK0101528595",
        "@type": "loca:LAU2",
        "skos:prefLabel": {
          "@value": "Bratislava mestká časť - Staré mesto",
          "@language": "sk"
        },
          "skos:inScheme": {
            "@id": "codelist:CL000025"
          }
      },
      "loca:lau1": {
        "@id": "lau1:SK0101",
        "@type": "loca:LAU1",
        "skos:prefLabel": {
          "@value": "Okres Bratislava I",
          "@language": "sk"
        },
          "skos:inScheme": {
            "@id": "codelist:CL000024"
          }
      },
      "loca:nuts3": {
        "@id": "nuts3:SK01",
        "@type": "loca:NUTS3",
        "skos:prefLabel": {
          "@value": "Bratislavský kraj",
          "@language": "sk"
        },
          "skos:inScheme": {
            "@id": "codelist:CL000023"
          }
      },
      "dct:publisher": {
        "@id": "legal-subject:00151866",
        "@type": "lsub:LegalSubject",
        "skos:prefLabel": {
          "@value": "Ministerstvo vnútra Slovenskej republiky",
          "@language": "sk"
        }
      },
      "schema:validFrom": {
        "@value": "2020-11-26"
      }
    }
  ]
}

Poznámky k 2023b (zmena URI)

  • locn:geometry -> geo:hasGeometry
  • locn:fullAddress → loca:formattedAddress