adiwg-json_schemas 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9192de0dae2739e384a8af11ba6bc1614246628b
4
- data.tar.gz: 368381002533943bd9bf01dc2afa594577ad7ab2
3
+ metadata.gz: 8805ffd9407da44e94bdc3e3777bb1613d0d0623
4
+ data.tar.gz: 7b01cc32d09eb7dc847d63cd2fca5c379b70d864
5
5
  SHA512:
6
- metadata.gz: 5ecf55cded067a669c2f9f19412cc0407ab1f9ce1da3c9bf979816f39838aa614874690b7e3828efd0d76e206abcec726f7641e808ca63c4bd5bf7b14a0d859d
7
- data.tar.gz: 342ab1d892c5d445f97877fd7b5b7e7f0c500d691b6d53a4dad9e9b2fc71279d669bf03e0a16aba3e4ff0c26bbd9f1657beee08f2c8008f3d54d4a06cf2e4af4
6
+ metadata.gz: ef5ca1bc96571c65cc8f4975c8c79536c4d8d0a831878fdaba78789d30ef3751489a6b7cf149806d053ca31bb76d0c91492a7541278a6b51b0899cc6dd30994a
7
+ data.tar.gz: 6bd89af1a78466d38874769d33631308d578e7aa2c74b139fe4d3cee95b952d83bf9d1e985890ad54183649c9d6e150ca7b2ac6c84ab5b0550f9ab82f41a3e5d
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version":{
3
3
  "name":"mdJson",
4
- "version":"0.9.2"
4
+ "version":"0.9.4"
5
5
  },
6
6
  "contact":[
7
7
  {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version":{
3
3
  "name":"mdJson",
4
- "version":"0.9.0"
4
+ "version":"0.9.4"
5
5
  },
6
6
  "contact":[
7
7
  {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version":{
3
3
  "name":"mdJson",
4
- "version":"0.9.0"
4
+ "version":"0.9.4"
5
5
  },
6
6
  "contact":[
7
7
  {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": {
3
3
  "name": "mdJson",
4
- "version": "0.9.0"
4
+ "version": "0.9.4"
5
5
  },
6
6
  "contact": [
7
7
  {
@@ -1,6 +1,6 @@
1
1
  module ADIWG
2
2
  module JsonSchemas
3
3
  # Current schema version number
4
- VERSION = "0.9.3"
4
+ VERSION = "0.9.4"
5
5
  end
6
6
  end
@@ -168,9 +168,6 @@
168
168
  }
169
169
  }
170
170
  }
171
- },
172
- "dataDictionary": {
173
- "$ref": "dataDictionary.json#"
174
171
  }
175
172
  }
176
173
  }
data/schema/schema.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "schema.json#",
3
3
  "$schema": "http://json-schema.org/draft-04/schema#",
4
- "version": "0.9.3",
4
+ "version": "0.9.4",
5
5
  "description": "schema for ADIwg mdJSON metadata",
6
6
  "type": "object",
7
7
  "required": ["version", "contact", "metadata"],
@@ -29,6 +29,9 @@
29
29
  },
30
30
  "metadata": {
31
31
  "$ref": "schema/metadata.json"
32
+ },
33
+ "dataDictionary": {
34
+ "$ref": "schema/dataDictionary.json"
32
35
  }
33
36
  },
34
37
  "definitions": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": {
3
3
  "name": "mdJson",
4
- "version": "0.9.0"
4
+ "version": "0.9.4"
5
5
  },
6
6
  "contact": [
7
7
  {
@@ -23,22 +23,16 @@
23
23
  {
24
24
  "phoneName": "",
25
25
  "phoneNumber": "999-999-9999",
26
- "service": [
27
- ""
28
- ]
26
+ "service": [""]
29
27
  }
30
28
  ],
31
29
  "address": {
32
- "deliveryPoint": [
33
- ""
34
- ],
30
+ "deliveryPoint": [""],
35
31
  "city": "",
36
32
  "administrativeArea": "",
37
33
  "postalCode": "",
38
34
  "country": "",
39
- "electronicMailAddress": [
40
- "hello@example.com"
41
- ]
35
+ "electronicMailAddress": ["hello@example.com"]
42
36
  }
43
37
  }
44
38
  ],
@@ -63,9 +57,7 @@
63
57
  "role": ""
64
58
  }
65
59
  ],
66
- "presentationForm": [
67
- ""
68
- ],
60
+ "presentationForm": [""],
69
61
  "identifier": [
70
62
  {
71
63
  "identifier": "",
@@ -95,9 +87,7 @@
95
87
  "metadataStatus": "",
96
88
  "metadataMaintenance": {
97
89
  "maintenanceFrequency": "",
98
- "maintenanceNote": [
99
- ""
100
- ],
90
+ "maintenanceNote": [""],
101
91
  "maintenanceContact": [
102
92
  {
103
93
  "contactId": "",
@@ -123,9 +113,7 @@
123
113
  "role": ""
124
114
  }
125
115
  ],
126
- "presentationForm": [
127
- ""
128
- ],
116
+ "presentationForm": [""],
129
117
  "identifier": [
130
118
  {
131
119
  "identifier": "",
@@ -177,16 +165,10 @@
177
165
  "status": "",
178
166
  "hasMapLocation": true,
179
167
  "hasDataAvailable": true,
180
- "language": [
181
- ""
182
- ],
168
+ "language": [""],
183
169
  "purpose": "",
184
- "credit": [
185
- ""
186
- ],
187
- "topicCategory": [
188
- ""
189
- ],
170
+ "credit": [""],
171
+ "topicCategory": [""],
190
172
  "environmentDescription": "",
191
173
  "resourceNativeFormat": [
192
174
  {
@@ -196,9 +178,7 @@
196
178
  ],
197
179
  "keyword": [
198
180
  {
199
- "keyword": [
200
- ""
201
- ],
181
+ "keyword": [""],
202
182
  "keywordType": "",
203
183
  "thesaurus": {
204
184
  "title": "",
@@ -215,9 +195,7 @@
215
195
  "role": ""
216
196
  }
217
197
  ],
218
- "presentationForm": [
219
- ""
220
- ],
198
+ "presentationForm": [""],
221
199
  "identifier": [
222
200
  {
223
201
  "identifier": "",
@@ -263,9 +241,7 @@
263
241
  "resourceMaintenance": [
264
242
  {
265
243
  "maintenanceFrequency": "",
266
- "maintenanceNote": [
267
- ""
268
- ],
244
+ "maintenanceNote": [""],
269
245
  "maintenanceContact": [
270
246
  {
271
247
  "contactId": "",
@@ -295,20 +271,12 @@
295
271
  }
296
272
  ],
297
273
  "constraint": {
298
- "useLimitation": [
299
- ""
300
- ],
274
+ "useLimitation": [""],
301
275
  "legalConstraint": [
302
276
  {
303
- "accessConstraint": [
304
- ""
305
- ],
306
- "useConstraint": [
307
- ""
308
- ],
309
- "otherConstraint": [
310
- ""
311
- ]
277
+ "accessConstraint": [""],
278
+ "useConstraint": [""],
279
+ "otherConstraint": [""]
312
280
  }
313
281
  ],
314
282
  "securityConstraint": [
@@ -337,9 +305,7 @@
337
305
  "role": ""
338
306
  }
339
307
  ],
340
- "presentationForm": [
341
- ""
342
- ],
308
+ "presentationForm": [""],
343
309
  "identifier": [
344
310
  {
345
311
  "identifier": "",
@@ -405,24 +371,15 @@
405
371
  ]
406
372
  },
407
373
  "spatialReferenceSystem": {
408
- "name": [
409
- ""
410
- ],
411
- "epsgNumber": [
412
- 0
413
- ],
414
- "wkt": [
415
- ""
416
- ]
374
+ "name": [""],
375
+ "epsgNumber": [0],
376
+ "wkt": [""]
417
377
  },
418
- "spatialRepresentation": [
419
- ""
420
- ],
378
+ "spatialRepresentation": [""],
421
379
  "spatialResolution": [
422
380
  {
423
381
  "equivalentScale": 0
424
- },
425
- {
382
+ }, {
426
383
  "distance": 0,
427
384
  "uom": ""
428
385
  }
@@ -433,43 +390,20 @@
433
390
  "geographicElement": [
434
391
  {
435
392
  "type": "Point",
436
- "bbox": [
437
- 0,
438
- 0,
439
- 0,
440
- 0
441
- ],
442
- "coordinates": [
443
- 0,
444
- 0,
445
- 0
446
- ],
393
+ "bbox": [0, 0, 0, 0],
394
+ "coordinates": [0, 0, 0],
447
395
  "crs": {
448
396
  "type": "name",
449
397
  "properties": {
450
398
  "name": ""
451
399
  }
452
400
  }
453
- },
454
- {
401
+ }, {
455
402
  "type": "LineString",
456
- "bbox": [
457
- 0,
458
- 0,
459
- 0,
460
- 0
461
- ],
403
+ "bbox": [0, 0, 0, 0],
462
404
  "coordinates": [
463
- [
464
- 0,
465
- 0,
466
- 0
467
- ],
468
- [
469
- 0,
470
- 0,
471
- 0
472
- ]
405
+ [0, 0, 0],
406
+ [0, 0, 0]
473
407
  ],
474
408
  "crs": {
475
409
  "type": "name",
@@ -477,59 +411,21 @@
477
411
  "name": ""
478
412
  }
479
413
  }
480
- },
481
- {
414
+ }, {
482
415
  "type": "Polygon",
483
- "bbox": [
484
- 0,
485
- 0,
486
- 0,
487
- 0
488
- ],
416
+ "bbox": [0, 0, 0, 0],
489
417
  "coordinates": [
490
418
  [
491
- [
492
- 0,
493
- 0,
494
- 0
495
- ],
496
- [
497
- 0,
498
- 0,
499
- 0
500
- ],
501
- [
502
- 0,
503
- 0,
504
- 0
505
- ],
506
- [
507
- 0,
508
- 0,
509
- 0
510
- ]
419
+ [0, 0, 0],
420
+ [0, 0, 0],
421
+ [0, 0, 0],
422
+ [0, 0, 0]
511
423
  ],
512
424
  [
513
- [
514
- 0,
515
- 0,
516
- 0
517
- ],
518
- [
519
- 0,
520
- 0,
521
- 0
522
- ],
523
- [
524
- 0,
525
- 0,
526
- 0
527
- ],
528
- [
529
- 0,
530
- 0,
531
- 0
532
- ]
425
+ [0, 0, 0],
426
+ [0, 0, 0],
427
+ [0, 0, 0],
428
+ [0, 0, 0]
533
429
  ]
534
430
  ],
535
431
  "crs": {
@@ -538,26 +434,12 @@
538
434
  "name": ""
539
435
  }
540
436
  }
541
- },
542
- {
437
+ }, {
543
438
  "type": "MultiPoint",
544
- "bbox": [
545
- 0,
546
- 0,
547
- 0,
548
- 0
549
- ],
439
+ "bbox": [0, 0, 0, 0],
550
440
  "coordinates": [
551
- [
552
- 0,
553
- 0,
554
- 0
555
- ],
556
- [
557
- 0,
558
- 0,
559
- 0
560
- ]
441
+ [0, 0, 0],
442
+ [0, 0, 0]
561
443
  ],
562
444
  "crs": {
563
445
  "type": "name",
@@ -565,59 +447,21 @@
565
447
  "name": ""
566
448
  }
567
449
  }
568
- },
569
- {
450
+ }, {
570
451
  "type": "MultiLineString",
571
- "bbox": [
572
- 0,
573
- 0,
574
- 0,
575
- 0
576
- ],
452
+ "bbox": [0, 0, 0, 0],
577
453
  "coordinates": [
578
454
  [
579
- [
580
- 0,
581
- 0,
582
- 0
583
- ],
584
- [
585
- 0,
586
- 0,
587
- 0
588
- ],
589
- [
590
- 0,
591
- 0,
592
- 0
593
- ],
594
- [
595
- 0,
596
- 0,
597
- 0
598
- ]
455
+ [0, 0, 0],
456
+ [0, 0, 0],
457
+ [0, 0, 0],
458
+ [0, 0, 0]
599
459
  ],
600
460
  [
601
- [
602
- 0,
603
- 0,
604
- 0
605
- ],
606
- [
607
- 0,
608
- 0,
609
- 0
610
- ],
611
- [
612
- 0,
613
- 0,
614
- 0
615
- ],
616
- [
617
- 0,
618
- 0,
619
- 0
620
- ]
461
+ [0, 0, 0],
462
+ [0, 0, 0],
463
+ [0, 0, 0],
464
+ [0, 0, 0]
621
465
  ]
622
466
  ],
623
467
  "crs": {
@@ -626,106 +470,36 @@
626
470
  "name": ""
627
471
  }
628
472
  }
629
- },
630
- {
473
+ }, {
631
474
  "type": "MultiPolygon",
632
- "bbox": [
633
- 0,
634
- 0,
635
- 0,
636
- 0
637
- ],
475
+ "bbox": [0, 0, 0, 0],
638
476
  "coordinates": [
639
477
  [
640
478
  [
641
- [
642
- 0,
643
- 0,
644
- 0
645
- ],
646
- [
647
- 0,
648
- 0,
649
- 0
650
- ],
651
- [
652
- 0,
653
- 0,
654
- 0
655
- ],
656
- [
657
- 0,
658
- 0,
659
- 0
660
- ]
479
+ [0, 0, 0],
480
+ [0, 0, 0],
481
+ [0, 0, 0],
482
+ [0, 0, 0]
661
483
  ],
662
484
  [
663
- [
664
- 0,
665
- 0,
666
- 0
667
- ],
668
- [
669
- 0,
670
- 0,
671
- 0
672
- ],
673
- [
674
- 0,
675
- 0,
676
- 0
677
- ],
678
- [
679
- 0,
680
- 0,
681
- 0
682
- ]
485
+ [0, 0, 0],
486
+ [0, 0, 0],
487
+ [0, 0, 0],
488
+ [0, 0, 0]
683
489
  ]
684
490
  ],
685
491
  [
686
492
  [
687
- [
688
- 0,
689
- 0,
690
- 0
691
- ],
692
- [
693
- 0,
694
- 0,
695
- 0
696
- ],
697
- [
698
- 0,
699
- 0,
700
- 0
701
- ],
702
- [
703
- 0,
704
- 0,
705
- 0
706
- ]
493
+ [0, 0, 0],
494
+ [0, 0, 0],
495
+ [0, 0, 0],
496
+ [0, 0, 0]
707
497
  ],
708
498
  [
709
- [
710
- 0,
711
- 0,
712
- 0
713
- ],
714
- [
715
- 0,
716
- 0,
717
- 0
718
- ],
719
- [
720
- 0,
721
- 0,
722
- 0
723
- ],
724
- [
725
- 0,
726
- 0,
727
- 0
728
- ]
499
+ [0, 0, 0],
500
+ [0, 0, 0],
501
+ [0, 0, 0],
502
+ [0, 0, 0]
729
503
  ]
730
504
  ]
731
505
  ],
@@ -735,91 +509,38 @@
735
509
  "name": ""
736
510
  }
737
511
  }
738
- },
739
- {
512
+ }, {
740
513
  "type": "GeometryCollection",
741
- "geometries": [
742
-
743
- ]
744
- },
745
- {
514
+ "geometries": []
515
+ }, {
746
516
  "type": "Feature",
747
517
  "id": "",
748
- "bbox": [
749
- 0,
750
- 0,
751
- 0,
752
- 0
753
- ],
518
+ "bbox": [0, 0, 0, 0],
754
519
  "geometry": {
755
520
  "type": "Point",
756
- "coordinates": [
757
- 0,
758
- 0,
759
- 0
760
- ]
521
+ "coordinates": [0, 0, 0]
761
522
  },
762
523
  "geometry": {
763
524
  "type": "LineString",
764
525
  "coordinates": [
765
- [
766
- 0,
767
- 0,
768
- 0
769
- ],
770
- [
771
- 0,
772
- 0,
773
- 0
774
- ]
526
+ [0, 0, 0],
527
+ [0, 0, 0]
775
528
  ]
776
529
  },
777
530
  "geometry": {
778
531
  "type": "Polygon",
779
532
  "coordinates": [
780
533
  [
781
- [
782
- 0,
783
- 0,
784
- 0
785
- ],
786
- [
787
- 0,
788
- 0,
789
- 0
790
- ],
791
- [
792
- 0,
793
- 0,
794
- 0
795
- ],
796
- [
797
- 0,
798
- 0,
799
- 0
800
- ]
534
+ [0, 0, 0],
535
+ [0, 0, 0],
536
+ [0, 0, 0],
537
+ [0, 0, 0]
801
538
  ],
802
539
  [
803
- [
804
- 0,
805
- 0,
806
- 0
807
- ],
808
- [
809
- 0,
810
- 0,
811
- 0
812
- ],
813
- [
814
- 0,
815
- 0,
816
- 0
817
- ],
818
- [
819
- 0,
820
- 0,
821
- 0
822
- ]
540
+ [0, 0, 0],
541
+ [0, 0, 0],
542
+ [0, 0, 0],
543
+ [0, 0, 0]
823
544
  ]
824
545
  ]
825
546
  },
@@ -834,9 +555,7 @@
834
555
  "description": "",
835
556
  "includesData": true,
836
557
  "temporalElement": {
837
- "date": [
838
- "0000-00-00"
839
- ],
558
+ "date": ["0000-00-00"],
840
559
  "timeInstant": [
841
560
  {
842
561
  "id": "",
@@ -894,16 +613,10 @@
894
613
  "featureScope": "",
895
614
  "featureAcquisitionMethod": ""
896
615
  }
897
- },
898
- {
616
+ }, {
899
617
  "type": "FeatureCollection",
900
618
  "id": "",
901
- "bbox": [
902
- 0,
903
- 0,
904
- 0,
905
- 0
906
- ],
619
+ "bbox": [0, 0, 0, 0],
907
620
  "properties": {
908
621
  "name": "",
909
622
  "description": "",
@@ -916,15 +629,11 @@
916
629
  "type": ""
917
630
  }
918
631
  },
919
- "features": [
920
-
921
- ]
632
+ "features": []
922
633
  }
923
634
  ],
924
635
  "temporalElement": {
925
- "date": [
926
- "0000-00-00"
927
- ],
636
+ "date": ["0000-00-00"],
928
637
  "timeInstant": [
929
638
  {
930
639
  "id": "",
@@ -988,9 +697,7 @@
988
697
  "role": ""
989
698
  }
990
699
  ],
991
- "presentationForm": [
992
- ""
993
- ],
700
+ "presentationForm": [""],
994
701
  "identifier": [
995
702
  {
996
703
  "identifier": "",
@@ -1103,9 +810,7 @@
1103
810
  "role": ""
1104
811
  }
1105
812
  ],
1106
- "presentationForm": [
1107
- ""
1108
- ],
813
+ "presentationForm": [""],
1109
814
  "identifier": [
1110
815
  {
1111
816
  "identifier": "",
@@ -1161,9 +866,7 @@
1161
866
  "role": ""
1162
867
  }
1163
868
  ],
1164
- "presentationForm": [
1165
- ""
1166
- ],
869
+ "presentationForm": [""],
1167
870
  "identifier": [
1168
871
  {
1169
872
  "identifier": "",
@@ -1224,9 +927,7 @@
1224
927
  "role": ""
1225
928
  }
1226
929
  ],
1227
- "presentationForm": [
1228
- ""
1229
- ],
930
+ "presentationForm": [""],
1230
931
  "identifier": [
1231
932
  {
1232
933
  "identifier": "",
@@ -1269,5 +970,88 @@
1269
970
  }
1270
971
  }
1271
972
  ]
973
+ },
974
+ "dataDictionary": {
975
+ "dictionaryInfo": {
976
+ "citation": {
977
+ "title": "",
978
+ "date": [
979
+ {
980
+ "date": "0000-00-00",
981
+ "dateType": ""
982
+ }
983
+ ],
984
+ "edition": "",
985
+ "responsibleParty": [
986
+ {
987
+ "contactId": "",
988
+ "role": ""
989
+ }
990
+ ],
991
+ "onlineResource": [
992
+ {
993
+ "uri": "http://thisisanexample.com",
994
+ "protocol": "",
995
+ "name": "",
996
+ "description": "",
997
+ "function": ""
998
+ }
999
+ ]
1000
+ },
1001
+ "description": "",
1002
+ "resourceType": "",
1003
+ "language": ""
1004
+ },
1005
+ "domain": [
1006
+ {
1007
+ "domainId": "",
1008
+ "commonName": "",
1009
+ "codeName": "",
1010
+ "description": "",
1011
+ "member": [
1012
+ {
1013
+ "name": "",
1014
+ "value": "",
1015
+ "definition": ""
1016
+ }
1017
+ ]
1018
+ }
1019
+ ],
1020
+ "entity": [
1021
+ {
1022
+ "entityId": "",
1023
+ "commonName": "",
1024
+ "codeName": "",
1025
+ "definition": "",
1026
+ "primaryKeyAttributeCodeName": [""],
1027
+ "index": [
1028
+ {
1029
+ "codeName": "",
1030
+ "allowDuplicates": false,
1031
+ "attributeCodeName": [""]
1032
+ }
1033
+ ],
1034
+ "attribute": [
1035
+ {
1036
+ "commonName": "",
1037
+ "codeName": "",
1038
+ "definition": "",
1039
+ "dataType": "",
1040
+ "allowNull": true,
1041
+ "units": "",
1042
+ "domainId": "",
1043
+ "minValue": "",
1044
+ "maxValue": ""
1045
+ }
1046
+ ],
1047
+ "foreignKey": [
1048
+ {
1049
+ "localAttributeCodeName": [""],
1050
+ "referencedEntityCodeName": "",
1051
+ "referencedAttributeCodeName": [""]
1052
+ }
1053
+ ]
1054
+ }
1055
+ ]
1272
1056
  }
1273
1057
  }
data/test/tc_schemas.rb CHANGED
@@ -34,7 +34,7 @@ class TestExamples < Minitest::Test
34
34
  end
35
35
 
36
36
  def test_data_template
37
- errors = JSON::Validator.fully_validate(@@schema, @@dir + '../templates/adiwg_metadata_template.json', :strict => false)
37
+ errors = JSON::Validator.fully_validate(@@schema, @@dir + '../templates/mdJson_template.json', :strict => false)
38
38
  assert(errors.empty?, errors.join("/n"))
39
39
  end
40
40
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adiwg-json_schemas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Bradley, Stan Smith
@@ -136,7 +136,7 @@ files:
136
136
  - schema/schema/resourceInfo.json
137
137
  - schema/schema/taxonomy.json
138
138
  - schema/schema/usage.json
139
- - templates/adiwg_metadata_template.json
139
+ - templates/mdJson_template.json
140
140
  - test/draft-04.json
141
141
  - test/tc_schemas.rb
142
142
  - test/tc_utils.rb