adiwg-mdjson_schemas 1.1.3 → 2.0.0.pre.alpha
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/README.md +14 -3
- data/adiwg-json_schemas.gemspec +2 -2
- data/bower.json +0 -1
- data/examples/additionalDocumentation.json +9 -60
- data/examples/address.json +14 -10
- data/examples/allocation.json +12 -0
- data/examples/associatedResource.json +10 -118
- data/examples/attribute.json +27 -0
- data/examples/attributeGroup.json +17 -0
- data/examples/boundingBox.json +6 -0
- data/examples/citation.json +69 -127
- data/examples/computedBbox.json +399 -0
- data/examples/constraint.json +62 -0
- data/examples/contact.json +40 -207
- data/examples/coverageDescription.json +21 -0
- data/examples/date.json +8 -19
- data/examples/dictionary.json +58 -0
- data/examples/dimension.json +11 -0
- data/examples/distribution.json +26 -0
- data/examples/distributor.json +22 -142
- data/examples/domain.json +29 -0
- data/examples/domainItem.json +11 -0
- data/examples/duration.json +17 -0
- data/examples/entity.json +48 -0
- data/examples/entityAttribute.json +31 -0
- data/examples/entityForeignKey.json +17 -0
- data/examples/entityIndex.json +8 -0
- data/examples/extent.json +60 -0
- data/examples/featureCollection.json +58 -0
- data/examples/featureProperties.json +16 -0
- data/examples/format.json +7 -14
- data/examples/funding.json +33 -0
- data/examples/geoJson.json +185 -0
- data/examples/geographicExtent.json +22 -0
- data/examples/geometryCollection.json +14 -0
- data/examples/geometryFeature.json +12 -0
- data/examples/geometryObject.json +90 -0
- data/examples/georectifiedRepresentation.json +28 -0
- data/examples/georeferencableRepresentation.json +25 -0
- data/examples/gmlIdentifier.json +8 -0
- data/examples/graphic.json +33 -0
- data/examples/gridRepresentation.json +14 -0
- data/examples/identifier.json +9 -0
- data/examples/imageDescription.json +15 -0
- data/examples/keyword.json +14 -0
- data/examples/keywordObject.json +12 -0
- data/examples/legalConstraint.json +21 -0
- data/examples/lineage.json +21 -0
- data/examples/locale.json +12 -3
- data/examples/maintenance.json +38 -0
- data/examples/mdJson.json +99 -0
- data/examples/measure.json +5 -0
- data/examples/medium.json +16 -0
- data/examples/metadata.json +102 -0
- data/examples/metadataInfo.json +68 -101
- data/examples/onlineResource.json +13 -17
- data/examples/orderProcess.json +6 -0
- data/examples/party.json +21 -0
- data/examples/phone.json +9 -0
- data/examples/processStep.json +34 -0
- data/examples/releasability.json +28 -0
- data/examples/resourceInfo.json +230 -1256
- data/examples/responsibleParty.json +31 -0
- data/examples/schema.json +8 -0
- data/examples/scope.json +33 -0
- data/examples/scopeDescription.json +8 -0
- data/examples/securityConstraint.json +13 -0
- data/examples/series.json +9 -0
- data/examples/source.json +23 -0
- data/examples/spatialReference.json +34 -0
- data/examples/spatialRepresentation.json +59 -0
- data/examples/spatialResolution.json +11 -0
- data/examples/taxonomicClassification.json +59 -0
- data/examples/taxonomicSystem.json +13 -0
- data/examples/taxonomy.json +79 -188
- data/examples/temporalExtent.json +11 -0
- data/examples/timeInstant.json +13 -0
- data/examples/timeInterval.json +8 -0
- data/examples/timePeriod.json +26 -0
- data/examples/transferOption.json +36 -0
- data/examples/usage.json +48 -33
- data/examples/vectorObject.json +4 -0
- data/examples/vectorRepresentation.json +10 -0
- data/examples/verticalExtent.json +10 -17
- data/examples/voucher.json +12 -0
- data/lib/adiwg/mdjson_schemas/utils.rb +45 -15
- data/lib/adiwg/mdjson_schemas/validator.rb +6 -7
- data/lib/adiwg/mdjson_schemas/version.rb +1 -1
- data/lib/adiwg/mdjson_schemas.rb +4 -2
- data/schema/additionalDocumentation.json +29 -0
- data/schema/associatedResource.json +49 -0
- data/schema/attribute.json +157 -0
- data/schema/attributeGroup.json +29 -0
- data/schema/{schema/geojson/bbox.json → bbox.json} +2 -2
- data/schema/{schema/citation.json → citation.json} +73 -99
- data/schema/common.json +49 -0
- data/schema/{schema/resourceConstraint.json → constraint.json} +83 -13
- data/schema/contact.json +234 -0
- data/schema/coverageDescription.json +50 -0
- data/schema/dataDictionary.json +71 -0
- data/schema/distribution.json +35 -0
- data/schema/distributor.json +46 -0
- data/schema/domain.json +65 -0
- data/schema/entity.json +235 -0
- data/schema/extent.json +59 -0
- data/schema/format.json +37 -0
- data/schema/funding.json +67 -0
- data/schema/geographicExtent.json +87 -0
- data/schema/{schema/geojson/geojson.json → geojson.json} +16 -44
- data/schema/{schema/geojson/geometry.json → geometry.json} +2 -1
- data/schema/georectifiedRepresentation.json +89 -0
- data/schema/georeferencableRepresentation.json +49 -0
- data/schema/{schema/graphicOverview.json → graphic.json} +19 -6
- data/schema/{schema/gridInfo.json → gridRepresentation.json} +7 -13
- data/schema/identifier.json +47 -0
- data/schema/imageDescription.json +92 -0
- data/schema/{schema/keyword.json → keyword.json} +18 -4
- data/schema/{schema/dataQuality.json → lineage.json} +92 -57
- data/schema/{schema/maintInfo.json → maintInfo.json} +24 -6
- data/schema/measure.json +31 -0
- data/schema/medium.json +55 -0
- data/schema/metadata.json +77 -0
- data/schema/metadataInfo.json +112 -0
- data/schema/{schema/onlineResource.json → onlineResource.json} +1 -1
- data/schema/orderProcess.json +45 -0
- data/schema/releasability.json +42 -0
- data/schema/{schema/resourceInfo.json → resourceInfo.json} +112 -189
- data/schema/responsibility.json +56 -0
- data/schema/schema.json +16 -31
- data/schema/scope.json +55 -0
- data/schema/spatialReference.json +26 -0
- data/schema/spatialRepresentation.json +83 -0
- data/schema/spatialResolution.json +54 -0
- data/schema/taxonomy.json +178 -0
- data/schema/temporalExtent.json +42 -0
- data/schema/timeInstant.json +46 -0
- data/schema/timePeriod.json +126 -0
- data/schema/transferOption.json +61 -0
- data/schema/{schema/usage.json → usage.json} +34 -4
- data/schema/vectorRepresentation.json +51 -0
- data/schema/verticalExtent.json +37 -0
- data/test/helper.rb +32 -0
- data/test/tc_additionalDocumentation.rb +8 -0
- data/test/tc_address.rb +8 -0
- data/test/tc_associatedResource.rb +8 -0
- data/test/tc_attribute.rb +8 -0
- data/test/tc_attributeGroup.rb +8 -0
- data/test/tc_boundingBox.rb +8 -0
- data/test/tc_citation.rb +8 -0
- data/test/tc_constraint.rb +8 -0
- data/test/tc_contact.rb +8 -0
- data/test/tc_coverageDescription.rb +8 -0
- data/test/tc_dataDictionary.rb +8 -0
- data/test/tc_dimension.rb +8 -0
- data/test/tc_distribution.rb +8 -0
- data/test/tc_distributor.rb +8 -0
- data/test/tc_domain.rb +8 -0
- data/test/tc_domainItem.rb +8 -0
- data/test/tc_duration.rb +8 -0
- data/test/tc_entity.rb +20 -0
- data/test/tc_extent.rb +8 -0
- data/test/tc_featureCollection.rb +8 -0
- data/test/tc_featureProperties.rb +8 -0
- data/test/tc_format.rb +8 -0
- data/test/tc_funding.rb +8 -0
- data/test/tc_geographicElement.rb +12 -0
- data/test/tc_geographicExtent.rb +8 -0
- data/test/tc_geometryCollection.rb +8 -0
- data/test/tc_geometryFeature.rb +8 -0
- data/test/tc_geometryObject.rb +8 -0
- data/test/tc_georectifiedRepresentation.rb +8 -0
- data/test/tc_georeferencableRepresentation.rb +8 -0
- data/test/tc_graphic.rb +8 -0
- data/test/tc_gridRepresentation.rb +8 -0
- data/test/tc_identifier.rb +8 -0
- data/test/tc_imageDescription.rb +8 -0
- data/test/tc_jsonschema.rb +16 -0
- data/test/tc_keyword.rb +8 -0
- data/test/tc_lineage.rb +8 -0
- data/test/tc_maintInfo.rb +8 -0
- data/test/tc_measure.rb +8 -0
- data/test/tc_medium.rb +8 -0
- data/test/tc_metadata.rb +8 -0
- data/test/tc_metadataInfo.rb +8 -0
- data/test/tc_onlineResource.rb +8 -0
- data/test/tc_orderProcess.rb +8 -0
- data/test/tc_party.rb +8 -0
- data/test/tc_processStep.rb +8 -0
- data/test/tc_releasability.rb +8 -0
- data/test/tc_resourceInfo.rb +8 -0
- data/test/tc_responsibility.rb +8 -0
- data/test/tc_schema.rb +8 -0
- data/test/tc_scope.rb +8 -0
- data/test/tc_source.rb +8 -0
- data/test/tc_spatialReference.rb +8 -0
- data/test/tc_spatialRepresentation.rb +8 -0
- data/test/tc_spatialResolution.rb +8 -0
- data/test/tc_taxonomicClassification.rb +8 -0
- data/test/tc_taxonomicSystem.rb +8 -0
- data/test/tc_taxonomy.rb +8 -0
- data/test/tc_temporalExtent.rb +8 -0
- data/test/tc_timeInstant.rb +8 -0
- data/test/tc_timePeriod.rb +8 -0
- data/test/tc_transferOption.rb +8 -0
- data/test/tc_uri.rb +8 -0
- data/test/tc_usage.rb +8 -0
- data/test/tc_utils.rb +8 -11
- data/test/tc_vectorRepresentation.rb +13 -0
- data/test/tc_verticalExtent.rb +8 -0
- data/test/tc_voucher.rb +8 -0
- metadata +264 -57
- data/examples/contactRef.json +0 -12
- data/examples/coverageInfo.json +0 -148
- data/examples/dataDictionary.json +0 -549
- data/examples/dataQuality.json +0 -272
- data/examples/extent_linestring.json +0 -288
- data/examples/extent_point.json +0 -246
- data/examples/extent_polygon.json +0 -353
- data/examples/full_example.json +0 -3065
- data/examples/full_example2.json +0 -2325
- data/examples/geojson.json +0 -446
- data/examples/graphicOverview.json +0 -28
- data/examples/gridInfo.json +0 -23
- data/examples/hierarchyLevel.json +0 -90
- data/examples/keywords.json +0 -144
- data/examples/lcc_project_example.json +0 -326
- data/examples/legalConstraints.json +0 -17
- data/examples/maintInfo.json +0 -34
- data/examples/minimum_example.json +0 -35
- data/examples/resolution.json +0 -9
- data/examples/resourceMaintenance.json +0 -10
- data/examples/securityConstraints.json +0 -13
- data/examples/spatialRef.json +0 -14
- data/examples/temporalElement.json +0 -29
- data/schema/schema/contact.json +0 -262
- data/schema/schema/coverageInfo.json +0 -303
- data/schema/schema/dataDictionary.json +0 -335
- data/schema/schema/distributor.json +0 -216
- data/schema/schema/extent.json +0 -215
- data/schema/schema/geojson/crs.json +0 -99
- data/schema/schema/metadata.json +0 -188
- data/schema/schema/resolution.json +0 -51
- data/schema/schema/taxonomy.json +0 -122
- data/test/tc_schemas.rb +0 -243
- /data/schema/{schema/locale.json → locale.json} +0 -0
@@ -0,0 +1,50 @@
|
|
1
|
+
{
|
2
|
+
"id": "coverageDescription.json#",
|
3
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
4
|
+
"type": "object",
|
5
|
+
"example": "",
|
6
|
+
"description": "Details about the content of a raster resource.",
|
7
|
+
"translation": {
|
8
|
+
"ISO 19115-2": ["MI_Metadata > contentInfo"]
|
9
|
+
},
|
10
|
+
"required": ["coverageName", "coverageDescription"],
|
11
|
+
"additionalProperties": true,
|
12
|
+
"properties": {
|
13
|
+
"coverageName": {
|
14
|
+
"type": "string",
|
15
|
+
"description": "The name(title) of the coverage.",
|
16
|
+
"translation": {
|
17
|
+
"ISO 19115-2": ["MI_ImageDescription | MI_CoverageDescription > attributeDescription > gco:RecordType"]
|
18
|
+
}
|
19
|
+
},
|
20
|
+
"coverageDescription": {
|
21
|
+
"type": "string",
|
22
|
+
"description": "A description of the coverage",
|
23
|
+
"translation": {
|
24
|
+
"ISO 19115-2": ["MI_ImageDescription | MI_CoverageDescription > attributeDescription > gco:RecordType"]
|
25
|
+
}
|
26
|
+
},
|
27
|
+
"processingLevelCode": {
|
28
|
+
"description": "Code that identifies the level of radiometric and geometric processing that has been applied.",
|
29
|
+
"example": "",
|
30
|
+
"translation": {
|
31
|
+
"ISO 19115-2": ["MI_ImageDescription > processingLevelCode > RS_Identifier"]
|
32
|
+
},
|
33
|
+
"$ref": "./identifier.json#"
|
34
|
+
},
|
35
|
+
"attributeGroup": {
|
36
|
+
"type": "array",
|
37
|
+
"description": "Information about groups of attributes describing a coverage.",
|
38
|
+
"example": "",
|
39
|
+
"translation": {},
|
40
|
+
"items": {
|
41
|
+
"$ref": "./attributeGroup.json#"
|
42
|
+
}
|
43
|
+
},
|
44
|
+
"imageDescription": {
|
45
|
+
"$ref": "./imageDescription.json#",
|
46
|
+
"translation": {}
|
47
|
+
}
|
48
|
+
|
49
|
+
}
|
50
|
+
}
|
@@ -0,0 +1,71 @@
|
|
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
|
+
"example": "",
|
7
|
+
"required": ["subject", "citation", "responsibleParty"],
|
8
|
+
"additionalProperties": true,
|
9
|
+
"properties": {
|
10
|
+
"citation": {
|
11
|
+
"description": "Citation for the dictionary.",
|
12
|
+
"example": "",
|
13
|
+
"$ref": "./citation.json#"
|
14
|
+
},
|
15
|
+
"subject": {
|
16
|
+
"type": "string",
|
17
|
+
"description": "Identifies the scope of the data dictionary. E.g. 'database', 'dataset', 'table'.",
|
18
|
+
"translation": {
|
19
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > scope"]
|
20
|
+
}
|
21
|
+
},
|
22
|
+
"recommendedUse": {
|
23
|
+
"type": "string",
|
24
|
+
"description": "Description of kind(s) of use to which this dictionary may be put.",
|
25
|
+
"translation": {
|
26
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > fieldOfApplication > CharacterString"]
|
27
|
+
}
|
28
|
+
},
|
29
|
+
"locale": {
|
30
|
+
"$ref": "./locale.json",
|
31
|
+
"description": "Defines the language and country of origin in which the data dictionary is written. E.g. 'eng; USA', 'eng; UK', 'esp; MEX'.",
|
32
|
+
"translation": {
|
33
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > language"]
|
34
|
+
}
|
35
|
+
},
|
36
|
+
"responsibleParty": {
|
37
|
+
"$ref": "./responsibility.json#",
|
38
|
+
"description": "Name, address, country, and telecommunications address of person or organization having primary responsibility for the intellectual content of this dictionary."
|
39
|
+
},
|
40
|
+
"dictionaryFormat": {
|
41
|
+
"type" : "string",
|
42
|
+
"description" : "Formal functional language used in the dictionary.",
|
43
|
+
"translation": {}
|
44
|
+
},
|
45
|
+
"dictionaryIncludedWithResource": {
|
46
|
+
"type": "boolean",
|
47
|
+
"description": "Indication of whether or not the data dictionary is included with the resource.",
|
48
|
+
"translation": {
|
49
|
+
"ISO 19115-2": ["MD_FeatureCatalogueDescription > includedWithDataset"]
|
50
|
+
}
|
51
|
+
},
|
52
|
+
"domain": {
|
53
|
+
"type": "array",
|
54
|
+
"description": "A list of permissable values used to constrain an attribute's value. A single domain may be assigned to multiple attributes in a table or database.",
|
55
|
+
"example": "",
|
56
|
+
"items": {
|
57
|
+
"$ref": "./domain.json#"
|
58
|
+
}
|
59
|
+
},
|
60
|
+
"entity": {
|
61
|
+
"type": "array",
|
62
|
+
"description": "Defines the structure of a discrete data object within the data resource. The data object may be a table, dataset, or single sheet of a spreadsheet.",
|
63
|
+
"translation": {
|
64
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType"]
|
65
|
+
},
|
66
|
+
"items": {
|
67
|
+
"$ref": "./entity.json#"
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"id": "distribution.json#",
|
4
|
+
"type": "object",
|
5
|
+
"title": "distribution",
|
6
|
+
"description": "Information about the distributor of and options for obtaining the resource.",
|
7
|
+
"example": "",
|
8
|
+
"translation": {
|
9
|
+
"ISO 19115-2": ["MD_Metadata > distribution > MD_Distribution"],
|
10
|
+
"FGDC CSDGM": ["distinfo"]
|
11
|
+
},
|
12
|
+
"additionalProperties": true,
|
13
|
+
"properties": {
|
14
|
+
"description": {
|
15
|
+
"type": "string",
|
16
|
+
"description": "A description of a set of distribution options.",
|
17
|
+
"example": "",
|
18
|
+
"translation": {}
|
19
|
+
},
|
20
|
+
"distributor": {
|
21
|
+
"type": "array",
|
22
|
+
"description": "Information about the distributor of and options for obtaining the resource.",
|
23
|
+
"translation": {
|
24
|
+
"ISO 19115-2": ["MD_Distribution"],
|
25
|
+
"FGDC CSDGM": ["distinfo"]
|
26
|
+
},
|
27
|
+
"example": "",
|
28
|
+
"items": {
|
29
|
+
"$ref": "./distributor.json#",
|
30
|
+
"description": "Information about the distributor of and options for obtaining the resource.",
|
31
|
+
"example": ""
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
{
|
2
|
+
"id": "distributor.json#",
|
3
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
4
|
+
"type": "object",
|
5
|
+
"title": "distributor",
|
6
|
+
"example": "",
|
7
|
+
"description": "Information about the distributor of and options for obtaining the resource.",
|
8
|
+
"translation": {
|
9
|
+
"ISO 19115-2": ["MD_Distribution"],
|
10
|
+
"FGDC CSDGM": ["distinfo"]
|
11
|
+
},
|
12
|
+
"required": ["contact"],
|
13
|
+
"additionalProperties": true,
|
14
|
+
"properties": {
|
15
|
+
"contact": {
|
16
|
+
"description": "Party from whom the resource may be obtained. Note: This list need not be exhaustive.",
|
17
|
+
"translation": {
|
18
|
+
"ISO 19115-2": ["MD_Distribution > distributor > MD_Distributor > distributorContact > CI_ResponsibleParty"],
|
19
|
+
"FGDC CSDGM": ["distinfo > distrib > cntinfo"]
|
20
|
+
},
|
21
|
+
"$ref": "./responsibility.json#"
|
22
|
+
},
|
23
|
+
"orderProcess": {
|
24
|
+
"type": "array",
|
25
|
+
"description": "Provides information about how the resource may be obtained and related instructions and fee information.",
|
26
|
+
"translation": {
|
27
|
+
"ISO 19115-2": ["MD_Distribution > distributor > MD_Distributor > distributionOrderProcess"]
|
28
|
+
},
|
29
|
+
"items": {
|
30
|
+
"$ref":"./orderProcess.json#"
|
31
|
+
}
|
32
|
+
},
|
33
|
+
"transferOption": {
|
34
|
+
"type": "array",
|
35
|
+
"example": "",
|
36
|
+
"description": "Describes method and media by which a resource is obtained from the distributor.",
|
37
|
+
"translation": {
|
38
|
+
"ISO 19115-2": ["MD_Distributor > distributorTransferOptions"],
|
39
|
+
"FGDC CSDGM": ["distinfo > stdorder > digform > digtopt"]
|
40
|
+
},
|
41
|
+
"items": {
|
42
|
+
"$ref": "./transferOption.json#"
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
data/schema/domain.json
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"id": "domain.json#",
|
4
|
+
"type": "object",
|
5
|
+
"description": "A list of permissable values used to constrain an attribute's value. A single domain may be assigned to multiple attributes in a table or database.",
|
6
|
+
"required": ["domainId", "codeName", "description", "domainItem"],
|
7
|
+
"additionalProperties": true,
|
8
|
+
"properties": {
|
9
|
+
"domainId": {
|
10
|
+
"type": "string",
|
11
|
+
"description": "A user provided unique ID for this domain. The ID will be used to locate the domain in the domain array."
|
12
|
+
},
|
13
|
+
"commonName": {
|
14
|
+
"type": "string",
|
15
|
+
"description": "A short common name for the domain."
|
16
|
+
},
|
17
|
+
"codeName": {
|
18
|
+
"type": "string",
|
19
|
+
"description": "The code or 'lookup table' name for the domin used in the database schema definitions."
|
20
|
+
},
|
21
|
+
"description": {
|
22
|
+
"type": "string",
|
23
|
+
"description": "A brief description of the domain including identification of any established sources used in creating the list of domain items."
|
24
|
+
},
|
25
|
+
"domainItem": {
|
26
|
+
"type": "array",
|
27
|
+
"description": "An array of member objects that enumerate and define the valid values for a domain.",
|
28
|
+
"items": {
|
29
|
+
"$ref": "#/definitions/domainItem"
|
30
|
+
}
|
31
|
+
}
|
32
|
+
},
|
33
|
+
"definitions": {
|
34
|
+
"domainItem": {
|
35
|
+
"type": "object",
|
36
|
+
"description": "An array of member objects that enumerate and define the valid values for a domain.",
|
37
|
+
"example": "",
|
38
|
+
"required": ["name", "value", "definition"],
|
39
|
+
"additionalProperties": true,
|
40
|
+
"properties": {
|
41
|
+
"name": {
|
42
|
+
"type": "string",
|
43
|
+
"description": "A descriptive name associated with a domain value",
|
44
|
+
"translation": {
|
45
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > carrierOfCharacteristics > FC_FeatureAttribute > listedValue > FC_ListedValue > label"]
|
46
|
+
}
|
47
|
+
},
|
48
|
+
"value": {
|
49
|
+
"type": "string",
|
50
|
+
"description": "A descriptive name associated with a domain value",
|
51
|
+
"translation": {
|
52
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > carrierOfCharacteristics > FC_FeatureAttribute > listedValue > FC_ListedValue > label"]
|
53
|
+
}
|
54
|
+
},
|
55
|
+
"definition": {
|
56
|
+
"type": "string",
|
57
|
+
"description": "A brief definition for the domain item",
|
58
|
+
"translation": {
|
59
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > carrierOfCharacteristics > FC_FeatureAttribute > listedValue > FC_ListedValue > definition"]
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
data/schema/entity.json
ADDED
@@ -0,0 +1,235 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"id": "entity.json#",
|
4
|
+
"type": "object",
|
5
|
+
"title": "entity",
|
6
|
+
"translation": {
|
7
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType"]
|
8
|
+
},
|
9
|
+
"example": "",
|
10
|
+
"required": ["codeName", "definition"],
|
11
|
+
"additionalProperties": true,
|
12
|
+
"properties": {
|
13
|
+
"entityId": {
|
14
|
+
"type": "string",
|
15
|
+
"description": "A user provided unique ID for this entity. ",
|
16
|
+
"translation": {
|
17
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType#id=''"]
|
18
|
+
}
|
19
|
+
},
|
20
|
+
"commonName": {
|
21
|
+
"type": "string",
|
22
|
+
"description": "The name commonly used to identify this entity",
|
23
|
+
"translation": {
|
24
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > typeName > localName"]
|
25
|
+
}
|
26
|
+
},
|
27
|
+
"codeName": {
|
28
|
+
"type": "string",
|
29
|
+
"description": "The code name used to identify this entity in a database schema or application software. For spreasheets this would likely be the sheet name. ",
|
30
|
+
"translation": {
|
31
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > code > CharacterString"]
|
32
|
+
}
|
33
|
+
},
|
34
|
+
"alias": {
|
35
|
+
"type": "array",
|
36
|
+
"description": "An array of quoted strings providing alternate names used to identify this entity",
|
37
|
+
"translation": {
|
38
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > aliases > localName"]
|
39
|
+
},
|
40
|
+
"items": {
|
41
|
+
"type": "string"
|
42
|
+
}
|
43
|
+
},
|
44
|
+
"definition": {
|
45
|
+
"type": "string",
|
46
|
+
"description": "A brief definition for the entity",
|
47
|
+
"translation": {
|
48
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > definition"]
|
49
|
+
}
|
50
|
+
},
|
51
|
+
"primaryKeyAttributeCodeName": {
|
52
|
+
"type": "array",
|
53
|
+
"description": "An array of quoted attribute code names that together compose the primary key set for the entity",
|
54
|
+
"translation": {
|
55
|
+
"ISO 19115-2": ["Note: the primary key is written as a text description into FC_FeatureCatalogue > featureType > FC_FeatureType > constrainedBy > FC_Constraint > description"]
|
56
|
+
},
|
57
|
+
"items": {
|
58
|
+
"type": "string"
|
59
|
+
}
|
60
|
+
},
|
61
|
+
"index": {
|
62
|
+
"type": "array",
|
63
|
+
"description": "An array of objects describing alternate indexes for the entity",
|
64
|
+
"translation": {
|
65
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > Note: the index is written as a text description into featureType > FC_FeatureType > constrainedBy > FC_Constraint > description"]
|
66
|
+
},
|
67
|
+
"items": {
|
68
|
+
"$ref": "#/definitions/index"
|
69
|
+
}
|
70
|
+
},
|
71
|
+
"attribute": {
|
72
|
+
"type": "array",
|
73
|
+
"description": "An array of objects defining the attributes for the entity",
|
74
|
+
"translation": {
|
75
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > carrierOfCharacteristics > FC_FeatureAttribute"]
|
76
|
+
},
|
77
|
+
"items": {
|
78
|
+
"$ref": "#/definitions/attribute"
|
79
|
+
}
|
80
|
+
},
|
81
|
+
"foreignKey": {
|
82
|
+
"type": "array",
|
83
|
+
"description": "An array of objects describing attributes whose values are restricted to values found in the domain of an attribute belonging to another table or dataset",
|
84
|
+
"translation": {
|
85
|
+
"ISO 19115-2": ["Note: the foreign key is written as a text description into FC_FeatureCatalogue > featureType > FC_FeatureType > constrainedBy > FC_Constraint"]
|
86
|
+
},
|
87
|
+
"items": {}
|
88
|
+
}
|
89
|
+
},
|
90
|
+
"definitions": {
|
91
|
+
"index": {
|
92
|
+
"type": "object",
|
93
|
+
"example": "",
|
94
|
+
"required": ["codeName", "allowDuplicates", "attributeCodeName"],
|
95
|
+
"additionalProperties": true,
|
96
|
+
"properties": {
|
97
|
+
"codeName": {
|
98
|
+
"type": "string",
|
99
|
+
"description": "The code name used to define the alternate index on the entity",
|
100
|
+
"translation": {
|
101
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > constrainedBy > FC_Constraint > description > CharacterString"]
|
102
|
+
}
|
103
|
+
},
|
104
|
+
"allowDuplicates": {
|
105
|
+
"type": "boolean",
|
106
|
+
"description": "Indicates whether the index allows duplicates or values are required to be unique. true = allow duplicates; false = values must be unique.",
|
107
|
+
"translation": {
|
108
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > constrainedBy > FC_Constraint > description > CharacterString"]
|
109
|
+
}
|
110
|
+
},
|
111
|
+
"attributeCodeName": {
|
112
|
+
"type": "array",
|
113
|
+
"description": "An array of quoted attribute code names that together compose an alternate key set for the entity",
|
114
|
+
"translation": {
|
115
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > constrainedBy > FC_Constraint > description > CharacterString"]
|
116
|
+
},
|
117
|
+
"items": {
|
118
|
+
"type": "string"
|
119
|
+
}
|
120
|
+
}
|
121
|
+
}
|
122
|
+
},
|
123
|
+
"attribute": {
|
124
|
+
|
125
|
+
"type": "object",
|
126
|
+
"example": "",
|
127
|
+
"required": ["codeName", "dataType", "definition", "allowNull"],
|
128
|
+
"additionalProperties": true,
|
129
|
+
"properties": {
|
130
|
+
"commonName": {
|
131
|
+
"type": "string",
|
132
|
+
"description": "The common name used to identify this attribute",
|
133
|
+
"translation": {
|
134
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > carrierOfCharacteristics > FC_FeatureAttribute > memberName > localName"]
|
135
|
+
}
|
136
|
+
},
|
137
|
+
"codeName": {
|
138
|
+
"type": "string",
|
139
|
+
"description": "The code used to identify this attribute. Most often this will be the table or spreadsheet column name",
|
140
|
+
"translation": {
|
141
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > carrierOfCharacteristics > FC_FeatureAttribute > code > CharacterString"]
|
142
|
+
}
|
143
|
+
},
|
144
|
+
"alias": {
|
145
|
+
"type": "array",
|
146
|
+
"description": "An array of quoted strings providing alternate names by which the attribute is known",
|
147
|
+
"items": {
|
148
|
+
"type": "string"
|
149
|
+
}
|
150
|
+
},
|
151
|
+
"definition": {
|
152
|
+
"type": "string",
|
153
|
+
"description": "A succinct but comprehensive definition for the attribute",
|
154
|
+
"translation": {
|
155
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > carrierOfCharacteristics > FC_FeatureAttribute > definition > CharacterString"]
|
156
|
+
}
|
157
|
+
},
|
158
|
+
"dataType": {
|
159
|
+
"type": "string",
|
160
|
+
"description": "The datatype for the attribute. Names for datatypes vary widely by database management system. Use the datatype name associated with the database system that implemented the entity. E.g. 'integer', 'boolean', 'decimal(8,5)', 'varchar(200)'",
|
161
|
+
"translation": {
|
162
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > carrierOfCharacteristics > FC_FeatureAttribute > valueType > TypeName > aName > CharacterString"]
|
163
|
+
}
|
164
|
+
},
|
165
|
+
"allowNull": {
|
166
|
+
"type": "boolean",
|
167
|
+
"description": "Indicates whether null values are allowed for the attribute",
|
168
|
+
"translation": {
|
169
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > carrierOfCharacteristics > FC_FeatureAttribute > cardinality > Multiplicity > range > MultiplicityRange > lower > integer[0=optional | 1=required]"]
|
170
|
+
}
|
171
|
+
},
|
172
|
+
"allowMany": {
|
173
|
+
"type": "boolean",
|
174
|
+
"description": "Indicates whether null values are allowed for the attribute",
|
175
|
+
"translation": {
|
176
|
+
}
|
177
|
+
},
|
178
|
+
"units": {
|
179
|
+
"type": "string",
|
180
|
+
"description": "A unit-of-measure for the attribute. E.g. 'meters', 'atmospheres', 'liters'",
|
181
|
+
"translation": {
|
182
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > carrierOfCharacteristics > FC_FeatureAttribute > valueMeasurementUnit > [UnitDefinition > identifier | ConversionalUnit > identifier, name, catalogSystem, conversionToPreferredUnit, formula | BaseUnit > identifier, name, catalogSymbol, unitSystem | DerivedUnit > identifier, name, remarks, catalogSymbol, derivationUnitTerm]"]
|
183
|
+
}
|
184
|
+
},
|
185
|
+
"domainId": {
|
186
|
+
"type": "string",
|
187
|
+
"description": "Provides the domain ID for the dictionary Domain containing the list of permissable values for this attribute"
|
188
|
+
},
|
189
|
+
"minValue": {
|
190
|
+
"type": "string",
|
191
|
+
"description": "The minimum range value permissible for this attribute"
|
192
|
+
},
|
193
|
+
"maxValue": {
|
194
|
+
"type": "string",
|
195
|
+
"description": "The maximum range value permissible for this attribute"
|
196
|
+
}
|
197
|
+
}
|
198
|
+
},
|
199
|
+
"foreignKey": {
|
200
|
+
"type": "object",
|
201
|
+
"example": "",
|
202
|
+
"required": ["localAttributeCodeName", "referencedEntityCodeName", "referencedAttributeCodeName"],
|
203
|
+
"additionalProperties": true,
|
204
|
+
"properties": {
|
205
|
+
"localAttributeCodeName": {
|
206
|
+
"type": "array",
|
207
|
+
"description": "An array of local (referencing or child) attribute code names for this foreign key",
|
208
|
+
"translation": {
|
209
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > constrainedBy > FC_Constraint > description > CharacterString"]
|
210
|
+
},
|
211
|
+
"items": {
|
212
|
+
"type": "string"
|
213
|
+
}
|
214
|
+
},
|
215
|
+
"referencedEntityCodeName": {
|
216
|
+
"type": "string",
|
217
|
+
"description": "The entityID for the referenced (or parent) entity for this foreign key",
|
218
|
+
"translation": {
|
219
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > constrainedBy > FC_Constraint > description > CharacterString"]
|
220
|
+
}
|
221
|
+
},
|
222
|
+
"referencedAttributeCodeName": {
|
223
|
+
"type": "array",
|
224
|
+
"description": "An array of referenced (or parent) attribute code names for this foreign key. If the foreign key is compound key (more than one attribute compose the key) the order of the referenced attributes must allign precicely with the order and number of local attributes.",
|
225
|
+
"translation": {
|
226
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > constrainedBy > FC_Constraint > description > CharacterString"]
|
227
|
+
},
|
228
|
+
"items": {
|
229
|
+
"type": "string"
|
230
|
+
}
|
231
|
+
}
|
232
|
+
}
|
233
|
+
}
|
234
|
+
}
|
235
|
+
}
|
data/schema/extent.json
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
{
|
2
|
+
"id": "extent.json#",
|
3
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
4
|
+
"type": "object",
|
5
|
+
"description": "Information about the geographic, vertical, and temporal extent of a resource.",
|
6
|
+
"example": "",
|
7
|
+
"translation": {
|
8
|
+
"ISO 19115-2": ["EX_Extent"]
|
9
|
+
},
|
10
|
+
"additionalProperties": true,
|
11
|
+
"anyOf": [{
|
12
|
+
"title": "description is required",
|
13
|
+
"required": ["description"]
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"title": "geographicExtent is required",
|
17
|
+
"required": ["geographicExtent"]
|
18
|
+
}, {
|
19
|
+
"title": "verticalExtent is required",
|
20
|
+
"required": ["verticalExtent"]
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"title": "temporalExtent is required",
|
24
|
+
"required": ["temporalExtent"]
|
25
|
+
}
|
26
|
+
],
|
27
|
+
"properties": {
|
28
|
+
"description": {
|
29
|
+
"type": "string",
|
30
|
+
"description": "Description of the extent.",
|
31
|
+
"translation": {
|
32
|
+
"ISO 19115-2": ["EX_Extent > description"]
|
33
|
+
}
|
34
|
+
},
|
35
|
+
"geographicExtent": {
|
36
|
+
"type": "array",
|
37
|
+
"items": {
|
38
|
+
"$ref": "./geographicExtent.json#"
|
39
|
+
}
|
40
|
+
},
|
41
|
+
"verticalExtent": {
|
42
|
+
"type": "array",
|
43
|
+
"description": "An array of objects each describing a vertical boundary comprising all or a portion of the resource.",
|
44
|
+
"translation": {
|
45
|
+
"ISO 19115-2": ["EX_Extent > verticalElement > EX_VerticalExtent "]
|
46
|
+
},
|
47
|
+
"items": {
|
48
|
+
"$ref": "./verticalExtent.json#"
|
49
|
+
}
|
50
|
+
},
|
51
|
+
"temporalExtent": {
|
52
|
+
"type": "array",
|
53
|
+
"description": "An array of objects each describing a temporal boundary comprising all or a portion of the resource.",
|
54
|
+
"items": {
|
55
|
+
"$ref": "./temporalExtent.json#"
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
data/schema/format.json
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"id": "format.json#",
|
4
|
+
"type": "object",
|
5
|
+
"title": "format",
|
6
|
+
"description": "Provides information about the format used.",
|
7
|
+
"example": "",
|
8
|
+
"translation": {
|
9
|
+
"ISO 19115-2": ["MD_Format"],
|
10
|
+
"FGDC CSDGM": ["distinfo > stdorder > digform"]
|
11
|
+
},
|
12
|
+
"required": ["formatSpecification"],
|
13
|
+
"additionalProperties": true,
|
14
|
+
"properties": {
|
15
|
+
"formatSpecification": {
|
16
|
+
"$ref": "./citation.json#",
|
17
|
+
"translation": {
|
18
|
+
"ISO 19115-2": ["MD_Format > name","MD_Format > version"],
|
19
|
+
"FGDC CSDGM": ["distinfo > stdorder > digform > digtinfo > formname","idinfo > citation > citeinfo > edition"]
|
20
|
+
},
|
21
|
+
"description": "Citation of the specification for the format.",
|
22
|
+
"example": ""
|
23
|
+
},
|
24
|
+
"amendmentNumber": {
|
25
|
+
"type" : "string",
|
26
|
+
"description" : "Amendment number of the format version.",
|
27
|
+
"translation": {},
|
28
|
+
"minLength" : 1
|
29
|
+
},
|
30
|
+
"compressionMethod": {
|
31
|
+
"type" : "string",
|
32
|
+
"description" : "Recommendations of algorithms or processes that can be applied to read or expand resources to which compression techniques have been applied.",
|
33
|
+
"translation": {},
|
34
|
+
"minLength" : 1
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
data/schema/funding.json
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
{
|
2
|
+
"id": "funding.json#",
|
3
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
4
|
+
"type": "object",
|
5
|
+
"description": "",
|
6
|
+
"required": [],
|
7
|
+
"minProperties": 1,
|
8
|
+
"additionalProperties": true,
|
9
|
+
"anyOf": [{
|
10
|
+
"title": "allocation is required",
|
11
|
+
"required": ["allocation"]
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"title": "timePeriod is required",
|
15
|
+
"required": ["timePeriod"]
|
16
|
+
}
|
17
|
+
],
|
18
|
+
"properties": {
|
19
|
+
"allocation": {
|
20
|
+
"type": "array",
|
21
|
+
"description": "Funds contributed to support the development of the resource.",
|
22
|
+
"example": "",
|
23
|
+
"items": {
|
24
|
+
"type": "object",
|
25
|
+
"required": ["amount", "currency"],
|
26
|
+
"additionalProperties": true,
|
27
|
+
"properties": {
|
28
|
+
"amount": {
|
29
|
+
"type": "number",
|
30
|
+
"description": "The amount of the allocation in the indicated currency.",
|
31
|
+
"example": ""
|
32
|
+
},
|
33
|
+
"currency": {
|
34
|
+
"type": "string",
|
35
|
+
"description": "The ISO 4217 currency code.",
|
36
|
+
"example": ""
|
37
|
+
},
|
38
|
+
"sourceId": {
|
39
|
+
"type": "string",
|
40
|
+
"description": "The contactId of the entity providing the allocation.",
|
41
|
+
"example": ""
|
42
|
+
},
|
43
|
+
"recipientId": {
|
44
|
+
"type": "string",
|
45
|
+
"description": "The contactId of the entity receiving the allocation.",
|
46
|
+
"example": ""
|
47
|
+
},
|
48
|
+
"matching": {
|
49
|
+
"type": "boolean",
|
50
|
+
"description": "Tdicates whether the funds are to be considered matching funds.",
|
51
|
+
"example": ""
|
52
|
+
},
|
53
|
+
"comment": {
|
54
|
+
"type": "string",
|
55
|
+
"description": "Additional information relevant to the allocation.",
|
56
|
+
"example": ""
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
},
|
61
|
+
"timePeriod": {
|
62
|
+
"$ref": "./timePeriod.json#",
|
63
|
+
"description": "The period for which the allocation is relevant.",
|
64
|
+
"example": ""
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|