-
Notifications
You must be signed in to change notification settings - Fork 0
/
vocabs-bindings.yml
59 lines (53 loc) · 2.12 KB
/
vocabs-bindings.yml
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
input-filter:
csv:
transform:
# Keep data only
- '.data'
# Set fields with empty or '-' value to null
- 'walk(if type == "object" then with_entries(if (.value | test("^\\s*-?\\s*$")) then .value = null else . end) else . end)'
# turn known fields with space separated lists into arrays
- |
walk(if (type == "object") then
( if (.Schemes and .Schemes != "-") then .Schemes |= split(" ") else .Schemes = [] end ) |
( if (.Classes and .Classes != "-") then .Classes |= split(" ") else .Classes = [] end )
else . end)
types:
'$[*]':
- qb:CodedProperty
#@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
#@prefix qb: <http://purl.org/linked-data/cube#> .
#@prefix termtype: <https://linked.data.gov.au/def/csdm/termtypes/> .
#
#container:horizontalCRS
# a qb:CodedProperty ;
# qb:codeList <https://linked.data.gov.au/def/csdm/nz-crs>, <https://linked.data.gov.au/def/csdm/nz-compound-crs> ;
# rdfs:label "NZ Coordinate Reference Systems" ;
# rdfs:range <https://linked.data.gov.au/def/csdm/surveyfeatures/> .
#Class,Property,Range,Scheme
#container:CSD,container:horizontalCRS,termtype:AllowableCoordinateReferenceSystem,vocabs:nz-crs vocabs:nz-compound-crs
context:
$:
skos: http://www.w3.org/2004/02/skos/core#
dct: http://purl.org/dc/terms/
policy: http://www.opengis.net/def/metamodel/ogc-na/
surv: https://linked.data.gov.au/def/csdm/surveyfeatures/
surveyobs: https://linked.data.gov.au/def/csdm/surveyobs/
sosa: http://www.w3.org/ns/sosa/
container: https://linked.data.gov.au/def/csdm/container/
termtype: https://linked.data.gov.au/def/csdm/termtypes/
parcel: https://linked.data.gov.au/def/csdm/parcels/
qb: http://purl.org/linked-data/cube#
vocabs: https://linked.data.gov.au/def/csdm/
rdfs: http://www.w3.org/2000/01/rdf-schema#
sh: http://www.w3.org/ns/shacl#
Classes:
'@type': '@id'
'@id': sh:targetClass
Property: '@id'
Range:
'@type': '@id'
'@id': rdfs:range
Schemes:
'@type': '@id'
'@id': qb:codeList
Label: rdfs:label