diff --git a/NAMESPACE b/NAMESPACE index e281fb95..37689333 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -95,6 +95,7 @@ export(ISOAbstractCitation) export(ISOAbstractCompleteness) export(ISOAbstractConstraints) export(ISOAbstractContentInformation) +export(ISOAbstractDataQuality) export(ISOAbstractDistribution) export(ISOAbstractExtent) export(ISOAbstractFormat) @@ -113,6 +114,7 @@ export(ISOAbstractPlatform) export(ISOAbstractPortrayalCatalogueInformation) export(ISOAbstractPositionalAccuracy) export(ISOAbstractPropertyType) +export(ISOAbstractQualityElement) export(ISOAbstractRSReferenceSystem) export(ISOAbstractReferenceSystem) export(ISOAbstractResourceDescription) diff --git a/R/ISOAbstractDataQuality.R b/R/ISOAbstractDataQuality.R new file mode 100644 index 00000000..d438f596 --- /dev/null +++ b/R/ISOAbstractDataQuality.R @@ -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 +#' +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) + } + ) +) \ No newline at end of file diff --git a/R/ISOAbstractQualityElement.R b/R/ISOAbstractQualityElement.R new file mode 100644 index 00000000..23d129a3 --- /dev/null +++ b/R/ISOAbstractQualityElement.R @@ -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 +#' +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 + } + ) +) \ No newline at end of file diff --git a/inst/extdata/coverage/geometa_coverage_inventory.csv b/inst/extdata/coverage/geometa_coverage_inventory.csv index 5de84cb6..45e003e9 100644 --- a/inst/extdata/coverage/geometa_coverage_inventory.csv +++ b/inst/extdata/coverage/geometa_coverage_inventory.csv @@ -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","",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","",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","",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","",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","",FALSE,FALSE,"ISO/TS 19115-3:2023 - ISO 19157 - MDQ" diff --git a/inst/extdata/coverage/geometa_coverage_summary.csv b/inst/extdata/coverage/geometa_coverage_summary.csv index 1f2d5d0a..71859f2d 100644 --- a/inst/extdata/coverage/geometa_coverage_summary.csv +++ b/inst/extdata/coverage/geometa_coverage_summary.csv @@ -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 diff --git a/inst/extdata/coverage/geometa_coverage_summary.md b/inst/extdata/coverage/geometa_coverage_summary.md index 1762a62a..836b3731 100644 --- a/inst/extdata/coverage/geometa_coverage_summary.md +++ b/inst/extdata/coverage/geometa_coverage_summary.md @@ -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| diff --git a/man/ISOAbstractDataQuality.Rd b/man/ISOAbstractDataQuality.Rd new file mode 100644 index 00000000..affab402 --- /dev/null +++ b/man/ISOAbstractDataQuality.Rd @@ -0,0 +1,107 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/ISOAbstractDataQuality.R +\docType{class} +\name{ISOAbstractDataQuality} +\alias{ISOAbstractDataQuality} +\title{ISOAbstractDataQuality} +\format{ +\code{\link{R6Class}} object. +} +\value{ +Object of \code{\link{R6Class}} for modelling an ISO abstract data quality +} +\description{ +ISOAbstractDataQuality + +ISOAbstractDataQuality +} +\references{ +- ISO 19115-3 \url{https://schemas.isotc211.org/19157/-/dqc/1.2/dqc/#element_Abstract_DataQuality} +} +\author{ +Emmanuel Blondel +} +\keyword{ISO} +\keyword{abstract} +\keyword{data} +\keyword{quality} +\section{Super classes}{ +\code{\link[geometa:geometaLogger]{geometa::geometaLogger}} -> \code{\link[geometa:ISOAbstractObject]{geometa::ISOAbstractObject}} -> \code{ISOAbstractDataQuality} +} +\section{Methods}{ +\subsection{Public methods}{ +\itemize{ +\item \href{#method-ISOAbstractDataQuality-new}{\code{ISOAbstractDataQuality$new()}} +\item \href{#method-ISOAbstractDataQuality-clone}{\code{ISOAbstractDataQuality$clone()}} +} +} +\if{html}{\out{ +
Inherited methods + +
+}} +\if{html}{\out{
}} +\if{html}{\out{}} +\if{latex}{\out{\hypertarget{method-ISOAbstractDataQuality-new}{}}} +\subsection{Method \code{new()}}{ +Initializes object +\subsection{Usage}{ +\if{html}{\out{
}}\preformatted{ISOAbstractDataQuality$new(xml = NULL)}\if{html}{\out{
}} +} + +\subsection{Arguments}{ +\if{html}{\out{
}} +\describe{ +\item{\code{xml}}{object of class \link{XMLInternalNode-class}} +} +\if{html}{\out{
}} +} +} +\if{html}{\out{
}} +\if{html}{\out{}} +\if{latex}{\out{\hypertarget{method-ISOAbstractDataQuality-clone}{}}} +\subsection{Method \code{clone()}}{ +The objects of this class are cloneable with this method. +\subsection{Usage}{ +\if{html}{\out{
}}\preformatted{ISOAbstractDataQuality$clone(deep = FALSE)}\if{html}{\out{
}} +} + +\subsection{Arguments}{ +\if{html}{\out{
}} +\describe{ +\item{\code{deep}}{Whether to make a deep clone.} +} +\if{html}{\out{
}} +} +} +} diff --git a/man/ISOAbstractQualityElement.Rd b/man/ISOAbstractQualityElement.Rd new file mode 100644 index 00000000..bb1913e0 --- /dev/null +++ b/man/ISOAbstractQualityElement.Rd @@ -0,0 +1,132 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/ISOAbstractQualityElement.R +\docType{class} +\name{ISOAbstractQualityElement} +\alias{ISOAbstractQualityElement} +\title{ISOAbstractQualityElement} +\format{ +\code{\link{R6Class}} object. +} +\value{ +Object of \code{\link{R6Class}} for modelling an ISO abstract quality element +} +\description{ +ISOAbstractQualityElement + +ISOAbstractQualityElement +} +\references{ +- ISO 19115-3 \url{https://schemas.isotc211.org/19157/-/dqc/1.2/dqc/#element_Abstract_QualityElement} +} +\author{ +Emmanuel Blondel +} +\keyword{ISO} +\keyword{abstract} +\keyword{element} +\keyword{quality} +\section{Super classes}{ +\code{\link[geometa:geometaLogger]{geometa::geometaLogger}} -> \code{\link[geometa:ISOAbstractObject]{geometa::ISOAbstractObject}} -> \code{ISOAbstractQualityElement} +} +\section{Public fields}{ +\if{html}{\out{
}} +\describe{ +\item{\code{dateTime}}{dateTime} +} +\if{html}{\out{
}} +} +\section{Methods}{ +\subsection{Public methods}{ +\itemize{ +\item \href{#method-ISOAbstractQualityElement-new}{\code{ISOAbstractQualityElement$new()}} +\item \href{#method-ISOAbstractQualityElement-setDateTime}{\code{ISOAbstractQualityElement$setDateTime()}} +\item \href{#method-ISOAbstractQualityElement-clone}{\code{ISOAbstractQualityElement$clone()}} +} +} +\if{html}{\out{ +
Inherited methods + +
+}} +\if{html}{\out{
}} +\if{html}{\out{}} +\if{latex}{\out{\hypertarget{method-ISOAbstractQualityElement-new}{}}} +\subsection{Method \code{new()}}{ +Initializes object +\subsection{Usage}{ +\if{html}{\out{
}}\preformatted{ISOAbstractQualityElement$new(xml = NULL)}\if{html}{\out{
}} +} + +\subsection{Arguments}{ +\if{html}{\out{
}} +\describe{ +\item{\code{xml}}{object of class \link{XMLInternalNode-class}} +} +\if{html}{\out{
}} +} +} +\if{html}{\out{
}} +\if{html}{\out{}} +\if{latex}{\out{\hypertarget{method-ISOAbstractQualityElement-setDateTime}{}}} +\subsection{Method \code{setDateTime()}}{ +Set date time +\subsection{Usage}{ +\if{html}{\out{
}}\preformatted{ISOAbstractQualityElement$setDateTime(dateTime)}\if{html}{\out{
}} +} + +\subsection{Arguments}{ +\if{html}{\out{
}} +\describe{ +\item{\code{dateTime}}{dateTime object of class \link{ISOBaseDateTime}} +} +\if{html}{\out{
}} +} +} +\if{html}{\out{
}} +\if{html}{\out{}} +\if{latex}{\out{\hypertarget{method-ISOAbstractQualityElement-clone}{}}} +\subsection{Method \code{clone()}}{ +The objects of this class are cloneable with this method. +\subsection{Usage}{ +\if{html}{\out{
}}\preformatted{ISOAbstractQualityElement$clone(deep = FALSE)}\if{html}{\out{
}} +} + +\subsection{Arguments}{ +\if{html}{\out{
}} +\describe{ +\item{\code{deep}}{Whether to make a deep clone.} +} +\if{html}{\out{
}} +} +} +}