Porovnávané verzie

Kľúč

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

legal-subject-shapes-2023b.ttl

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

lsub:RPOLegalSubjectShape
	a sh:NodeShape ;
	sh:targetClass lsub:LegalSubject ;
	sh:property [
		sh:path skos:prefLabel ;
		sh:datatype xsd:string ;
		sh:minCount 1 ;
		sh:maxCount 1
	] ;
	
	sh:property [
		sh:path lsub:headquarters ;
		sh:class loca:PhysicalAddress ;
		sh:nodeKind sh:IRI ;
		sh:minCount 1 ;
		sh:maxCount 1
	] ;
	
	sh:property [
		sh:path lsub:legalId ;
		sh:nodeKind sh:IRI ;
		sh:class loca:LegalId ;
		sh:minCount 1 ;
		sh:maxCount 1
	] .
	
lsub:RPOLegalIdShape
	a sh:NodeShape ;
	sh:targetClass lsub:LegalId ;
	sh:property [
		sh:path skos:notation ;
		sh:datatype xsd:string ;
		sh:pattern "[0-9]{8}" ;
		sh:minCount 1 ;
		sh:maxCount 1
	] .

...