diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml new file mode 100644 index 0000000..d4d87b1 --- /dev/null +++ b/.github/workflows/run-tests.yml @@ -0,0 +1,32 @@ +name: Run Tests + +on: + push: + +jobs: + build-and-test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '20' + + - name: Install Node.js dependencies + run: npm install --force + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '2.7' + + - name: Install Ruby dependencies + run: bundle install + + - name: Build Project + run: npm run build + + - name: Run Tests + run: bundle exec rake test diff --git a/Gemfile.lock b/Gemfile.lock index fd0abba..f64376e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - adiwg-mdcodes (2.9.3) + adiwg-mdcodes (2.10.0) json (~> 2.0) GEM diff --git a/lib/adiwg/mdcodes/version.rb b/lib/adiwg/mdcodes/version.rb index 6239940..a910f7a 100644 --- a/lib/adiwg/mdcodes/version.rb +++ b/lib/adiwg/mdcodes/version.rb @@ -30,7 +30,7 @@ module ADIWG module Mdcodes - VERSION = "2.9.3" + VERSION = "2.10.0" end end diff --git a/package-lock.json b/package-lock.json index 02308fd..ede60c0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "mdcodes", - "version": "2.9.3", + "version": "2.10.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "mdcodes", - "version": "2.9.3", + "version": "2.10.0", "license": "Unlicense", "dependencies": { "buildify": "github:powmedia/buildify#20458a121411f759dcc5ec1b441695eb7fc2b3b7", diff --git a/package.json b/package.json index dab22da..0989b6e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mdcodes", - "version": "2.9.3", + "version": "2.10.0", "main": "index.js", "description": "CodeLists for ADIwg mdJSON", "repository": { @@ -26,7 +26,7 @@ }, "scripts": { "prepublishOnly": "scripts/prepublish.js", - "build": "npm i --force && grunt convert && grunt concat-json && npm run prepublishOnly" + "build": "bundle && npm i --force && grunt convert && grunt concat-json && npm run prepublishOnly" }, "dependencies": { "buildify": "github:powmedia/buildify#20458a121411f759dcc5ec1b441695eb7fc2b3b7", diff --git a/resources/adiwg_dataQualityElement.yml b/resources/adiwg_dataQualityElement.yml index 8aeae8f..6048207 100644 --- a/resources/adiwg_dataQualityElement.yml +++ b/resources/adiwg_dataQualityElement.yml @@ -8,18 +8,18 @@ sourceName: "ADIwg_DataQualityElement" extensible: true description: "ISO data quality element class names" codelist: - - { code: "001", codeName: AbsolutePositionalAccuracy, description: "closeness of reported coordinate values to values accepted as or being true" } - - { code: "002", codeName: RelativePositionalAccuracy, description: "closeness of the relative positions of features in the scope to their respective relative positions accepted as or being true" } - - { code: "003", codeName: GriddedDataPositionalAccuracy, description: "closeness of gridded data position values to values accepted as or being true" } - - { code: "004", codeName: ConceptualConsistency, description: "adherence to rules of the conceptual schema" } - - { code: "005", codeName: DomainConsistency, description: "adherence of values to the value domains" } - - { code: "006", codeName: FormatConsistency, description: "degree to which data is stored in accordance with the physical structure of the dataset, as described by the scope" } - - { code: "007", codeName: TopologicalConsistency, description: "correctness of the explicitly encoded topological characteristics of the dataset as described by the scope" } - - { code: "008", codeName: ThematicClassificationCorrectness, description: "comparison of the classes assigned to features or their attributes to a universe of discourse" } - - { code: "009", codeName: NonQuantitativeAttributeCorrectness, description: "correctness of non-quantitative attributes" } - - { code: "010", codeName: QuantitativeAttributeAccuracy, description: "accuracy of quantitative attributes" } - - { code: "011", codeName: AccuracyOfATimeMeasurement, description: "correctness of the temporal references of an item (reporting of error in time measurement)" } - - { code: "012", codeName: TemporalValidity, description: "validity of data specified by the scope with respect to time" } - - { code: "013", codeName: TemporalConsistency, description: "correctness of ordered events or sequences, if reported" } - - { code: "014", codeName: Commission, description: "excess data present in the dataset, as described by the scope" } - - { code: "015", codeName: Omission, description: "data absent from the dataset, as described by the scope" } + - { code: "001", codeName: DQ_AbsoluteExternalPositionalAccuracy, description: "closeness of reported coordinate values to values accepted as or being true" } + - { code: "002", codeName: DQ_RelativeInternalPositionalAccuracy, description: "closeness of the relative positions of features in the scope to their respective relative positions accepted as or being true" } + - { code: "003", codeName: DQ_GriddedDataPositionalAccuracy, description: "closeness of gridded data position values to values accepted as or being true" } + - { code: "004", codeName: DQ_ConceptualConsistency, description: "adherence to rules of the conceptual schema" } + - { code: "005", codeName: DQ_DomainConsistency, description: "adherence of values to the value domains" } + - { code: "006", codeName: DQ_FormatConsistency, description: "degree to which data is stored in accordance with the physical structure of the dataset, as described by the scope" } + - { code: "007", codeName: DQ_TopologicalConsistency, description: "correctness of the explicitly encoded topological characteristics of the dataset as described by the scope" } + - { code: "008", codeName: DQ_ThematicClassificationCorrectness, description: "comparison of the classes assigned to features or their attributes to a universe of discourse" } + - { code: "009", codeName: DQ_NonQuantitativeAttributeCorrectness, description: "correctness of non-quantitative attributes" } + - { code: "010", codeName: DQ_QuantitativeAttributeAccuracy, description: "accuracy of quantitative attributes" } + - { code: "011", codeName: DQ_AccuracyOfATimeMeasurement, description: "correctness of the temporal references of an item (reporting of error in time measurement)" } + - { code: "012", codeName: DQ_TemporalValidity, description: "validity of data specified by the scope with respect to time" } + - { code: "013", codeName: DQ_TemporalConsistency, description: "correctness of ordered events or sequences, if reported" } + - { code: "014", codeName: DQ_CompletenessCommission, description: "excess data present in the dataset, as described by the scope" } + - { code: "015", codeName: DQ_CompletenessOmission, description: "data absent from the dataset, as described by the scope" } diff --git a/resources/adiwg_namespace.yml b/resources/adiwg_namespace.yml index 3337d3a..1631e81 100644 --- a/resources/adiwg_namespace.yml +++ b/resources/adiwg_namespace.yml @@ -23,3 +23,5 @@ codelist: - {code: "spatialreference.org", codeName: SR-ORG, description: "Coordinate reference system from SpatialReference.org database"} - {code: "org.adiwg.code.mapGridSystem", codeName: mapGridSystem, description: "Name of the grid UTM, State Plane, or other grid system used by a spatial reference system."} - {code: "org.adiwg.code.mapProjection", codeName: mapProjection, description: "Name of the planar, grid, or local projection used by a spatial reference system."} + - {code: "org.adiwg.code.bureauCode", codeName: bureauCode, description: "DCAT-US combined federal agency and bureau code from OMB Circular A-11."} + - {code: "org.adiwg.code.programCode", codeName: programCode, description: "DCAT-US Federal Program Inventory program code."} \ No newline at end of file diff --git a/resources/iso_parameterDirection.yml b/resources/iso_parameterDirection.yml new file mode 100644 index 0000000..a08904c --- /dev/null +++ b/resources/iso_parameterDirection.yml @@ -0,0 +1,11 @@ +codelistType: "staticList" +codelistName: "iso_parameterDirection" +source: "ISO" +sourceName: "SV_ParameterDirection" +extensible: true +description: "class of information to which the referencing entity applies" +codelist: + - {code: "001", codeName: in, description: "the parameter is an input parameter to the service instance"} + - {code: "002", codeName: out, description: "the parameter is an output parameter to the service instance"} + - {code: "003", codeName: in/out, description: "the parameter is both an input and output parameter to the service instance"} + \ No newline at end of file diff --git a/resources/iso_parameterDirectionCode.yml b/resources/iso_parameterDirectionCode.yml deleted file mode 100644 index 1df4bd0..0000000 --- a/resources/iso_parameterDirectionCode.yml +++ /dev/null @@ -1,12 +0,0 @@ - -codelistType: "staticList" -codelistName: "iso_parameterDirection" -source: "ISO" -sourceName: "SV_ParameterDirection" -extensible: true -description: "class of information to which the referencing entity applies" -codelist: - - { code: "001", codeName: "in", description: "the parameter is an input parameter to the service instance" } - - { code: "002", codeName: "out", description: "the parameter is an output parameter to the service instance" } - - { code: "003", codeName: "in/out", description: "the parameter is both an input and output parameter to the service instance" } - \ No newline at end of file