Skip to content

Commit

Permalink
#181 support M5 - DQC classes
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Oct 4, 2024
1 parent b8f4ee1 commit f7b535b
Show file tree
Hide file tree
Showing 8 changed files with 319 additions and 4 deletions.
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export(ISOAbstractCitation)
export(ISOAbstractCompleteness)
export(ISOAbstractConstraints)
export(ISOAbstractContentInformation)
export(ISOAbstractDataQuality)
export(ISOAbstractDistribution)
export(ISOAbstractExtent)
export(ISOAbstractFormat)
Expand All @@ -113,6 +114,7 @@ export(ISOAbstractPlatform)
export(ISOAbstractPortrayalCatalogueInformation)
export(ISOAbstractPositionalAccuracy)
export(ISOAbstractPropertyType)
export(ISOAbstractQualityElement)
export(ISOAbstractRSReferenceSystem)
export(ISOAbstractReferenceSystem)
export(ISOAbstractResourceDescription)
Expand Down
31 changes: 31 additions & 0 deletions R/ISOAbstractDataQuality.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#' ISOAbstractDataQuality
#'
#' @docType class
#' @importFrom R6 R6Class
#' @export
#' @keywords ISO abstract data quality
#' @return Object of \code{\link{R6Class}} for modelling an ISO abstract data quality
#' @format \code{\link{R6Class}} object.
#'
#' @references
#' - ISO 19115-3 \url{https://schemas.isotc211.org/19157/-/dqc/1.2/dqc/#element_Abstract_DataQuality}
#'
#' @author Emmanuel Blondel <emmanuel.blondel1@@gmail.com>
#'
ISOAbstractDataQuality <- R6Class("ISOAbstractDataQuality",
inherit = ISOAbstractObject,
private = list(
xmlElement = "Abstract_DataQuality",
xmlNamespacePrefix = list(
"19115-3" = "DQC"
)
),
public = list(

#'@description Initializes object
#'@param xml object of class \link{XMLInternalNode-class}
initialize = function(xml = NULL){
super$initialize(xml = xml)
}
)
)
43 changes: 43 additions & 0 deletions R/ISOAbstractQualityElement.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#' ISOAbstractQualityElement
#'
#' @docType class
#' @importFrom R6 R6Class
#' @export
#' @keywords ISO abstract quality element
#' @return Object of \code{\link{R6Class}} for modelling an ISO abstract quality element
#' @format \code{\link{R6Class}} object.
#'
#' @references
#' - ISO 19115-3 \url{https://schemas.isotc211.org/19157/-/dqc/1.2/dqc/#element_Abstract_QualityElement}
#'
#' @author Emmanuel Blondel <emmanuel.blondel1@@gmail.com>
#'
ISOAbstractQualityElement <- R6Class("ISOAbstractQualityElement",
inherit = ISOAbstractObject,
private = list(
xmlElement = "Abstract_QualityElement",
xmlNamespacePrefix = list(
"19115-3" = "DQC"
)
),
public = list(

#'@field dateTime dateTime
dateTime = NULL,

#'@description Initializes object
#'@param xml object of class \link{XMLInternalNode-class}
initialize = function(xml = NULL){
super$initialize(xml = xml)
},

#'@description Set date time
#'@param dateTime dateTime object of class \link{ISOBaseDateTime}
setDateTime = function(dateTime){
if(!is(dateTime, "ISOBaseDateTime")){
stop("The argument 'dateTime' should be an object of class 'ISOBaseDateTime'")
}
self$dateTime = dateTime
}
)
)
4 changes: 2 additions & 2 deletions inst/extdata/coverage/geometa_coverage_inventory.csv
Original file line number Diff line number Diff line change
Expand Up @@ -706,8 +706,8 @@
"ISO/TS 19115-3:2023","ISO 19115-1:2014","Metadata for SeRVices (SRV) Version: 2.0","SRV","SV_Parameter","ISOParameter",TRUE,FALSE,"ISO/TS 19115-3:2023 - ISO 19115-1:2014 - SRV"
"ISO/TS 19115-3:2023","ISO 19115-1:2014","Metadata for SeRVices (SRV) Version: 2.0","SRV","SV_ParameterDirection","ISOParameterDirection",TRUE,FALSE,"ISO/TS 19115-3:2023 - ISO 19115-1:2014 - SRV"
"ISO/TS 19115-3:2023","ISO 19115-1:2014","Metadata for SeRVices (SRV) Version: 2.0","SRV","SV_ServiceIdentification","ISOSRVServiceIdentification",TRUE,FALSE,"ISO/TS 19115-3:2023 - ISO 19115-1:2014 - SRV"
"ISO/TS 19115-3:2023","ISO 19157","Data Quality abstract Classes (DQC) Version 1.0","DQC","Abstract_DataQuality","<missing>",FALSE,FALSE,"ISO/TS 19115-3:2023 - ISO 19157 - DQC"
"ISO/TS 19115-3:2023","ISO 19157","Data Quality abstract Classes (DQC) Version 1.0","DQC","Abstract_QualityElement","<missing>",FALSE,FALSE,"ISO/TS 19115-3:2023 - ISO 19157 - DQC"
"ISO/TS 19115-3:2023","ISO 19157","Data Quality abstract Classes (DQC) Version 1.0","DQC","Abstract_DataQuality","ISOAbstractDataQuality",TRUE,TRUE,"ISO/TS 19115-3:2023 - ISO 19157 - DQC"
"ISO/TS 19115-3:2023","ISO 19157","Data Quality abstract Classes (DQC) Version 1.0","DQC","Abstract_QualityElement","ISOAbstractQualityElement",TRUE,TRUE,"ISO/TS 19115-3:2023 - ISO 19157 - DQC"
"ISO/TS 19115-3:2023","ISO 19157","Metadata for Data Quality (MDQ) Version: 1.0","MDQ","AbstractDQ_Completeness","<missing>",FALSE,FALSE,"ISO/TS 19115-3:2023 - ISO 19157 - MDQ"
"ISO/TS 19115-3:2023","ISO 19157","Metadata for Data Quality (MDQ) Version: 1.0","MDQ","AbstractDQ_DataEvaluation","<missing>",FALSE,FALSE,"ISO/TS 19115-3:2023 - ISO 19157 - MDQ"
"ISO/TS 19115-3:2023","ISO 19157","Metadata for Data Quality (MDQ) Version: 1.0","MDQ","AbstractDQ_Element","<missing>",FALSE,FALSE,"ISO/TS 19115-3:2023 - ISO 19157 - MDQ"
Expand Down
2 changes: 1 addition & 1 deletion inst/extdata/coverage/geometa_coverage_summary.csv
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"ISO/TS 19115-3:2023","ISO 19115-1:2014","Metadata for Reference Systems (MRS) Version: 1.0","MRS",2,0,2,0,100
"ISO/TS 19115-3:2023","ISO 19115-1:2014","Metadata for Spatial Representation (MSR) Version: 2.0","MSR",0,17,0,17,0
"ISO/TS 19115-3:2023","ISO 19115-1:2014","Metadata for SeRVices (SRV) Version: 2.0","SRV",7,1,0,8,87.5
"ISO/TS 19115-3:2023","ISO 19157","Data Quality abstract Classes (DQC) Version 1.0","DQC",0,2,0,2,0
"ISO/TS 19115-3:2023","ISO 19157","Data Quality abstract Classes (DQC) Version 1.0","DQC",2,0,2,0,100
"ISO/TS 19115-3:2023","ISO 19157","Metadata for Data Quality (MDQ) Version: 1.0","MDQ",0,43,0,43,0
"ISO/TS 19115-3:2023","ISO/TS 19139:2007","CATalogue Objects (CAT) Version: 1.0","CAT",2,15,2,15,11.76
"ISO/TS 19115-3:2023","ISO/TS 19139:2007","Feature Catalog Common (FCC) Version: 1.0","FCC",0,2,0,2,0
Expand Down
2 changes: 1 addition & 1 deletion inst/extdata/coverage/geometa_coverage_summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
|ISO/TS 19115-3:2023 |ISO 19115-1:2014 |Metadata for Reference Systems (MRS) Version: 1.0 |MRS |[![ISO/TS 19115-3:2023 - ISO 19115-1:2014 - MRS](https://img.shields.io/badge/-100%25-4a4ea8.svg)](https://github.com/eblondel/geometa)| 2| 0| 2| 0|
|ISO/TS 19115-3:2023 |ISO 19115-1:2014 |Metadata for Spatial Representation (MSR) Version: 2.0 |MSR |[![ISO/TS 19115-3:2023 - ISO 19115-1:2014 - MSR](https://img.shields.io/badge/-0%25-ad0f0f.svg)](https://github.com/eblondel/geometa)| 0| 17| 0| 17|
|ISO/TS 19115-3:2023 |ISO 19115-1:2014 |Metadata for SeRVices (SRV) Version: 2.0 |SRV |[![ISO/TS 19115-3:2023 - ISO 19115-1:2014 - SRV](https://img.shields.io/badge/-88%25-33cc7a.svg)](https://github.com/eblondel/geometa)| 7| 1| 0| 8|
|ISO/TS 19115-3:2023 |ISO 19157 |Data Quality abstract Classes (DQC) Version 1.0 |DQC |[![ISO/TS 19115-3:2023 - ISO 19157 - DQC](https://img.shields.io/badge/-0%25-ad0f0f.svg)](https://github.com/eblondel/geometa) | 0| 2| 0| 2|
|ISO/TS 19115-3:2023 |ISO 19157 |Data Quality abstract Classes (DQC) Version 1.0 |DQC |[![ISO/TS 19115-3:2023 - ISO 19157 - DQC](https://img.shields.io/badge/-100%25-4a4ea8.svg)](https://github.com/eblondel/geometa)| 2| 0| 2| 0|
|ISO/TS 19115-3:2023 |ISO 19157 |Metadata for Data Quality (MDQ) Version: 1.0 |MDQ |[![ISO/TS 19115-3:2023 - ISO 19157 - MDQ](https://img.shields.io/badge/-0%25-ad0f0f.svg)](https://github.com/eblondel/geometa) | 0| 43| 0| 43|
|ISO/TS 19115-3:2023 |ISO/TS 19139:2007 |CATalogue Objects (CAT) Version: 1.0 |CAT |[![ISO/TS 19115-3:2023 - ISO/TS 19139:2007 - CAT](https://img.shields.io/badge/-12%25-ad0f0f.svg)](https://github.com/eblondel/geometa)| 2| 15| 2| 15|
|ISO/TS 19115-3:2023 |ISO/TS 19139:2007 |Feature Catalog Common (FCC) Version: 1.0 |FCC |[![ISO/TS 19115-3:2023 - ISO/TS 19139:2007 - FCC](https://img.shields.io/badge/-0%25-ad0f0f.svg)](https://github.com/eblondel/geometa)| 0| 2| 0| 2|
Expand Down
107 changes: 107 additions & 0 deletions man/ISOAbstractDataQuality.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f7b535b

Please sign in to comment.