Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.


physical-person-shapes-2023b.ttl

Blok kódu
languagexml
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix pper: <https://data.gov.sk/def/ontology/physical-person/> .
@prefix loca: <https://data.gov.sk/def/ontology/location/> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix schema: <http://schema.org/> .

pper:RFOPersonShape
	a sh:NodeShape ;
	sh:targetClass pper:PhysicalPerson ;
    dct:subject <https://data.gov.sk/id/egov/isvs/191> ;
    sh:property [
		sh:path pper:givenName ;
		sh:datatype xsd:string ;
		sh:minCount 1
	] ;
	
	sh:property [
		sh:path pper:familyName ;
		sh:datatype xsd:string ;
		sh:minCount 1
	] ;
	
	sh:property [
		sh:path pper:birth ;
		sh:class pper:Birth ;
		sh:nodeKind sh:IRI ;
		sh:minCount 1 ;
		sh:maxCount 1 
	] ;
	
	sh:property [
		sh:path pper:birthNumber ;
		sh:class pper:BirthNumber ;
		sh:nodeKind sh:IRI ;
		sh:minCount 1 ;
		sh:maxCount 1 
	] ;
	
	sh:property [
		sh:path pper:permanentResidenceAddress ;
		sh:class loca:PhysicalAddress ;
		sh:nodeKind sh:IRI ;
		sh:minCount 1 ;
		sh:maxCount 1 
	] .


pper:RFOBirthShape
	a sh:NodeShape ;
	sh:targetClass pper:Birth ;
    dct:subject <https://data.gov.sk/id/egov/isvs/191> ;
    sh:property [
		sh:path pper:dateOfBirth ;
		sh:datatype xsd:date ;
		sh:minCount 1 ;
		sh:maxCount 1
	] .
    
	
pper:RFOBirthNumberShape
	a sh:NodeShape ;
	sh:targetClass pper:BirthNumber ;
    dct:subject <https://data.gov.sk/id/egov/isvs/191> ;
    sh:property [
		sh:path skos:notation ;
		sh:datatype xsd:string ;
		sh:pattern "[0-9]{6}\/[0-9]{4}" ;
		sh:minCount 1 ;
		sh:maxCount 1
	] .

...