adiwg-json_schemas 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/adiwg-json_schemas.gemspec +1 -1
- data/examples/dataDictionary.json +413 -0
- data/examples/full_example.json +414 -3
- data/examples/full_example2.json +1 -1
- data/examples/lcc_project_example.json +1 -1
- data/examples/minimum_example.json +1 -1
- data/lib/adiwg/json_schemas/version.rb +1 -1
- data/schema/schema/citation.json +21 -0
- data/schema/schema/dataDictionary.json +189 -0
- data/schema/schema/metadata.json +3 -0
- data/templates/adiwg_metadata_template.json +1 -1
- data/test/draft-04.json +189 -0
- data/test/tc_schemas.rb +6 -1
- metadata +8 -4
data/examples/full_example.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version":{
|
3
|
-
"name":"
|
4
|
-
"version":"0.9.
|
3
|
+
"name":"mdJson",
|
4
|
+
"version":"0.9.2"
|
5
5
|
},
|
6
6
|
"contact":[
|
7
7
|
{
|
@@ -2286,5 +2286,416 @@
|
|
2286
2286
|
}
|
2287
2287
|
}
|
2288
2288
|
]
|
2289
|
+
},
|
2290
|
+
"dataDictionary": {
|
2291
|
+
"dictionaryInfo": {
|
2292
|
+
"citation": {
|
2293
|
+
"title": "Project Metadata Database",
|
2294
|
+
"date": [
|
2295
|
+
{
|
2296
|
+
"date": "2014-11-24",
|
2297
|
+
"dateType": "creation"
|
2298
|
+
}
|
2299
|
+
],
|
2300
|
+
"edition": "14.0.2",
|
2301
|
+
"responsibleParty": [
|
2302
|
+
{
|
2303
|
+
"contactId": "8",
|
2304
|
+
"role": "author"
|
2305
|
+
}
|
2306
|
+
]
|
2307
|
+
},
|
2308
|
+
"description": "Data dictionary for the ADIwg project metadata standard for 2011 based on the FGDC standard.",
|
2309
|
+
"resourceType": "database",
|
2310
|
+
"language": "eng; US"
|
2311
|
+
},
|
2312
|
+
"domain": [
|
2313
|
+
{
|
2314
|
+
"domainId": "domain001",
|
2315
|
+
"commonName": "agency type",
|
2316
|
+
"codeName": "AGENCY_TYPE",
|
2317
|
+
"description": "Legal classification for the organization.",
|
2318
|
+
"member": [
|
2319
|
+
{
|
2320
|
+
"name": "federal government",
|
2321
|
+
"value": "federal",
|
2322
|
+
"definition": "An organization withing the federal government."
|
2323
|
+
}, {
|
2324
|
+
"name": "state government",
|
2325
|
+
"value": "state",
|
2326
|
+
"definition": "An organization withing a state or provincial government."
|
2327
|
+
}, {
|
2328
|
+
"name": "local government",
|
2329
|
+
"value": "local",
|
2330
|
+
"definition": "An organization withing a local county, city, or municipal government."
|
2331
|
+
}, {
|
2332
|
+
"name": "private business",
|
2333
|
+
"value": "private",
|
2334
|
+
"definition": "A private for-profit business."
|
2335
|
+
}, {
|
2336
|
+
"name": "non-profit business",
|
2337
|
+
"value": "nonProfit",
|
2338
|
+
"definition": "A private non-profit business."
|
2339
|
+
}, {
|
2340
|
+
"name": "academic institute",
|
2341
|
+
"value": "academic",
|
2342
|
+
"definition": "An organization of higher learning such as a college or university."
|
2343
|
+
}, {
|
2344
|
+
"name": "military",
|
2345
|
+
"value": "military",
|
2346
|
+
"definition": "An organization within a recognized military structure such as the Army. Navy, or Air Force."
|
2347
|
+
}
|
2348
|
+
]
|
2349
|
+
}, {
|
2350
|
+
"domainId": "domain002",
|
2351
|
+
"commonName": "agency address type",
|
2352
|
+
"codeName": "ADDRESS_TYPE",
|
2353
|
+
"description": "Type of agency address.",
|
2354
|
+
"member": [
|
2355
|
+
{
|
2356
|
+
"name": "mailing address",
|
2357
|
+
"value": "mailing",
|
2358
|
+
"definition": "The preferred address for receiving mail. May be a physical address or P.O. Box."
|
2359
|
+
}, {
|
2360
|
+
"name": "physical address",
|
2361
|
+
"value": "physical",
|
2362
|
+
"definition": "The street address of the agency."
|
2363
|
+
}
|
2364
|
+
]
|
2365
|
+
}, {
|
2366
|
+
"domainId": "domain003",
|
2367
|
+
"commonName": "sky cover code",
|
2368
|
+
"codeName": "sky_cover_code",
|
2369
|
+
"description": "NH (Amount of the sky covered by all clouds) is part of the Cloud/WX mandatory 9 digit group. All nine digits must be entered, regardless of the presence or absence of clouds or significant weather conditions. Cloud/WX group format: NH CL h CM CH W W W W",
|
2370
|
+
"member": [
|
2371
|
+
{
|
2372
|
+
"name": "0",
|
2373
|
+
"value": "0",
|
2374
|
+
"definition": "clear skys"
|
2375
|
+
}, {
|
2376
|
+
"name": "1",
|
2377
|
+
"value": "1",
|
2378
|
+
"definition": "1 okta or less, 1/10 or less, but not zero"
|
2379
|
+
}, {
|
2380
|
+
"name": "2",
|
2381
|
+
"value": "2",
|
2382
|
+
"definition": "2 oktas 2/10 - 3/10"
|
2383
|
+
}, {
|
2384
|
+
"name": "7",
|
2385
|
+
"value": "7",
|
2386
|
+
"definition": "7 oktas or more, 9/10 or more, but not 8 oktas but not 10/10"
|
2387
|
+
}, {
|
2388
|
+
"name": "8",
|
2389
|
+
"value": "8",
|
2390
|
+
"definition": "8 oktas, 10/10"
|
2391
|
+
}, {
|
2392
|
+
"name": "9",
|
2393
|
+
"value": "9",
|
2394
|
+
"definition": "Sky obscured by for and/or other meteorolocial phenonena / Cloud cover is indiscernible for reasons other than for or other meteorological phenomena such as smoke, or observation is not made."
|
2395
|
+
}
|
2396
|
+
]
|
2397
|
+
}, {
|
2398
|
+
"domainId": "domain004",
|
2399
|
+
"commonName": "low cloud type",
|
2400
|
+
"codeName": "low_cloud_cover_type",
|
2401
|
+
"description": "CL (low cloud type) is part of the Cloud/WX mandatory 9 digit group. All nine digits must be entered, regardless of the presence or absence of clouds or significant weather conditions. CL = type of low cloud, based on the priority given. A solidus (/) is reported if CL clouds are not visible owing to fog or similar obscuring phenomena. Cloud/WX group format: NH CL h CM CH W W W W",
|
2402
|
+
"member": [
|
2403
|
+
{
|
2404
|
+
"name": "0",
|
2405
|
+
"value": "0",
|
2406
|
+
"definition": "No CL clouds -- no cumulus, cumulonimbus, stratocumulus, or stratus."
|
2407
|
+
}, {
|
2408
|
+
"name": "3",
|
2409
|
+
"value": "3",
|
2410
|
+
"definition": "If cumulonimbus are present, with or without other clouds, CL=3 if the upper part of none of the cumulonimbus clouds present is clearly fibrous or striated."
|
2411
|
+
}, {
|
2412
|
+
"name": "4",
|
2413
|
+
"value": "4",
|
2414
|
+
"definition": "If no cumulonimbus present, CL=4 if stratocumulus formed by the spreading out of cumulus is present."
|
2415
|
+
}, {
|
2416
|
+
"name": "8",
|
2417
|
+
"value": "8",
|
2418
|
+
"definition": "If no cumulonimbus present, CL=8 if the CL code figure 4 is not applicable and if cumulus and stratocumulus clouds with bases at different levels are present."
|
2419
|
+
}, {
|
2420
|
+
"name": "9",
|
2421
|
+
"value": "9",
|
2422
|
+
"definition": "If cumulonimbus are present, with or without other clouds, CL=9 if the upper part of at least one of the cumulonimbus clouds present is clearly fibrous or striated."
|
2423
|
+
}, {
|
2424
|
+
"name": "\/",
|
2425
|
+
"value": "\/",
|
2426
|
+
"definition": "CL clouds are not visible owing to fog or similar obscuring phenomena."
|
2427
|
+
}
|
2428
|
+
]
|
2429
|
+
}
|
2430
|
+
],
|
2431
|
+
"entity": [
|
2432
|
+
{
|
2433
|
+
"entityId": "entity001",
|
2434
|
+
"commonName": "agency",
|
2435
|
+
"codeName": "AGENCY",
|
2436
|
+
"definition": "Organizations providing some contribution to Alaska Science Center research.",
|
2437
|
+
"primaryKeyAttributeCodeName": ["agency_id"],
|
2438
|
+
"index": [
|
2439
|
+
{
|
2440
|
+
"codeName": "ui_agencyCode",
|
2441
|
+
"allowDuplicates": false,
|
2442
|
+
"attributeCodeName": ["agency_code"]
|
2443
|
+
}
|
2444
|
+
],
|
2445
|
+
"attribute": [
|
2446
|
+
{
|
2447
|
+
"commonName": "agency ID",
|
2448
|
+
"codeName": "agency_id",
|
2449
|
+
"definition": "Unique sequential ID for the agency assigned by the database.",
|
2450
|
+
"dataType": "integer",
|
2451
|
+
"allowNull": false
|
2452
|
+
}, {
|
2453
|
+
"commonName": "agency code",
|
2454
|
+
"codeName": "agency_code",
|
2455
|
+
"definition": "Unique alphanumeric ID for the agency assigned by the data steward.",
|
2456
|
+
"dataType": "varchar(25)",
|
2457
|
+
"allowNull": false,
|
2458
|
+
"domainId": "domain001"
|
2459
|
+
}, {
|
2460
|
+
"commonName": "agency type code",
|
2461
|
+
"codeName": "agency_type_code",
|
2462
|
+
"definition": "Agency legal organization classification.",
|
2463
|
+
"dataType": "varchar(25)",
|
2464
|
+
"allowNull": false
|
2465
|
+
}, {
|
2466
|
+
"commonName": "agency name",
|
2467
|
+
"codeName": "agency_name",
|
2468
|
+
"definition": "Name of agency.",
|
2469
|
+
"dataType": "varchar(100)",
|
2470
|
+
"allowNull": false
|
2471
|
+
}, {
|
2472
|
+
"commonName": "agency comment",
|
2473
|
+
"codeName": "comment",
|
2474
|
+
"definition": "Supplemental information about the agency.",
|
2475
|
+
"dataType": "varchar(500)",
|
2476
|
+
"allowNull": true
|
2477
|
+
}, {
|
2478
|
+
"commonName": "time stamp",
|
2479
|
+
"codeName": "ts",
|
2480
|
+
"definition": "datetime of creation or latest update - maintained by system",
|
2481
|
+
"dataType": "datetime",
|
2482
|
+
"allowNull": false
|
2483
|
+
}
|
2484
|
+
]
|
2485
|
+
}, {
|
2486
|
+
"entityId": "entity002",
|
2487
|
+
"commonName": "agency address",
|
2488
|
+
"codeName": "ADDRESS",
|
2489
|
+
"definition": "Addresses for an AGENCY",
|
2490
|
+
"primaryKeyAttributeCodeName": ["agency_id", "address_type_code"],
|
2491
|
+
"attribute": [
|
2492
|
+
{
|
2493
|
+
"commonName": "agency ID",
|
2494
|
+
"codeName": "agency_id",
|
2495
|
+
"definition": "Unique sequential ID for the agency assigned by the database.",
|
2496
|
+
"dataType": "integer",
|
2497
|
+
"allowNull": false
|
2498
|
+
}, {
|
2499
|
+
"commonName": "address type",
|
2500
|
+
"codeName": "address_type_code",
|
2501
|
+
"definition": "Type of address.",
|
2502
|
+
"dataType": "varchar(25)",
|
2503
|
+
"allowNull": false,
|
2504
|
+
"domainId": "domain002"
|
2505
|
+
}, {
|
2506
|
+
"commonName": "street address",
|
2507
|
+
"codeName": "street",
|
2508
|
+
"definition": "Street and street number or P.O. Box number.",
|
2509
|
+
"dataType": "varchar(100)",
|
2510
|
+
"allowNull": false
|
2511
|
+
}, {
|
2512
|
+
"commonName": "city",
|
2513
|
+
"codeName": "city",
|
2514
|
+
"definition": "City name.",
|
2515
|
+
"dataType": "varchar(50)",
|
2516
|
+
"allowNull": false
|
2517
|
+
}, {
|
2518
|
+
"commonName": "state",
|
2519
|
+
"codeName": "state_code",
|
2520
|
+
"definition": "State or province code",
|
2521
|
+
"dataType": "char(3)",
|
2522
|
+
"allowNull": false
|
2523
|
+
}, {
|
2524
|
+
"commonName": "zip code",
|
2525
|
+
"codeName": "postal_code",
|
2526
|
+
"definition": "Postal code.",
|
2527
|
+
"dataType": "char(9)",
|
2528
|
+
"allowNull": true
|
2529
|
+
}
|
2530
|
+
],
|
2531
|
+
"foreignKey": [
|
2532
|
+
{
|
2533
|
+
"localAttributeCodeName": ["agency_id"],
|
2534
|
+
"referencedEntityCodeName": "AGENCY",
|
2535
|
+
"referencedAttributeCodeName": ["agency_id"]
|
2536
|
+
}
|
2537
|
+
]
|
2538
|
+
}, {
|
2539
|
+
"entityId": "entity003",
|
2540
|
+
"commonName": "weather station",
|
2541
|
+
"codeName": "WEATHER_STATION",
|
2542
|
+
"definition": "Table describing weather permanent and semi-permanent weather all-season recording stations in Alaska.",
|
2543
|
+
"primaryKeyAttributeCodeName": ["station_id"],
|
2544
|
+
"attribute": [
|
2545
|
+
{
|
2546
|
+
"commonName": "weather station id",
|
2547
|
+
"codeName": "station_id",
|
2548
|
+
"definition": "Unique identifier for weather station.",
|
2549
|
+
"dataType": "integer",
|
2550
|
+
"allowNull": false
|
2551
|
+
}, {
|
2552
|
+
"commonName": "weather station name",
|
2553
|
+
"codeName": "station_name",
|
2554
|
+
"definition": "Common name for the weather station.",
|
2555
|
+
"dataType": "varchar(100)",
|
2556
|
+
"allowNull": false
|
2557
|
+
}, {
|
2558
|
+
"commonName": "station latitude",
|
2559
|
+
"codeName": "latitude",
|
2560
|
+
"definition": "Latitude of weather station.",
|
2561
|
+
"dataType": "decimal",
|
2562
|
+
"allowNull": false,
|
2563
|
+
"units": "degree",
|
2564
|
+
"minValue": "-90.0",
|
2565
|
+
"maxValue": "90.0"
|
2566
|
+
}, {
|
2567
|
+
"commonName": "station longitude",
|
2568
|
+
"codeName": "longitude",
|
2569
|
+
"definition": "Longitude of weather station.",
|
2570
|
+
"dataType": "decimal",
|
2571
|
+
"allowNull": false,
|
2572
|
+
"units": "degree",
|
2573
|
+
"minValue": "-180.0",
|
2574
|
+
"maxValue": "180.0"
|
2575
|
+
}, {
|
2576
|
+
"commonName": "station elevation",
|
2577
|
+
"codeName": "elevation_M",
|
2578
|
+
"definition": "Elevation of weather station above sea level in meters.",
|
2579
|
+
"dataType": "decimal",
|
2580
|
+
"allowNull": true,
|
2581
|
+
"units": "meter",
|
2582
|
+
"minValue": "0",
|
2583
|
+
"maxValue": "3000"
|
2584
|
+
}
|
2585
|
+
]
|
2586
|
+
}, {
|
2587
|
+
"entityId": "entity004",
|
2588
|
+
"commonName": "weather station observation",
|
2589
|
+
"codeName": "WEATHER_STATION_OBSERVATION",
|
2590
|
+
"definition": "Table of discontinuous weather station observation records including temperature, humidity, wind, precipitation, and cloud cover.",
|
2591
|
+
"primaryKeyAttributeCodeName": ["obs_id"],
|
2592
|
+
"attribute": [
|
2593
|
+
{
|
2594
|
+
"commonName": "weather observation ID",
|
2595
|
+
"codeName": "obs_id",
|
2596
|
+
"definition": "Unique identifier of a single weather station observation record.",
|
2597
|
+
"dataType": "integer",
|
2598
|
+
"allowNull": false
|
2599
|
+
}, {
|
2600
|
+
"commonName": "weather station ID",
|
2601
|
+
"codeName": "station_id",
|
2602
|
+
"definition": "Unique identifier for weather station.",
|
2603
|
+
"dataType": "integer",
|
2604
|
+
"allowNull": false
|
2605
|
+
}, {
|
2606
|
+
"commonName": "observation date and time",
|
2607
|
+
"codeName": "obs_datetime",
|
2608
|
+
"definition": "Date and UTC with offset 24h time the weather observation was made.",
|
2609
|
+
"dataType": "datetime",
|
2610
|
+
"allowNull": false
|
2611
|
+
}, {
|
2612
|
+
"commonName": "ambient air temperature Celsius",
|
2613
|
+
"codeName": "air_temp_C",
|
2614
|
+
"definition": "Ambient air temperature recorded at weather station in degrees Celsius.",
|
2615
|
+
"dataType": "decimal",
|
2616
|
+
"allowNull": false,
|
2617
|
+
"units": "degC",
|
2618
|
+
"minValue": "-60",
|
2619
|
+
"maxValue": "50"
|
2620
|
+
}, {
|
2621
|
+
"commonName": "ambient air temperature Fahrenheit",
|
2622
|
+
"codeName": "air_temp_F",
|
2623
|
+
"definition": "Ambient air temperature recorded at weather station in degrees Fahrenheit.",
|
2624
|
+
"dataType": "decimal",
|
2625
|
+
"allowNull": false,
|
2626
|
+
"units": "degF",
|
2627
|
+
"minValue": "-100",
|
2628
|
+
"maxValue": "130"
|
2629
|
+
}, {
|
2630
|
+
"commonName": "daily precipitation",
|
2631
|
+
"codeName": "precipitation_IN",
|
2632
|
+
"definition": "The amount of rain fall or snow melt falling in a 24 hour period in inches.",
|
2633
|
+
"dataType": "decimal",
|
2634
|
+
"allowNull": false,
|
2635
|
+
"units": "inch",
|
2636
|
+
"minValue": "0",
|
2637
|
+
"maxValue": "25"
|
2638
|
+
}, {
|
2639
|
+
"commonName": "daily precipitation",
|
2640
|
+
"codeName": "precipitation_mm",
|
2641
|
+
"definition": "The amount of rain fall or snow melt falling in a 24 hour period in millimeters.",
|
2642
|
+
"dataType": "decimal",
|
2643
|
+
"allowNull": false,
|
2644
|
+
"units": "mm",
|
2645
|
+
"minValue": "0",
|
2646
|
+
"maxValue": "500"
|
2647
|
+
}, {
|
2648
|
+
"commonName": "wind direction",
|
2649
|
+
"codeName": "wind_direction_DEG",
|
2650
|
+
"definition": "Average direction wind is coming from in degrees. True north is 0 degrees.",
|
2651
|
+
"dataType": "integer",
|
2652
|
+
"allowNull": true,
|
2653
|
+
"units": "degree",
|
2654
|
+
"minValue": "0",
|
2655
|
+
"maxValue": "359"
|
2656
|
+
}, {
|
2657
|
+
"commonName": "wind speed",
|
2658
|
+
"codeName": "wind_speed_MPH",
|
2659
|
+
"definition": "Average wind speed in miles per hour (MPH).",
|
2660
|
+
"dataType": "integer",
|
2661
|
+
"allowNull": true,
|
2662
|
+
"units": "mph",
|
2663
|
+
"minValue": "0",
|
2664
|
+
"maxValue": "200"
|
2665
|
+
}, {
|
2666
|
+
"commonName": "wind speed",
|
2667
|
+
"codeName": "wind_speed_KPH",
|
2668
|
+
"definition": "Average wind speed in kilometers per hour (KPH).",
|
2669
|
+
"dataType": "integer",
|
2670
|
+
"allowNull": true,
|
2671
|
+
"units": "kph",
|
2672
|
+
"minValue": "0",
|
2673
|
+
"maxValue": "300"
|
2674
|
+
}, {
|
2675
|
+
"commonName": "sky cover code",
|
2676
|
+
"codeName": "sky_cover_code",
|
2677
|
+
"definition": "NH (Amount of the sky covered by all clouds) is part of the Cloud/WX mandatory 9 digit group. All nine digits must be entered, regardless of the presence or absence of clouds or significant weather conditions. Cloud/WX group format: NH CL h CM CH W W W W",
|
2678
|
+
"dataType": "char(1)",
|
2679
|
+
"allowNull": true,
|
2680
|
+
"units": "sunnyDays",
|
2681
|
+
"domainId": "domain003"
|
2682
|
+
}, {
|
2683
|
+
"commonName": "low cloud type",
|
2684
|
+
"codeName": "low_cloud_cover_code",
|
2685
|
+
"definition": "CL (low cloud type) is part of the Cloud/WX mandatory 9 digit group. All nine digits must be entered, regardless of the presence or absence of clouds or significant weather conditions. CL = type of low cloud, based on the priority given. A solidus (/) is reported if CL clouds are not visible owing to fog or similar obscuring phenomena. Cloud/WX group format: NH CL h CM CH W W W W",
|
2686
|
+
"dataType": "char(1)",
|
2687
|
+
"allowNull": true,
|
2688
|
+
"domainId": "domain004"
|
2689
|
+
}
|
2690
|
+
],
|
2691
|
+
"foreignKey": [
|
2692
|
+
{
|
2693
|
+
"localAttributeCodeName": ["station_id"],
|
2694
|
+
"referencedEntityCodeName": "WEATHER_STATION",
|
2695
|
+
"referencedAttributeCodeName": ["station_id"]
|
2696
|
+
}
|
2697
|
+
]
|
2698
|
+
}
|
2699
|
+
]
|
2289
2700
|
}
|
2290
|
-
}
|
2701
|
+
}
|
data/examples/full_example2.json
CHANGED
data/schema/schema/citation.json
CHANGED
@@ -154,6 +154,27 @@
|
|
154
154
|
"$ref": "#/definitions/citationBase"
|
155
155
|
}
|
156
156
|
}
|
157
|
+
},
|
158
|
+
"dictionary": {
|
159
|
+
"type": "object",
|
160
|
+
"required": ["title", "date"],
|
161
|
+
"title": "dictionary citation",
|
162
|
+
"description": "A citation object for data dictionaries.",
|
163
|
+
"properties": {
|
164
|
+
"edition": {
|
165
|
+
"type": "string",
|
166
|
+
"description": "Version identifier for the dictionary.",
|
167
|
+
"translation": {
|
168
|
+
"ISO 19115-2": ["CI_Citation > edition"],
|
169
|
+
"FGDC CSDGM": ["idinfo > citation > edition"]
|
170
|
+
}
|
171
|
+
}
|
172
|
+
},
|
173
|
+
"allOf": [
|
174
|
+
{
|
175
|
+
"$ref": "#/definitions/citationBase"
|
176
|
+
}
|
177
|
+
]
|
157
178
|
}
|
158
179
|
}
|
159
180
|
}
|
@@ -0,0 +1,189 @@
|
|
1
|
+
{
|
2
|
+
"id": "dataDictionary.json#",
|
3
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
4
|
+
"type": "object",
|
5
|
+
"description": "A catalogue containing definitions and descriptions of the resource types, resource attributes, and resource associations.",
|
6
|
+
"required": ["dictionaryInfo"],
|
7
|
+
"example": "../../examples/full_example.json#/metadata/dataDictionary",
|
8
|
+
"additionalProperties": false,
|
9
|
+
"properties": {
|
10
|
+
"dictionaryInfo": {
|
11
|
+
"type": "object",
|
12
|
+
"description": "Information describing the dictionary and its source.",
|
13
|
+
"required": ["resourceType", "citation", "description"],
|
14
|
+
"additionalProperties": false,
|
15
|
+
"properties": {
|
16
|
+
"citation": {
|
17
|
+
"description": "Citation for the dictionary.",
|
18
|
+
"$ref": "citation.json#/definitions/dictionary"
|
19
|
+
},
|
20
|
+
"resourceType": {
|
21
|
+
"type": "string",
|
22
|
+
"description": "The type of resource described by the dictionary."
|
23
|
+
},
|
24
|
+
"description": {
|
25
|
+
"type": "string",
|
26
|
+
"description": "Description of the dictionary."
|
27
|
+
},
|
28
|
+
"language": {
|
29
|
+
"type": "string",
|
30
|
+
"description": "Language used within the dictionary. Should be a valid ISO 639-3 code."
|
31
|
+
}
|
32
|
+
}
|
33
|
+
},
|
34
|
+
"domain": {
|
35
|
+
"type": "array",
|
36
|
+
"items": {
|
37
|
+
"type": "object",
|
38
|
+
"description": "Information describing an enumerated list of values.",
|
39
|
+
"required": ["domainId", "codeName", "description", "member"],
|
40
|
+
"additionalProperties": false,
|
41
|
+
"properties": {
|
42
|
+
"domainId": {
|
43
|
+
"type": "string"
|
44
|
+
},
|
45
|
+
"commonName": {
|
46
|
+
"type": "string"
|
47
|
+
},
|
48
|
+
"codeName": {
|
49
|
+
"type": "string"
|
50
|
+
},
|
51
|
+
"description": {
|
52
|
+
"type": "string"
|
53
|
+
},
|
54
|
+
"member": {
|
55
|
+
"type": "array",
|
56
|
+
"items": {
|
57
|
+
"type": "object",
|
58
|
+
"required": ["name", "value", "definition"],
|
59
|
+
"additionalProperties": false,
|
60
|
+
"properties": {
|
61
|
+
"name": {
|
62
|
+
"type": "string"
|
63
|
+
},
|
64
|
+
"value": {
|
65
|
+
"type": "string"
|
66
|
+
},
|
67
|
+
"definition": {
|
68
|
+
"type": "string"
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
},
|
76
|
+
"entity": {
|
77
|
+
"type": "array",
|
78
|
+
"items": {
|
79
|
+
"type": "object",
|
80
|
+
"required": ["entityId", "codeName", "definition"],
|
81
|
+
"additionalProperties": false,
|
82
|
+
"properties": {
|
83
|
+
"entityId": {
|
84
|
+
"type": "string"
|
85
|
+
},
|
86
|
+
"commonName": {
|
87
|
+
"type": "string"
|
88
|
+
},
|
89
|
+
"codeName": {
|
90
|
+
"type": "string"
|
91
|
+
},
|
92
|
+
"definition": {
|
93
|
+
"type": "string"
|
94
|
+
},
|
95
|
+
"primaryKeyAttributeCodeName": {
|
96
|
+
"type": "array",
|
97
|
+
"items": {
|
98
|
+
"type": "string"
|
99
|
+
}
|
100
|
+
},
|
101
|
+
"index": {
|
102
|
+
"type": "array",
|
103
|
+
"items": {
|
104
|
+
"type": "object",
|
105
|
+
"required": ["codeName", "allowDuplicates", "attributeCodeName"],
|
106
|
+
"additionalProperties": false,
|
107
|
+
"properties": {
|
108
|
+
"codeName": {
|
109
|
+
"type": "string"
|
110
|
+
},
|
111
|
+
"allowDuplicates": {
|
112
|
+
"type": "boolean"
|
113
|
+
},
|
114
|
+
"attributeCodeName": {
|
115
|
+
"type": "array",
|
116
|
+
"items": {
|
117
|
+
"type": "string"
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
121
|
+
}
|
122
|
+
},
|
123
|
+
"attribute": {
|
124
|
+
"type": "array",
|
125
|
+
"required": ["codeName", "dataType", "definition", "allowNull"],
|
126
|
+
"items": {
|
127
|
+
"type": "object",
|
128
|
+
"additionalProperties": false,
|
129
|
+
"properties": {
|
130
|
+
"commonName": {
|
131
|
+
"type": "string"
|
132
|
+
},
|
133
|
+
"codeName": {
|
134
|
+
"type": "string"
|
135
|
+
},
|
136
|
+
"definition": {
|
137
|
+
"type": "string"
|
138
|
+
},
|
139
|
+
"dataType": {
|
140
|
+
"type": "string"
|
141
|
+
},
|
142
|
+
"allowNull": {
|
143
|
+
"type": "boolean"
|
144
|
+
},
|
145
|
+
"units": {
|
146
|
+
"type": "string"
|
147
|
+
},
|
148
|
+
"domainId": {
|
149
|
+
"type": "string"
|
150
|
+
},
|
151
|
+
"minValue": {
|
152
|
+
"type": "string"
|
153
|
+
},
|
154
|
+
"maxValue": {
|
155
|
+
"type": "string"
|
156
|
+
}
|
157
|
+
}
|
158
|
+
}
|
159
|
+
},
|
160
|
+
"foreignKey": {
|
161
|
+
"type": "array",
|
162
|
+
"items": {
|
163
|
+
"type": "object",
|
164
|
+
"required": ["localAttributeCodeName", "referencedEntityCodeName", "referencedAttributeCodeName"],
|
165
|
+
"additionalProperties": false,
|
166
|
+
"properties": {
|
167
|
+
"localAttributeCodeName": {
|
168
|
+
"type": "array",
|
169
|
+
"items": {
|
170
|
+
"type": "string"
|
171
|
+
}
|
172
|
+
},
|
173
|
+
"referencedEntityCodeName": {
|
174
|
+
"type": "string"
|
175
|
+
},
|
176
|
+
"referencedAttributeCodeName": {
|
177
|
+
"type": "array",
|
178
|
+
"items": {
|
179
|
+
"type": "string"
|
180
|
+
}
|
181
|
+
}
|
182
|
+
}
|
183
|
+
}
|
184
|
+
}
|
185
|
+
}
|
186
|
+
}
|
187
|
+
}
|
188
|
+
}
|
189
|
+
}
|