Skip to content

Commit

Permalink
#181 support M5 - SRV
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Oct 6, 2024
1 parent d2e97e8 commit a1ad117
Show file tree
Hide file tree
Showing 7 changed files with 308 additions and 15 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ export(ISONonQuantitativeAttributeAccuracy)
export(ISOObligation)
export(ISOOnLineFunction)
export(ISOOnlineResource)
export(ISOOperationChainMetadata)
export(ISOOperationMetadata)
export(ISOOrganisation)
export(ISOOtherAggregate)
Expand Down
87 changes: 87 additions & 0 deletions R/ISOOperationChainMetadata.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
#' ISOOperationChainMetadata
#'
#' @docType class
#' @importFrom R6 R6Class
#' @export
#' @keywords ISO OperationChainMetadata
#' @return Object of \code{\link{R6Class}} for modelling an ISOOperationChainMetadata
#' @format \code{\link{R6Class}} object.
#'
#' @examples
#' md <- ISOOperationChainMetadata$new()
#' xml <- md$encode()
#'
#' @references
#' - ISO 19139 \url{https://schemas.isotc211.org/19119/srv/srv/#element_SV_OperationChainMetadata}
#'
#' - ISO 19115-3 \url{https://schemas.isotc211.org/19115/-1/srv/1.3.0/srv/#element_SV_OperationChainMetadata}
#'
#' @author Emmanuel Blondel <emmanuel.blondel1@@gmail.com>
#'
ISOOperationChainMetadata <- R6Class("ISOOperationChainMetadata",
inherit = ISOAbstractObject,
private = list(
xmlElement = "SV_OperationChainMetadata",
xmlNamespacePrefix = list(
"19139" = "SRV",
"19115-3" = "SRV"
)
),
public = list(

#'@field name name [1..1]: character
name = NULL,
#'@field description description [1..1]: character
description = NULL,
#'@field operation operation [1..*]: ISOOperationMetadata
operation = list(),

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

#'@description Set name
#'@param name name
#'@param locales list of localized texts. Default is \code{NULL}
setName = function(name, locales = NULL){
self$name <- as.character(name)
if(!is.null(locales)){
self$name <- self$createLocalisedProperty(name, locales)
}
},

#'@description Set description
#'@param description description
#'@param locales list of localized texts. Default is \code{NULL}
setDescription = function(description, locales = NULL){
self$description <- as.character(description)
if(!is.null(locales)){
self$description <- self$createLocalisedProperty(description, locales)
}
},

#'@description Adds operation metadata
#'@param operation object of class \link{ISOOperationMetadata}
#'@return \code{TRUE} if added, \code{FALSE} otherwise
addOperation = function(operation){
if(!is(operation, "ISOOperationMetadata")){
stop("The argument should be an object of class 'ISOOperationMetadata'")
}
return(self$addListElement("operation", operation))
},

#'@description Deletes operation metadata
#'@param operation object of class \link{ISOOperationMetadata}
#'@return \code{TRUE} if deleted, \code{FALSE} otherwise
delOperation = function(operation){
if(!is(operation, "ISOOperationMetadata")){
stop("The argument should be an object of class 'ISOOperationMetadata'")
}
return(self$delListElement("operation", operation))
}


)
)
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 @@ -194,7 +194,7 @@
"ISO/TS 19139:2007","ISO 19119:2005","Geographic Information - Service Metadata","SRV","SV_Interface","<missing>",FALSE,FALSE,"ISO/TS 19139:2007 - ISO 19119:2005 - SRV"
"ISO/TS 19139:2007","ISO 19119:2005","Geographic Information - Service Metadata","SRV","SV_Operation","<missing>",FALSE,FALSE,"ISO/TS 19139:2007 - ISO 19119:2005 - SRV"
"ISO/TS 19139:2007","ISO 19119:2005","Geographic Information - Service Metadata","SRV","SV_OperationChain","<missing>",FALSE,FALSE,"ISO/TS 19139:2007 - ISO 19119:2005 - SRV"
"ISO/TS 19139:2007","ISO 19119:2005","Geographic Information - Service Metadata","SRV","SV_OperationChainMetadata","<missing>",FALSE,FALSE,"ISO/TS 19139:2007 - ISO 19119:2005 - SRV"
"ISO/TS 19139:2007","ISO 19119:2005","Geographic Information - Service Metadata","SRV","SV_OperationChainMetadata","ISOOperationChainMetadata",TRUE,TRUE,"ISO/TS 19139:2007 - ISO 19119:2005 - SRV"
"ISO/TS 19139:2007","ISO 19119:2005","Geographic Information - Service Metadata","SRV","SV_OperationMetadata","ISOOperationMetadata",TRUE,FALSE,"ISO/TS 19139:2007 - ISO 19119:2005 - SRV"
"ISO/TS 19139:2007","ISO 19119:2005","Geographic Information - Service Metadata","SRV","SV_OperationModel","<missing>",FALSE,FALSE,"ISO/TS 19139:2007 - ISO 19119:2005 - SRV"
"ISO/TS 19139:2007","ISO 19119:2005","Geographic Information - Service Metadata","SRV","SV_Parameter","ISOParameter",TRUE,FALSE,"ISO/TS 19139:2007 - ISO 19119:2005 - SRV"
Expand Down Expand Up @@ -701,7 +701,7 @@
"ISO/TS 19115-3:2023","ISO 19115-1:2014","Metadata for SeRVices (SRV) Version: 2.0","SRV","DCPList","ISODCPList",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_CoupledResource","ISOCoupledResource",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_CouplingType","ISOCouplingType",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_OperationChainMetadata","<missing>",FALSE,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_OperationChainMetadata","ISOOperationChainMetadata",TRUE,TRUE,"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_OperationMetadata","ISOOperationMetadata",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_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"
Expand Down
4 changes: 2 additions & 2 deletions inst/extdata/coverage/geometa_coverage_summary.csv
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
"ISO/TS 19115-3:2023","ISO 19115-1:2014","Metadata for Resource Lineage (MRL) Version: 2.0","MRL",3,8,3,8,27.27
"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",17,0,17,0,100
"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 19115-1:2014","Metadata for SeRVices (SRV) Version: 2.0","SRV",8,0,1,7,100
"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",3,14,3,14,17.65
"ISO/TS 19115-3:2023","ISO/TS 19139:2007","Feature Catalog Common (FCC) Version: 1.0","FCC",2,0,2,0,100
"ISO/TS 19139:2007","ISO 19110:2005","Geographic Information - Methodology for feature cataloguing","GFC",17,0,0,17,100
"ISO/TS 19139:2007","ISO 19115-1:2003","Geographic Information - Metadata","GMD",132,0,83,49,100
"ISO/TS 19139:2007","ISO 19115-2:2009","Geographic Information - Metadata - Part 2: Extensions for imagery and gridded data","GMI",40,0,31,9,100
"ISO/TS 19139:2007","ISO 19119:2005","Geographic Information - Service Metadata","SRV",7,12,0,19,36.84
"ISO/TS 19139:2007","ISO 19119:2005","Geographic Information - Service Metadata","SRV",8,11,1,18,42.11
"ISO/TS 19139:2007","ISO/TS 19103:2005","Geographic Common extensible markup language","GCO",22,0,22,0,100
"ISO/TS 19139:2007","ISO/TS 19139:2007","Geographic Metadata XML Schema","GMX",10,56,9,57,15.15
"ISO/TS 19139:2007","ISO/TS 19139:2007","Geographic Metadata XML Schema - Geographic Temporal Schema (GTS)","GTS",1,0,1,0,100
Expand Down
18 changes: 9 additions & 9 deletions inst/extdata/coverage/geometa_coverage_summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -589,11 +589,11 @@
<td align="left">ISO 19115-1:2014</td>
<td align="left">Metadata for SeRVices (SRV) Version: 2.0</td>
<td align="left">SRV</td>
<td align="left"><a href="https://github.com/eblondel/geometa"><img src="data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMzUiIGhlaWdodD0iMjAiIHJvbGU9ImltZyIgYXJpYS1sYWJlbD0iODglIj48dGl0bGU+ODglPC90aXRsZT48bGluZWFyR3JhZGllbnQgaWQ9InMiIHgyPSIwIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjYmJiIiBzdG9wLW9wYWNpdHk9Ii4xIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLW9wYWNpdHk9Ii4xIi8+PC9saW5lYXJHcmFkaWVudD48Y2xpcFBhdGggaWQ9InIiPjxyZWN0IHdpZHRoPSIzNSIgaGVpZ2h0PSIyMCIgcng9IjMiIGZpbGw9IiNmZmYiLz48L2NsaXBQYXRoPjxnIGNsaXAtcGF0aD0idXJsKCNyKSI+PHJlY3Qgd2lkdGg9IjAiIGhlaWdodD0iMjAiIGZpbGw9IiMzM2NjN2EiLz48cmVjdCB4PSIwIiB3aWR0aD0iMzUiIGhlaWdodD0iMjAiIGZpbGw9IiMzM2NjN2EiLz48cmVjdCB3aWR0aD0iMzUiIGhlaWdodD0iMjAiIGZpbGw9InVybCgjcykiLz48L2c+PGcgZmlsbD0iI2ZmZiIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZm9udC1mYW1pbHk9IlZlcmRhbmEsR2VuZXZhLERlamFWdSBTYW5zLHNhbnMtc2VyaWYiIHRleHQtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iIGZvbnQtc2l6ZT0iMTEwIj48dGV4dCBhcmlhLWhpZGRlbj0idHJ1ZSIgeD0iMTc1IiB5PSIxNTAiIGZpbGw9IiMwMTAxMDEiIGZpbGwtb3BhY2l0eT0iLjMiIHRyYW5zZm9ybT0ic2NhbGUoLjEpIiB0ZXh0TGVuZ3RoPSIyNTAiPjg4JTwvdGV4dD48dGV4dCB4PSIxNzUiIHk9IjE0MCIgdHJhbnNmb3JtPSJzY2FsZSguMSkiIGZpbGw9IiNmZmYiIHRleHRMZW5ndGg9IjI1MCI+ODglPC90ZXh0PjwvZz48L3N2Zz4=" alt="ISO/TS 19115-3:2023 - ISO 19115-1:2014 - SRV" /></a></td>
<td align="right">7</td>
<td align="right">1</td>
<td align="right">0</td>
<td align="left"><a href="https://github.com/eblondel/geometa"><img src="data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iNDMiIGhlaWdodD0iMjAiIHJvbGU9ImltZyIgYXJpYS1sYWJlbD0iMTAwJS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S 19115-3:2023 - ISO 19115-1:2014 - SRV" /></a></td>
<td align="right">8</td>
<td align="right">0</td>
<td align="right">1</td>
<td align="right">7</td>
</tr>
<tr class="even">
<td align="left">ISO/TS 19115-3:2023 🆕</td>
Expand Down Expand Up @@ -679,11 +679,11 @@
<td align="left">ISO 19119:2005</td>
<td align="left">Geographic Information - Service Metadata</td>
<td align="left">SRV</td>
<td align="left"><a href="https://github.com/eblondel/geometa"><img src="data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMzUiIGhlaWdodD0iMjAiIHJvbGU9ImltZyIgYXJpYS1sYWJlbD0iMzclIj48dGl0bGU+MzclPC90aXRsZT48bGluZWFyR3JhZGllbnQgaWQ9InMiIHgyPSIwIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjYmJiIiBzdG9wLW9wYWNpdHk9Ii4xIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLW9wYWNpdHk9Ii4xIi8+PC9saW5lYXJHcmFkaWVudD48Y2xpcFBhdGggaWQ9InIiPjxyZWN0IHdpZHRoPSIzNSIgaGVpZ2h0PSIyMCIgcng9IjMiIGZpbGw9IiNmZmYiLz48L2NsaXBQYXRoPjxnIGNsaXAtcGF0aD0idXJsKCNyKSI+PHJlY3Qgd2lkdGg9IjAiIGhlaWdodD0iMjAiIGZpbGw9IiNmZjBjMGMiLz48cmVjdCB4PSIwIiB3aWR0aD0iMzUiIGhlaWdodD0iMjAiIGZpbGw9IiNmZjBjMGMiLz48cmVjdCB3aWR0aD0iMzUiIGhlaWdodD0iMjAiIGZpbGw9InVybCgjcykiLz48L2c+PGcgZmlsbD0iI2ZmZiIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZm9udC1mYW1pbHk9IlZlcmRhbmEsR2VuZXZhLERlamFWdSBTYW5zLHNhbnMtc2VyaWYiIHRleHQtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iIGZvbnQtc2l6ZT0iMTEwIj48dGV4dCBhcmlhLWhpZGRlbj0idHJ1ZSIgeD0iMTc1IiB5PSIxNTAiIGZpbGw9IiMwMTAxMDEiIGZpbGwtb3BhY2l0eT0iLjMiIHRyYW5zZm9ybT0ic2NhbGUoLjEpIiB0ZXh0TGVuZ3RoPSIyNTAiPjM3JTwvdGV4dD48dGV4dCB4PSIxNzUiIHk9IjE0MCIgdHJhbnNmb3JtPSJzY2FsZSguMSkiIGZpbGw9IiNmZmYiIHRleHRMZW5ndGg9IjI1MCI+MzclPC90ZXh0PjwvZz48L3N2Zz4=" alt="ISO/TS 19139:2007 - ISO 19119:2005 - SRV" /></a></td>
<td align="right">7</td>
<td align="right">12</td>
<td align="right">0</td>
<td align="right">19</td>
<td align="left"><a href="https://github.com/eblondel/geometa"><img src="data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMzUiIGhlaWdodD0iMjAiIHJvbGU9ImltZyIgYXJpYS1sYWJlbD0iNDIlIj48dGl0bGU+NDIlPC90aXRsZT48bGluZWFyR3JhZGllbnQgaWQ9InMiIHgyPSIwIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjYmJiIiBzdG9wLW9wYWNpdHk9Ii4xIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLW9wYWNpdHk9Ii4xIi8+PC9saW5lYXJHcmFkaWVudD48Y2xpcFBhdGggaWQ9InIiPjxyZWN0IHdpZHRoPSIzNSIgaGVpZ2h0PSIyMCIgcng9IjMiIGZpbGw9IiNmZmYiLz48L2NsaXBQYXRoPjxnIGNsaXAtcGF0aD0idXJsKCNyKSI+PHJlY3Qgd2lkdGg9IjAiIGhlaWdodD0iMjAiIGZpbGw9IiNmOWFlMmMiLz48cmVjdCB4PSIwIiB3aWR0aD0iMzUiIGhlaWdodD0iMjAiIGZpbGw9IiNmOWFlMmMiLz48cmVjdCB3aWR0aD0iMzUiIGhlaWdodD0iMjAiIGZpbGw9InVybCgjcykiLz48L2c+PGcgZmlsbD0iI2ZmZiIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZm9udC1mYW1pbHk9IlZlcmRhbmEsR2VuZXZhLERlamFWdSBTYW5zLHNhbnMtc2VyaWYiIHRleHQtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iIGZvbnQtc2l6ZT0iMTEwIj48dGV4dCBhcmlhLWhpZGRlbj0idHJ1ZSIgeD0iMTc1IiB5PSIxNTAiIGZpbGw9IiNjY2MiIGZpbGwtb3BhY2l0eT0iLjMiIHRyYW5zZm9ybT0ic2NhbGUoLjEpIiB0ZXh0TGVuZ3RoPSIyNTAiPjQyJTwvdGV4dD48dGV4dCB4PSIxNzUiIHk9IjE0MCIgdHJhbnNmb3JtPSJzY2FsZSguMSkiIGZpbGw9IiMzMzMiIHRleHRMZW5ndGg9IjI1MCI+NDIlPC90ZXh0PjwvZz48L3N2Zz4=" alt="ISO/TS 19139:2007 - ISO 19119:2005 - SRV" /></a></td>
<td align="right">8</td>
<td align="right">11</td>
<td align="right">1</td>
<td align="right">18</td>
</tr>
<tr class="even">
<td align="left">ISO/TS 19139:2007</td>
Expand Down
Loading

0 comments on commit a1ad117

Please sign in to comment.