adiwg-mdcodes 0.2.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,26 @@
1
+ ---
2
+ # mdJson codelists
3
+ # base codelist for ISO 19115-2, 19115-1
4
+
5
+ codelistType: "staticList"
6
+ codelistName: "iso_maintenanceFrequency"
7
+ source: "ISO"
8
+ sourceName: "MD_MaintenanceFrequencyCode"
9
+ extensible: true
10
+ description: "frequency with which modifications and deletions are made to the data after it is first produced"
11
+ codelist:
12
+ - {code: "001", codeName: continual, description: "data is repeatedly and frequently updated"}
13
+ - {code: "002", codeName: daily, description: "data is updated each day"}
14
+ - {code: "003", codeName: weekly, description: "data is updated on a weekly basis"}
15
+ - {code: "004", codeName: fortnightly, description: "data is updated every two weeks"}
16
+ - {code: "005", codeName: monthly, description: "data is updated each month"}
17
+ - {code: "006", codeName: quarterly, description: "data is updated every three months"}
18
+ - {code: "007", codeName: biannually, description: "data is updated twice each year"}
19
+ - {code: "008", codeName: annually, description: "data is updated every year"}
20
+ - {code: "009", codeName: asNeeded, description: "data is updated as deemed necessary"}
21
+ - {code: "010", codeName: irregular, description: "data is updated in intervals that are uneven in duration"}
22
+ - {code: "011", codeName: notPlanned, description: "there are no plans to update the data"}
23
+ - {code: "012", codeName: unknown, description: "frequency of maintenance for the data is not known"}
24
+ - {code: "013", codeName: periodic, description: "resource is updated at regular intervals"}
25
+ - {code: "014", codeName: semimonthly, description: "resource updated twice monthly"}
26
+ - {code: "015", codeName: biennially, description: "resource is updated every 2 years"}
@@ -0,0 +1,18 @@
1
+ ---
2
+ # mdJson codelists
3
+ # base codelist for ISO 19115-2, 19115-1
4
+
5
+ codelistType: "staticList"
6
+ codelistName: "iso_mediumFormat"
7
+ source: "ISO"
8
+ sourceName: "MD_MediumFormatCode"
9
+ extensible: true
10
+ description: "method used to write to the medium"
11
+ codelist:
12
+ - {code: "001", codeName: cpio, description: "CoPy In / Out (UNIX file format and command)"}
13
+ - {code: "002", codeName: tar, description: "Tape ARchive"}
14
+ - {code: "003", codeName: highSierra, description: "high sierra file system"}
15
+ - {code: "004", codeName: iso9660, description: "information processing – volume and file structure of CD-ROM"}
16
+ - {code: "005", codeName: iso9660RockRidge, description: "rock ridge interchange protocol (UNIX)"}
17
+ - {code: "006", codeName: iso9660AppleHFS, description: "hierarchical file system (Macintosh)"}
18
+ - {code: "007", codeName: udf, description: "universal disk format"}
@@ -0,0 +1,38 @@
1
+ ---
2
+ # mdJson codelists
3
+ # base codelist for ISO 19115-2, 19115-1
4
+ # extended for ADIwg
5
+
6
+ codelistType: "staticList"
7
+ codelistName: "iso_mediumName"
8
+ source: "ISO"
9
+ sourceName: "MD_MediumNameCode"
10
+ extensible: true
11
+ description: "name of the medium"
12
+ codelist:
13
+ - {code: "001", codeName: cdRom, description: "read-only optical disk"}
14
+ - {code: "002", codeName: dvd, description: "digital versatile disk"}
15
+ - {code: "003", codeName: dvdRom, description: "digital versatile disk, read only"}
16
+ - {code: "004", codeName: 3halfInchFloppy, description: "3,5 inch magnetic disk"}
17
+ - {code: "005", codeName: 5quarterInchFloppy, description: "5,25 inch magnetic disk"}
18
+ - {code: "006", codeName: 7trackTape, description: "7 track magnetic tape"}
19
+ - {code: "007", codeName: 9trackTape, description: "9 track magnetic tape"}
20
+ - {code: "008", codeName: 3480Cartridge, description: "3480 cartridge tape drive"}
21
+ - {code: "009", codeName: 3490Cartridge, description: "3490 cartridge tape drive"}
22
+ - {code: "010", codeName: 3580Cartridge, description: "3580 cartridge tape drive"}
23
+ - {code: "011", codeName: 4mmCartridge, description: "4 millimetre magnetic tape"}
24
+ - {code: "012", codeName: 8mmCartridge, description: "8 millimetre magnetic tape"}
25
+ - {code: "013", codeName: 1quarterInchCartridgeTape, description: "0,25 inch magnetic tape"}
26
+ - {code: "014", codeName: digitalLinearTape, description: "half inch cartridge streaming tape drive"}
27
+ - {code: "015", codeName: onLine, description: "direct computer linkage"}
28
+ - {code: "016", codeName: satellite, description: "linkage through a satellite communication system"}
29
+ - {code: "017", codeName: telephoneLink, description: "communication through a telephone network"}
30
+ - {code: "018", codeName: hardcopy, description: "pamphlet or leaflet giving descriptive information"}
31
+ - {code: "adiwg001", codeName: bluRay, description: "Blu-ray digital versatile disk"}
32
+ - {code: "adiwg002", codeName: usbHardDrive, description: "USB hard drive disk or solid state"}
33
+ - {code: "adiwg003", codeName: memoryStick, description: "USB memory stick"}
34
+ - {code: "adiwg004", codeName: sdCard, description: "SD memory card"}
35
+ - {code: "adiwg005", codeName: flashCard, description: "compact flash memory card"}
36
+ - {code: "adiwg006", codeName: film, description: "8mm, 16mm, 35mm, 120 and other positive and negative camera film sizes"}
37
+ - {code: "adiwg007", codeName: microfilm, description: "microfilm"}
38
+ - {code: "adiwg008", codeName: internet, description: "internet"}
@@ -0,0 +1,14 @@
1
+ ---
2
+ # mdJson codelists
3
+ # base codelist for ISO 19115-2, 19115-1
4
+
5
+ codelistType: "staticList"
6
+ codelistName: "iso_obligation"
7
+ source: "ISO"
8
+ sourceName: "MD_ObligationCode"
9
+ extensible: false
10
+ description: "obligation of the element or entity (enumeration - cannot be extended)"
11
+ codelist:
12
+ - {code: "001", codeName: mandatory, description: "element is always required"}
13
+ - {code: "002", codeName: optional, description: "element is not required"}
14
+ - {code: "003", codeName: conditional, description: "element is required when a specific condition is met"}
@@ -0,0 +1,24 @@
1
+ ---
2
+ # mdJson codelists
3
+ # base codelist for ISO 19115-2, 19115-1
4
+ # extended for ADIwg
5
+
6
+ codelistType: "staticList"
7
+ codelistName: "iso_onlineFunction"
8
+ source: "ISO"
9
+ sourceName: "CI_OnlineFunctionCode"
10
+ extensible: true
11
+ description: "function performed by the resource"
12
+ codelist:
13
+ - {code: "001", codeName: download, description: "online instructions for transferring data from one storage device or system to another"}
14
+ - {code: "002", codeName: information, description: "online information about the resource"}
15
+ - {code: "003", codeName: offlineAccess, description: "online instructions for requesting the resource from the provider"}
16
+ - {code: "004", codeName: order, description: "online order process for obtaining the resource"}
17
+ - {code: "005", codeName: search, description: "online search interface for seeking out information about the resource"}
18
+ - {code: "006", codeName: completeMetadata, description: "complete metadata provided"}
19
+ - {code: "007", codeName: browseGraphic, description: "browse graphic provided"}
20
+ - {code: "008", codeName: upload, description: "online resource upload capability provided"}
21
+ - {code: "009", codeName: emailService, description: "online email service provided"}
22
+ - {code: "010", codeName: browsing, description: "online browsing provided"}
23
+ - {code: "011", codeName: fileAccess, description: "online file access provided"}
24
+ - {code: "adiwg001", codeName: webApplication, description: "online web application or data forms"}
@@ -0,0 +1,36 @@
1
+ ---
2
+ # mdJson codelists
3
+ # base codelist for ISO 19115-2, 19115-1
4
+ # extended for ADIwg
5
+
6
+ codelistType: "staticList"
7
+ codelistName: "iso_presentationForm"
8
+ source: "ISO"
9
+ sourceName: "CI_PresentationFormCode"
10
+ extensible: true
11
+ description: "mode in which the data is represented"
12
+ codelist:
13
+ - {code: "001", codeName: documentDigital, description: "digital representation of a primarily textual item (can contain illustrations also)"}
14
+ - {code: "002", codeName: documentHardcopy, description: "representation of a primarily textual item (can contain illustrations also) on paper, photographic material, or other media"}
15
+ - {code: "003", codeName: imageDigital, description: "likeness of natural or man-made features, objects, and activities acquired through the sensing of visual or any other segment of the electromagnetic spectrum by sensors, such as thermal infrared, and high resolution radar and stored in digital format"}
16
+ - {code: "004", codeName: imageHardcopy, description: "likeness of natural or man-made features, objects, and activities acquired through the sensing of visual or any other segment of the electromagnetic spectrum by sensors, such as thermal infrared, and high resolution radar and reproduced on paper, photographic material, or other media for use directly by the human user"}
17
+ - {code: "005", codeName: mapDigital, description: "map represented in raster or vector form"}
18
+ - {code: "006", codeName: mapHardcopy, description: "map printed on paper, photographic material, or other media for use directly by the human user"}
19
+ - {code: "007", codeName: modelDigital, description: "multi-dimensional digital representation of a feature, process, etc."}
20
+ - {code: "008", codeName: modelHardcopy, description: "3-dimensional, physical model"}
21
+ - {code: "009", codeName: profileDigital, description: "vertical cross-section in digital form"}
22
+ - {code: "010", codeName: profileHardcopy, description: "vertical cross-section printed on paper, etc."}
23
+ - {code: "011", codeName: tableDigital, description: "digital representation of facts or figures systematically displayed, especially in columns"}
24
+ - {code: "012", codeName: tableHardcopy, description: "representation of facts or figures systematically displayed, especially in columns, printed on paper, photographic material, or other media"}
25
+ - {code: "013", codeName: videoDigital, description: "digital video recording"}
26
+ - {code: "014", codeName: videoHardcopy, description: "video recording on film"}
27
+ - {code: "015", codeName: audioDigital, description: "digital audio recording"}
28
+ - {code: "016", codeName: audioHardcopy, description: "audio recording delivered by analog media, such as a magnetic tape"}
29
+ - {code: "017", codeName: multimediaDigitial, description: "information representation using simultaneously various digital modes for text, sound, image"}
30
+ - {code: "018", codeName: multimediaHardcopy, description: "information representation using simultaneously various analog modes for text, sound, image"}
31
+ - {code: "019", codeName: physicalObject, description: "a physical object. EXAMPLE Rock or mineral sample, microscope slide."}
32
+ - {code: "020", codeName: diagramDigital, description: "information represented graphically by charts such as pie chart, bar chart, and other type of diagrams and recorded in digital format"}
33
+ - {code: "021", codeName: diagramHardcopy, description: "information represented graphically by charts such as pie chart, bar chart, and other type of diagrams and printed on paper, photographic material, or other media"}
34
+ - {code: "adiwg001", codeName: webSite, description: "information represented in a series of web pages"}
35
+ - {code: "adiwg002", codeName: webService, description: "information represented as series of HTML end points or remote procedure calls"}
36
+ - {code: "adiwg003", codeName: databaseDigital, description: "information organized in a digital database"}
@@ -0,0 +1,33 @@
1
+ ---
2
+ # mdJson codelists
3
+ # base codelist for ISO 19115-2, 19115-1
4
+ # extended for ADIwg
5
+
6
+ codelistType: "staticList"
7
+ codelistName: "iso_progress"
8
+ source: "ISO"
9
+ sourceName: "MD_ProgressCode"
10
+ extensible: true
11
+ description: "status of the dataset or progress of a review"
12
+ codelist:
13
+ - {code: "001", codeName: completed, description: "production of the data has been completed"}
14
+ - {code: "002", codeName: historicalArchive, description: "data has been stored in an offline storage facility"}
15
+ - {code: "003", codeName: obsolete, description: "data is no longer relevant"}
16
+ - {code: "004", codeName: onGoing, description: "data is continually being updated"}
17
+ - {code: "005", codeName: planned, description: "fixed date has been established upon or by which the data will be created or updated"}
18
+ - {code: "006", codeName: required, description: "data needs to be generated or updated"}
19
+ - {code: "007", codeName: underDevelopment, description: "resource (data or project) is currently in the process of being created"}
20
+ - {code: "008", codeName: final, description: "progress concluded and no changes will be accepted"}
21
+ - {code: "009", codeName: pending, description: "committed to, but not yet addressed"}
22
+ - {code: "010", codeName: retired, description: "item is no longer recommended for use. It has not been superseded by another item"}
23
+ - {code: "011", codeName: superseded, description: "replaced by new"}
24
+ - {code: "012", codeName: tentative, description: "provisional changes likely before resource becomes final or complete"}
25
+ - {code: "013", codeName: valid, description: "acceptable under specific conditions"}
26
+ - {code: "014", codeName: accepted, description: "agreed to by sponsor"}
27
+ - {code: "015", codeName: notAccepted, description: "rejected by sponsor"}
28
+ - {code: "016", codeName: withdrawn, description: "removed from consideration"}
29
+ - {code: "017", codeName: proposed, description: "suggested that development needs to be undertaken"}
30
+ - {code: "018", codeName: deprecated, description: "resource superseded and will become obsolete, use only for historical purposes"}
31
+ - {code: "adiwg001", codeName: funded, description: "resource has been approved and secured funding"}
32
+ - {code: "adiwg002", codeName: cancelled, description: "project has been canceled"}
33
+ - {code: "adiwg003", codeName: suspended, description: "project has been placed on hold but is expected to resume at a latter date"}
@@ -0,0 +1,32 @@
1
+ ---
2
+ # mdJson codelists
3
+ # base codelist for ISO 19115-2, 19115-1
4
+ # extended for ADIwg
5
+
6
+ codelistType: "staticList"
7
+ codelistName: "iso_restriction"
8
+ source: "ISO"
9
+ sourceName: "MD_RestrictionCode"
10
+ extensible: true
11
+ description: "limitation(s) placed upon the access or use of the data)"
12
+ codelist:
13
+ - {code: "001", codeName: copyright, description: "exclusive right to the publication, production, or sale of the rights to a literary, dramatic, musical, or artistic work, or to the use of a commercial print or label, granted by law for a specified period of time to an author, composer, artist, distributor"}
14
+ - {code: "002", codeName: patent, description: "government has granted exclusive right to make, sell, use or license an invention or discovery"}
15
+ - {code: "003", codeName: patentPending, description: "produced or sold information awaiting a patent"}
16
+ - {code: "004", codeName: trademark, description: "a name, symbol, or other device identifying a product, officially registered and legally restricted to the use of the owner or manufacturer"}
17
+ - {code: "005", codeName: license, description: "formal permission to do something"}
18
+ - {code: "006", codeName: intellectualPropertyRights, description: "rights to financial benefit from and control of distribution of non-tangible property that is a result of creativity"}
19
+ - {code: "007", codeName: restricted, description: "withheld from general circulation or disclosure"}
20
+ - {code: "008", codeName: otherRestrictions, description: "limitation not listed"}
21
+ - {code: "009", codeName: unrestricted, description: "no constraints exist"}
22
+ - {code: "010", codeName: licenceUnrestricted, description: "formal permission not required to use the resource"}
23
+ - {code: "011", codeName: licenceEndUser, description: "formal permission required for a person or an entity to use the resource and that may differ from the person that orders or purchases it"}
24
+ - {code: "012", codeName: licenceDistributor, description: "formal permission required for a person or an entity to commercialize or distribute the resource"}
25
+ - {code: "013", codeName: private, description: "protects rights of individual or organisations from observation, intrusion, or attention of others"}
26
+ - {code: "014", codeName: statutory, description: "prescribed by law"}
27
+ - {code: "015", codeName: confidential, description: "not available to the public. NOTE Contains information that could be prejudicial to a commercial, industrial, or national interest."}
28
+ - {code: "016", codeName: sensitiveButUnclassified, description: "although unclassified, requires strict controls over its distribution."}
29
+ - {code: "017", codeName: in-confidence, description: "with trust"}
30
+ - {code: "adiwg001", codeName: threatenedOrEndangered, description: "information could risk threatened or endangered species"}
31
+ - {code: "adiwg002", codeName: traditionalKnowledge, description: "information protected by American Indian or Alaska Native rights or culture"}
32
+ - {code: "adiwg003", codeName: personallyIdentifiableInformation, description: "information that can be used to identify an individual"}
@@ -0,0 +1,36 @@
1
+ ---
2
+ # mdJson codelists
3
+ # base codelist for ISO 19115-2, 19115-1
4
+ # extended for ADIwg
5
+
6
+ codelistType: "staticList"
7
+ codelistName: "iso_role"
8
+ source: "ISO"
9
+ sourceName: "CI_RoleCode"
10
+ extensible: true
11
+ description: "function performed by the responsible party"
12
+ codelist:
13
+ - {code: "001", codeName: resourceProvider, description: "party that supplies the resource"}
14
+ - {code: "002", codeName: custodian, description: "party that accepts accountability and responsibility for the data and ensures appropriate care and maintenance of the resource"}
15
+ - {code: "003", codeName: owner, description: "party that owns the resource"}
16
+ - {code: "004", codeName: use, description: "party that uses the resource"}
17
+ - {code: "005", codeName: distributor, description: "party that distributes the resource"}
18
+ - {code: "006", codeName: originator, description: "party that created the resource"}
19
+ - {code: "007", codeName: pointOfContact, description: "party who can be contacted for acquiring knowledge about or acquisition of the resource"}
20
+ - {code: "008", codeName: principalInvestigator, description: "key party responsible for gathering information and conducting research"}
21
+ - {code: "009", codeName: processor, description: "party who has processed the data in a manner such that the resource has been modified"}
22
+ - {code: "010", codeName: publisher, description: "party who published the resource"}
23
+ - {code: "011", codeName: author, description: "party who authored the resource"}
24
+ - {code: "012", codeName: sponsor, description: "party who speaks for the resource"}
25
+ - {code: "013", codeName: coAuthor, description: "party who jointly authors the resource"}
26
+ - {code: "014", codeName: collaborator, description: "party who assists with the generation of the resource other than the principal investigator"}
27
+ - {code: "015", codeName: editor, description: "party who reviewed or modified the resource to improve the content"}
28
+ - {code: "016", codeName: mediator, description: "a class of entity that mediates access to the resource and for whom the resource is intended or useful"}
29
+ - {code: "017", codeName: rightsHolder, description: "party owning or managing rights over the resource"}
30
+ - {code: "018", codeName: contributor, description: "party contributing to the resource"}
31
+ - {code: "019", codeName: funder, description: "party providing monetary support for the resource"}
32
+ - {code: "020", codeName: stakeholder, description: "party who has an interest in the resource or the use of the resource"}
33
+ - {code: "adiwg001", codeName: administrator, description: "party who has administrative oversight for the resource"}
34
+ - {code: "adiwg002", codeName: client, description: "agency or person requesting a project or data collection"}
35
+ - {code: "adiwg003", codeName: logistics, description: "entity that provides logistics support"}
36
+ - {code: "adiwg004", codeName: coPrincipalInvestigator, description: "party who is jointly responsible for gathering information and conducting research"}
@@ -0,0 +1,48 @@
1
+ ---
2
+ # mdJson codelists
3
+ # base codelist for ISO 19115-2, 19115-1
4
+ # extended for ADIwg
5
+
6
+ codelistType: "staticList"
7
+ codelistName: "iso_scope"
8
+ source: "ISO"
9
+ sourceName: "MD_ScopeCode"
10
+ extensible: true
11
+ description: "class of information to which the referencing entity applies"
12
+ codelist:
13
+ - {code: "001", codeName: attribute, description: "information applies to the attribute class"}
14
+ - {code: "002", codeName: attributeType, description: "information applies to the characteristic of a feature"}
15
+ - {code: "003", codeName: collectionHardware, description: "information applies to the collection hardware class"}
16
+ - {code: "004", codeName: collectionSession, description: "information applies to the collection session"}
17
+ - {code: "005", codeName: dataset, description: "information applies to the dataset"}
18
+ - {code: "006", codeName: series, description: "information applies to the series"}
19
+ - {code: "007", codeName: nonGeographicDataset, description: "information applies to non-geographic data"}
20
+ - {code: "008", codeName: dimensionGroup, description: "information applies to a dimension group"}
21
+ - {code: "009", codeName: feature, description: "information applies to a feature"}
22
+ - {code: "010", codeName: featureType, description: "information applies to a feature type"}
23
+ - {code: "011", codeName: propertyType, description: "information applies to a property type"}
24
+ - {code: "012", codeName: fieldSession, description: "information applies to a field session"}
25
+ - {code: "013", codeName: software, description: "information applies to a computer program or routine"}
26
+ - {code: "014", codeName: service, description: "information applies to a capability which a service provider entity makes available to a service user entity through a set of interfaces that define a behaviour, such as a use case"}
27
+ - {code: "015", codeName: model, description: "information applies to a copy or imitation of an existing or hypothetical object"}
28
+ - {code: "016", codeName: tile, description: "information applies to a tile, a spatial subset of geographic data"}
29
+ - {code: "017", codeName: metadata, description: "information applies to metadata"}
30
+ - {code: "018", codeName: initiative, description: "information applies to an initiative"}
31
+ - {code: "019", codeName: sample, description: "information applies to a sample"}
32
+ - {code: "020", codeName: document, description: "information applies to a document"}
33
+ - {code: "021", codeName: repository, description: "information applies to a repository"}
34
+ - {code: "022", codeName: aggregate, description: "information applies to an aggregate resource"}
35
+ - {code: "023", codeName: product, description: "metadata describing an ISO 19131 data product specification"}
36
+ - {code: "024", codeName: collection, description: "information applies to an unstructured set"}
37
+ - {code: "025", codeName: coverage, description: "information applies to a coverage"}
38
+ - {code: "026", codeName: application, description: "information resource hosted on a specific set of hardware and accessible over a network"}
39
+ - {code: "adiwg001", codeName: sciencePaper, description: "document based on an experiment or research"}
40
+ - {code: "adiwg002", codeName: userGuide, description: "operating manual for users"}
41
+ - {code: "adiwg003", codeName: dataDictionary, description: "element and entity definitions"}
42
+ - {code: "adiwg004", codeName: website, description: "information applies to a website such as a thematic portal"}
43
+ - {code: "adiwg005", codeName: publication, description: "information applies to a published document"}
44
+ - {code: "adiwg006", codeName: report, description: "information applies to an unpublished document"}
45
+ - {code: "adiwg007", codeName: awardInfo, description: "information applies to a document related to the grant or award for the resource"}
46
+ - {code: "adiwg008", codeName: collectionSite, description: "Locations where data are collected for scientific research"}
47
+ - {code: "adiwg009", codeName: project, description: "high level information that applies to research activity such as project title, location, contacts, timeframe, abstract, etc."}
48
+ - {code: "adiwg010", codeName: factSheet, description: "information applies to fact sheet, pamphlet, flyer, or brochure"}
@@ -0,0 +1,17 @@
1
+ ---
2
+ # mdJson codelists
3
+ # base codelist for ISO 19115-2, 19115-1
4
+
5
+ codelistType: "staticList"
6
+ codelistName: "iso_spatialRepresentation"
7
+ source: "ISO"
8
+ sourceName: "MD_SpatialRepresentationTypeCode"
9
+ extensible: true
10
+ description: "method used to represent geographic information in the dataset"
11
+ codelist:
12
+ - {code: "001", codeName: vector, description: "vector data is used to represent geographic data"}
13
+ - {code: "002", codeName: grid, description: "grid data is used to represent geographic data"}
14
+ - {code: "003", codeName: textTable, description: "textual or tabular data is used to represent geographic data"}
15
+ - {code: "004", codeName: tin, description: "triangulated irregular network"}
16
+ - {code: "005", codeName: stereoModel, description: "three-dimensional view formed by the intersecting homologous rays of an overlapping pair of images"}
17
+ - {code: "006", codeName: video, description: "scene from a video recording"}
@@ -0,0 +1,14 @@
1
+ ---
2
+ # mdJson codelists
3
+ # base codelist for ISO 19115-2, 19115-1
4
+
5
+ codelistType: "staticList"
6
+ codelistName: "iso_telephone"
7
+ source: "ISO"
8
+ sourceName: "MD_TelephoneTypeCode"
9
+ extensible: true
10
+ description: "type of telephone"
11
+ codelist:
12
+ - {code: "001", codeName: voice, description: "telephone provides voice service"}
13
+ - {code: "002", codeName: facsimile, description: "telephone provides facsimile service"}
14
+ - {code: "003", codeName: sms, description: "telephone provides sms service"}
@@ -0,0 +1,32 @@
1
+ ---
2
+ # mdJson codelists
3
+ # base codelist for ISO 19115-2, 19115-1
4
+
5
+ codelistType: "staticList"
6
+ codelistName: "iso_topicCategory"
7
+ source: "ISO"
8
+ sourceName: "MD_TopicCategoryCode"
9
+ extensible: false
10
+ description: "high-level geographic data thematic classification to assist in the grouping and search of available geographic data sets. Can be used to group keywords as well. Listed examples are not exhaustive. NOTE It is understood there are overlaps between general categories and the user is encouraged to select the one most appropriate. (enumeration - cannot be extended)"
11
+ codelist:
12
+ - {code: "001", codeName: farming, description: "rearing of animals and/or cultivation of plants. Examples: agriculture, irrigation, aquaculture, plantations, herding, pests and diseases affecting crops and livestock"}
13
+ - {code: "002", codeName: biota, description: "flora and/or fauna in natural environment. Examples: wildlife, vegetation, biological sciences, ecology, wilderness, sealife, wetlands, habitat."}
14
+ - {code: "003", codeName: boundaries, description: "legal land descriptions. Examples: political and administrative boundaries."}
15
+ - {code: "004", codeName: climatolotyMeteorologyAtmoshphere, description: "processes and phenomena of the atmosphere. Examples: cloud cover, weather, climate, atmospheric conditions, climate change, precipitation"}
16
+ - {code: "005", codeName: economy, description: "economic activities, conditions and employment. Examples: production, labour, revenue, commerce, industry, tourism and ecotourism, forestry, fisheries, commercial or subsistence hunting, exploration and exploitation of resources such as minerals, oil and gas"}
17
+ - {code: "006", codeName: elevation, description: "height above or below sea level. Examples: altitude, bathymetry, digital elevation models, slope, derived products"}
18
+ - {code: "007", codeName: environment, description: "environmental resources, protection and conservation. Examples: environmental pollution, waste storage and treatment, environmental impact assessment, monitoring environmental risk, nature reserves, landscape"}
19
+ - {code: "008", codeName: geoscientificInformation, description: "information pertaining to earth sciences. Examples: geophysical features and processes, geology, minerals, sciences dealing with the composition, structure and origin of the earth’s rocks, risks of earthquakes, volcanic activity, landslides, gravity information, soils, permafrost, ydrogeology, erosion"}
20
+ - {code: "009", codeName: health, description: "health, health services, human ecology, and safety. Examples: disease and illness, factors affecting health, hygiene, substance abuse, mental and physical health, health services"}
21
+ - {code: "010", codeName: imageryBaseMapsEarthCover, description: "base maps. Examples: land cover, topographic maps, imagery, unclassified images, annotations"}
22
+ - {code: "011", codeName: intelligenceMilitary, description: "military bases, structures, activities. Examples: barracks, training grounds, military transportation, information collection"}
23
+ - {code: "012", codeName: inlandWater, description: "inland water features, drainage systems and their characteristics. Examples: rivers and glaciers, salt lakes, water utilization plans, dams, currents, floods, water quality, hydrographic charts"}
24
+ - {code: "013", codeName: location, description: "positional information and services. Examples: addresses, geodetic networks, control points, postal zones and services, place names"}
25
+ - {code: "014", codeName: oceans, description: "features and characteristics of salt water bodies (excluding inland waters). Examples: tides, tidal waves, coastal information, reefs"}
26
+ - {code: "015", codeName: planningCadastre, description: "information used for appropriate actions for future use of the land. Examples: land use maps, zoning maps, cadastral surveys, land ownership"}
27
+ - {code: "016", codeName: society, description: "characteristics of society and cultures. Examples: settlements, anthropology, archaeology, education, traditional beliefs, manners and customs, demographic data, recreational areas and activities, social impact assessments, crime and justice, census information"}
28
+ - {code: "017", codeName: structure, description: "man-made construction. Examples: buildings, museums, churches, factories, housing, monuments, shops, towers"}
29
+ - {code: "018", codeName: transportation, description: "means and aids for conveying persons and/or goods. Examples: roads, airports/airstrips, shipping routes, tunnels, nautical charts, vehicle or vessel location, aeronautical charts, railways"}
30
+ - {code: "019", codeName: utilitiesCommunication, description: "energy, water and waste systems and communications infrastructure and services. Examples: hydroelectricity, geothermal, solar and nuclear sources of energy, water purification and distribution, sewage collection and disposal, electricity and gas distribution, data communication, telecommunication, radio, communication networks"}
31
+ - {code: "020", codeName: extraTerrestrial, description: "region more than 100 km above the surface of the Earth"}
32
+ - {code: "021", codeName: disaster, description: "information related to disasters. Examples: Site of the disaster, evacuation zone, disaster-prevention facility, disaster relief activities."}
data/test/tc_mdcodes.rb CHANGED
@@ -9,30 +9,40 @@ require 'minitest/autorun'
9
9
  require File.join(File.dirname(__FILE__),'..','lib', 'adiwg-mdcodes.rb')
10
10
 
11
11
  class TestMdcodes < Minitest::Test
12
- def test_yaml
13
- assert_silent {
14
- yaml = YAML.load_file(ADIWG::Mdcodes.getYamlPath)
15
- assert_instance_of(Hash, yaml, failure_message = 'Could not parse YAML.')
16
- }
17
- end
12
+ def test_parseYaml
13
+ @errors = Array.new
18
14
 
19
- def test_getCodeLists
20
- assert_instance_of(Hash,ADIWG::Mdcodes.getCodeLists)
15
+ FileList[ADIWG::Mdcodes.getYamlPath + '**/*.yml'].each do |fname|
16
+ yaml = begin YAML.load_file(fname)
17
+ rescue Exception => e
18
+ @errors << "Could not parse YAML: #{fname}"
19
+ end
21
20
  end
21
+ assert(@errors.empty?, @errors.join("\n"))
22
+ end
22
23
 
23
- def test_getCodeList
24
- yaml = ADIWG::Mdcodes.getCodeLists
25
- key = yaml.keys[0]
26
- assert_instance_of(Hash,ADIWG::Mdcodes.getCodeList(key))
27
- end
24
+ def test_yamlResourceDir
25
+ yamlDir = ADIWG::Mdcodes.getYamlPath
26
+ assert(Dir.exists?(yamlDir), 'Did not find resource Directory.')
27
+ end
28
28
 
29
- def test_getCodeNames
30
- assert_instance_of(Hash,ADIWG::Mdcodes.getCodeNames)
31
- end
29
+ def test_getAllCodeistsDetail
30
+ assert_instance_of(Hash,ADIWG::Mdcodes.getAllCodeistsDetail)
31
+ end
32
32
 
33
- def test_getCodeName
34
- yaml = ADIWG::Mdcodes.getCodeLists
35
- key = yaml.keys[0]
36
- assert_instance_of(Hash,ADIWG::Mdcodes.getCodeName(key))
37
- end
33
+ def test_getCodelistDetail
34
+ yaml = ADIWG::Mdcodes.getAllCodeistsDetail
35
+ key = yaml.keys[0]
36
+ assert_instance_of(Hash,ADIWG::Mdcodes.getCodelistDetail(key))
37
+ end
38
+
39
+ def test_getAllStaticCodelists
40
+ assert_instance_of(Hash,ADIWG::Mdcodes.getAllStaticCodelists)
41
+ end
42
+
43
+ def test_getStaticCodelist
44
+ yaml = ADIWG::Mdcodes.getAllStaticCodelists
45
+ key = yaml.keys[0]
46
+ assert_instance_of(Hash,ADIWG::Mdcodes.getStaticCodelist(key))
47
+ end
38
48
  end