ISOKeywords | R Documentation |
ISOKeywords
ISOKeywords
R6Class
object.
Object of R6Class
for modelling a ISO set of keywords
geometa::geometaLogger
-> geometa::ISOAbstractObject
-> ISOKeywords
keyword
keyword
type
type
thesaurusName
thesaurus name
geometa::geometaLogger$ERROR()
geometa::geometaLogger$INFO()
geometa::geometaLogger$WARN()
geometa::ISOAbstractObject$addFieldAttrs()
geometa::ISOAbstractObject$addListElement()
geometa::ISOAbstractObject$checkMetadataStandardCompliance()
geometa::ISOAbstractObject$contains()
geometa::ISOAbstractObject$createLocalisedProperty()
geometa::ISOAbstractObject$decode()
geometa::ISOAbstractObject$delListElement()
geometa::ISOAbstractObject$encode()
geometa::ISOAbstractObject$getClass()
geometa::ISOAbstractObject$getClassName()
geometa::ISOAbstractObject$getNamespaceDefinition()
geometa::ISOAbstractObject$isDocument()
geometa::ISOAbstractObject$isFieldInheritedFrom()
geometa::ISOAbstractObject$print()
geometa::ISOAbstractObject$save()
geometa::ISOAbstractObject$setAttr()
geometa::ISOAbstractObject$setCodeList()
geometa::ISOAbstractObject$setCodeListValue()
geometa::ISOAbstractObject$setCodeSpace()
geometa::ISOAbstractObject$setHref()
geometa::ISOAbstractObject$setId()
geometa::ISOAbstractObject$setIsNull()
geometa::ISOAbstractObject$setValue()
geometa::ISOAbstractObject$stopIfMetadataStandardIsNot()
geometa::ISOAbstractObject$validate()
geometa::ISOAbstractObject$wrapBaseElement()
new()
Initializes object
ISOKeywords$new(xml = NULL)
xml
object of class XMLInternalNode-class
addKeyword()
Adds keyword
ISOKeywords$addKeyword(keyword, locales = NULL)
keyword
keyword
locales
list of localized texts. Default is NULL
TRUE
if added, FALSe
otherwise
delKeyword()
Deletes keyword
ISOKeywords$delKeyword(keyword, locales = NULL)
keyword
keyword
locales
list of localized texts. Default is NULL
TRUE
if deleted, FALSe
otherwise
setKeywordType()
Set keyword type
ISOKeywords$setKeywordType(keywordType)
keywordType
object of class ISOKeywordType or any character among
values returned by ISOKeywordType$values()
setThesaurusName()
Set thesaurus name
ISOKeywords$setThesaurusName(thesaurusName)
thesaurusName
object of class ISOCitation
clone()
The objects of this class are cloneable with this method.
ISOKeywords$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
- ISO 19139 https://schemas.isotc211.org/19139/-/gmd/1.0/gmd/#element_MD_Keywords
- ISO 19115-3 https://schemas.isotc211.org/19115/-3/mri/1.0/mri/#element_MD_Keywords
#a basic keyword set
md <- ISOKeywords$new()
md$addKeyword("keyword1")
md$addKeyword("keyword2")
md$setKeywordType("theme")
th <- ISOCitation$new()
th$setTitle("General")
md$setThesaurusName(th)
xml <- md$encode()
#a keyword set with anchors
md <- ISOKeywords$new()
kwd1 <- ISOAnchor$new(
name = "keyword1",
href = "http://myvocabulary.geometa/keyword1"
)
md$addKeyword(kwd1)
kwd2 <- ISOAnchor$new(
name = "keyword2",
href = "http://myvocabulary.geometa/keyword2"
)
md$addKeyword(kwd2)
md$setKeywordType("theme")
xml <- md$encode()
#Example for INSPIRE (GEMET Spatial Data Theme)
inspire_kwd <- ISOKeywords$new()
anc1 <- ISOAnchor$new(
name = "Environmental monitoring facilities",
href = "http://inspire.ec.europa.eu/theme/ef"
)
inspire_kwd$addKeyword(anc1)
inspire_kwd$setKeywordType("theme")
th <- ISOCitation$new()
th$setTitle(
ISOAnchor$new(
name = "GEMET - INSPIRE themes, version 1.0",
href="http://www.eionet.europa.eu/gemet/inspire_themes"
)
)
inspire_date <- ISODate$new()
inspire_date$setDate(as.Date("2008-06-01"))
inspire_date$setDateType("publication")
th$addDate(inspire_date)
inspire_kwd$setThesaurusName(th)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.