forked from icsm-au/addr-model
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalidator.ttl
76 lines (69 loc) · 2.97 KB
/
validator.ttl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
PREFIX : <https://linked.data.gov.au/def/addr/validator/>
PREFIX addr: <https://linked.data.gov.au/def/addr/>
PREFIX cn: <https://linked.data.gov.au/def/cn/>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX schema: <https://schema.org/>
PREFIX sh: <http://www.w3.org/ns/shacl#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX time: <http://www.w3.org/2006/time#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
<https://linked.data.gov.au/def/addr/validator>
a owl:Ontology ;
skos:historyNote "This model validator was made for the Queensland Department of Resources, Spatial Information unit to assist with future Address database design."@en ;
owl:versionIRI addr:1.0.0 ;
owl:versionInfo "1.0.0" ;
skos:definition "This validator is a Shapes Constraint Language (SHACL) resource that can be used to check the conformance of RDF data to the Address Model (<https://linked.data.gov.au/def/addr>). It only check for 3 things which are described in individual shapes within this validator"@en ;
skos:prefLabel "Address Model Validator"@en ;
schema:codeRepository "https://github.com/Spatial-Information-QLD/address-model/"^^xsd:anyURI ;
schema:copyrightHolder <https://linked.data.gov.au/org/qsi> ;
schema:copyrightNotice "(c) The State of Queensland (Department of Resources) 2020-2023" ;
schema:creator <https://orcid.org/0000-0002-8742-7730> ;
schema:dateCreated "2021-12-16"^^xsd:date ;
schema:dateIssued "2023-06-30"^^xsd:date ;
schema:dateModified "2022-07-04"^^xsd:date ;
schema:license "https://creativecommons.org/licenses/by/4.0/"^^xsd:anyURI ;
schema:publisher <https://linked.data.gov.au/org/qsi> ;
.
<https://linked.data.gov.au/org/qsi>
a schema:Organization ;
schema:name "Spatial Information Queensland"@en ;
schema:url "https://qldspatial.information.qld.gov.au"^^xsd:anyURI ;
.
<https://orcid.org/0000-0002-8742-7730>
a schema:Person ;
schema:email "[email protected]"^^xsd:anyURI ;
schema:name "Nicholas J. Car"@en ;
schema:memberOf <https://kurrawong.ai> ;
.
:addressable-object-present
a sh:NodeShape ;
sh:targetClass addr:Address ;
sh:property [
sh:path cn:isNameFor ;
sh:nodeKind sh:IRI ;
sh:maxCount 1;
sh:minCount 1;
] ;
sh:message "Each Address must indicate an IRI with the property cn:isNameFor" ;
.
:geocode-present
a sh:NodeShape ;
sh:targetClass addr:Address ;
sh:property [
sh:path addr:hasGeocode ;
sh:class addr:Geocode ;
sh:minCount 1;
] ;
sh:message "Each Address must indicate at least one Geocode with the property addr:hasGeocode" ;
.
:address-parts-1
a sh:NodeShape ;
sh:targetClass addr:Address ;
sh:property [
sh:path schema:hasPart ;
sh:class cn:CompoundName ;
sh:minCount 1;
] ;
sh:message "Each Address must have at least one part which must be Compound Names, indicated with schema:hasPart" ;
.