/
Usmernenie: JSON-LD API pre Cestovný pas

Usmernenie: JSON-LD API pre Cestovný pas


{
  "@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/",
    "lau2": "https://data.gov.sk/def/lau2/",
    "name-prefix": "https://data.gov.sk/def/name-prefix/",
    "name-suffix": "https://data.gov.sk/def/name-suffix/",
    "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/",
    "identifiertype": "https://data.gov.sk/def/identifier-type/",
    "sex": "https://data.gov.sk/def/sex/",
    "cccev": "http://data.europa.eu/m8g/",
    "passport": "https://minv.gov.sk/id/passport/",
    "schema": "http://schema.org/",
    "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#",
    "xs": "http://www.w3.org/2001/XMLSchema#"
  },
  "@id": "isvs:XYZ",
  "@graph": [
    {
      "@id": "passport:XB78919880",
      "@type": "cccev:Evidence",
      "adms:identifier": {
        "@type": "adms:Identifier",
        "skos:notation": {
          "@value": "XB78919880",
          "@type": "xs:string"
        },
        "dct:type": {
          "@id": "identifiertype:2",
          "@type": "egov:IdentifierType",
          "skos:prefLabel": {
            "@language": "sk",
            "@value": "Číslo pasu"
          },
          "skos:inScheme": {
            "@id": "codelist:CL004001"
          }
        },
        "egov:issuingCountry": {
          "@id": "uncountry:703",
          "skos:prefLabel": {
            "@value": "Slovenská republika",
            "@language": "sk"
          },
          "skos:inScheme": {
            "@id": "codelist:CL000086"
          }
        }
      },
      "dct:type": "https://data.gov.sk/def/taxonomy/evidence-type/passport",
      "pper:passportCode": {
        "skos:prefLabel": {
          "@value": "SVK",
          "@type": "xs:string"
        }
      },
      "dct:publisher": {
        "@id": "legal-subject:00603317",
        "@type": "lsub:LegalSubject",
        "skos:prefLabel": {
          "@value": "Okresné riaditeľstvo policajného zboru Bratislava III",
          "@language": "sk"
        }
      },
      "dct:issued": {
        "@value": "2014-11-26",
        "@type": "xs:date"
      },
      "schema:validUntil": {
        "@value": "2024-11-26"
      },
      "dct:subject": "pco-person:11117307046912",
      "lsub:officialRecord": [
        {
          "skos:note": {
            "@value": "Doklad bol prevzatý 2014-11-28.",
            "@language": "sk"
          },
          "dct:publisher": {
            "@id": "legal-subject:00603317",
            "@type": "lsub:LegalSubject",
            "skos:prefLabel": {
              "@value": "Okresné riaditeľstvo policajného zboru Bratislava III",
              "@language": "sk"
            }
          },
          "dct:created": {
            "@value": "2014-11-28",
            "@type": "xs:date"
          }
        },
        {
          "skos:note": {
            "@value": "Doklad bol po stratení opäť nájdený.",
            "@language": "sk"
          },
          "dct:publisher": {
            "@id": "legal-subject:00603317",
            "@type": "lsub:LegalSubject",
            "skos:prefLabel": {
              "@value": "Okresné riaditeľstvo policajného zboru Bratislava III",
              "@language": "sk"
            }
          },
          "dct:created": {
            "@value": "2018-1-3",
            "@type": "xs:date"
          }
        }
      ],
      "egov:portraitBase64": {
        "@value": "",
        "@type": "xs:base64Binary"
      },
      "egov:signatureBase64": {
        "@value": "",
        "@type": "xs:base64Binary"
      }
    },
    {
      "@id": "pco-person:11117307046912",
      "@type": "pper:PhysicalPerson",
      "pper:givenName": {
        "@value": "Vzorka",
        "@type": "xs:string"
      },
      "pper:familyName": {
        "@value": "Specimen",
        "@type": "xs:string"
      },
      "pper:givenFamilyName": {
        "@value": "Specimen",
        "@type": "xs:string"
      },
      "pper:namePrefix": {
        "@id": "name-prefix:01",
        "@type": "pper:NamePrefix",
        "skos:prefLabel": [
          {
            "@language": "en",
            "@value": "MSc."
          },
          {
            "@language": "sk",
            "@value": "Ing."
          }
        ],
        "skos:inScheme": {
          "@id": "codelist:CL000062"
        }
      },
      "pper:dateOfBirth": {
        "@value": "1911-11-11",
        "@type": "xs:date"
      },
      "pper:birthNumberCode": {
        "@value": "111111/1111",
        "@type": "xs:string"
      },
      "pper:placeOfBirth": {
        "@type": "loca:Location",
        "loca:lau2": {
          "@id": "lau2:SK0101528595",
          "@type": "loca:LAU2",
          "skos:prefLabel": {
            "@language": "sk",
            "@value": "Bratislava - mestská časť Staré Mesto"
          },
          "skos:inScheme": {
            "@id": "codelist:CL000025"
          }
        }
      },
      "pper:citizenship": {
        "@id": "uncountry:703",
        "skos:prefLabel": {
          "@value": "Slovenská republika",
          "@language": "sk"
        },
        "skos:inScheme": {
          "@id": "codelist:CL000086"
        }
      },
      "pper:residenceAddress": {
        "@id": "address:702356878",
        "loca:formattedAddress": {
          "@language": "sk",
          "@value": "Nová Dedinka, Nad jazerom 16"
        }
      },
      "pper:sex": {
        "@id": "sex:2",
        "@type": "pper:Sex",
        "skos:prefLabel": [
          {
            "@language": "en",
            "@value": "female"
          },
          {
            "@language": "sk",
            "@value": "žena"
          }
        ],
        "skos:inScheme": {
          "@id": "codelist:CL003003"
        }
      }
    }
  ]
}


  • Chýba Štátne občianstvo - navyše je Národnosť
  • Chýba pohlavie
  • Úradné záznamy - pole záznamov
  • Formát Fotografie a Podpisu - pravdepodobne to nebude URL obrázka ale asi priamo súbor fotky vo formáte Base64


Typ

Kód

Číslo pasu

Priezvisko

Meno

Štátne občianstvo

Miesto narodenia

Dátum narodenia

Pohlavie

Dátum vydania

Dátum platnosti

Pas vydal

Identifikačné číslo / RČ

Podpis

Fotografia

Akademický titul

Úradné záznamy