ISOCitation
ISOCitation
Object of R6Class for modelling an ISO Citation
R6Class object.
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
geometa::geometaLogger -> geometa::ISOAbstractObject -> geometa::ISOAbstractCitation -> ISOCitation
titletitle
alternateTitlealternate title
datedate list
editionedition
editionDateedition date
identifieridentifier list
citedResponsiblePartylist of cited responsible parties
presentationFormlist of presentation forms
seriesseries
otherCitationDetailsother citation details
collectiveTitlecollective title (for ISO 19139)
ISBNISBN
ISSNISSN
onlineResourceonline resource (for ISO 19115-3)
graphicgraphic (for ISO 19115-3)
Inherited methods
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
ISOCitation$new(xml = NULL)xmlobject of class XMLInternalNode-class
setTitle()Set title
ISOCitation$setTitle(title, locales = NULL)titletitle
localeslist of localized names. Default is NULL
addAlternateTitle()Adds alternate title
ISOCitation$addAlternateTitle(alternateTitle, locales = NULL)alternateTitlealternate title
localeslist of localized titles. Default is NULL
TRUE if added, FALSE otherwise
delAlternateTitle()Deletes alternate title
ISOCitation$delAlternateTitle(alternateTitle, locales = NULL)alternateTitlealternate title
localeslist of localized titles. Default is NULL
TRUE if deleted, FALSE otherwise
addDate()Adds date
ISOCitation$addDate(date)datedate
TRUE if added, FALSE otherwise
setEdition()Set edition
ISOCitation$setEdition(edition, locales = NULL)editionedition
localeslist of localized editions. Default is NULL
setEditionDate()Sets the edition date, either an ISODate object containing date and dateType or
a simple R date "POSIXct"/"POSIXt" object. For thesaurus citations, an ISODate
should be used while for the general citation of ISODataIdentification,
a simple R date should be used.
ISOCitation$setEditionDate(editionDate)
addIdentifier()Adds identifier
ISOCitation$addIdentifier(identifier)identifieridentifier, object of class ISOMetaIdentifier
localeslist of localized identifiers. Default is NULL
TRUE if added, FALSE otherwise
delIdentifier()Deletes identifier
ISOCitation$delIdentifier(identifier)identifieridentifier, object of class ISOMetaIdentifier
localeslist of localized identifiers. Default is NULL
TRUE if deleted, FALSE otherwise
addCitedResponsibleParty()Adds cited responsible party
ISOCitation$addCitedResponsibleParty(rp)rpcited responsible party, object of class ISOResponsibleParty (in ISO 19139) or ISOResponsibility (in ISO 19115-3)
localeslist of localized responsible parties. Default is NULL
TRUE if added, FALSE otherwise
delCitedResponsibleParty()Deletes cited responsible party
ISOCitation$delCitedResponsibleParty(rp)rpcited responsible party, object of class ISOResponsibleParty (in ISO 19139) or ISOResponsibility (in ISO 19115-3)
localeslist of localized responsible parties. Default is NULL
TRUE if deleted, FALSE otherwise
addPresentationForm()Adds presentation form
ISOCitation$addPresentationForm(presentationForm)presentationFormpresentation form, object of class ISOPresentationForm or
character among values returned by ISOPresentationForm$values()
TRUE if added, FALSE otherwise
delPresentationForm()Deletes presentation form
ISOCitation$delPresentationForm(presentationForm)presentationFormpresentation form, object of class ISOPresentationForm or
character among values returned by ISOPresentationForm$values()
TRUE if deleted, FALSE otherwise
setSeries()Set series
ISOCitation$setSeries(series)seriesobject of class ISOCitationSeries
setOtherCitationDetails()Set other citation details
ISOCitation$setOtherCitationDetails(otherCitationDetails, locales = NULL)otherCitationDetailsother citation details
localeslist of localized other citation details. Default is NULL
setCollectiveTitle()Set collective title
ISOCitation$setCollectiveTitle(collectiveTitle, locales = NULL)collectiveTitlecollective title
localeslist of localized titles. Default is NULL
setISBN()Set ISBN
ISOCitation$setISBN(isbn)isbnisbn
setISSN()Set ISSN
ISOCitation$setISSN(issn)issnissn
addOnlineResource()Adds online resource
ISOCitation$addOnlineResource(onlineResource)onlineResourceobject of class ISOOnlineResource
TRUE if added, FALSE otherwise
delOnlineResource()Deletes online resource
ISOCitation$delOnlineResource(onlineResource)onlineResourceobject of class ISOOnlineResource
TRUE if added, FALSE otherwise
addGraphic()Adds graphic
ISOCitation$addGraphic(graphic)graphicobject of class ISOBrowseGraphic
TRUE if added, FALSE otherwise
delGraphic()Adds graphic
ISOCitation$delGraphic(graphic)graphicobject of class ISOBrowseGraphic
TRUE if deleted, FALSE otherwise
clone()The objects of this class are cloneable with this method.
ISOCitation$clone(deep = FALSE)deepWhether to make a deep clone.
- ISO 19139 https://schemas.isotc211.org/19139/-/gmd/1.0/gmd/#element_CI_Citation
- ISO 19115-3 https://schemas.isotc211.org/19115/-3/cit/2.0/cit/#element_CI_Citation
#create ISOCitation
md <- ISOCitation$new()
md$setTitle("sometitle")
md$setEdition("1.0")
md$setEditionDate(ISOdate(2015,1,1))
md$addIdentifier(ISOMetaIdentifier$new(code = "identifier"))
md$addPresentationForm("mapDigital")
#add a cited responsible party
rp <- ISOResponsibleParty$new()
rp$setIndividualName("someone")
rp$setOrganisationName("somewhere")
rp$setPositionName("someposition")
rp$setRole("pointOfContact")
contact <- ISOContact$new()
phone <- ISOTelephone$new()
phone$setVoice("myphonenumber")
phone$setFacsimile("myfacsimile")
contact$setPhone(phone)
address <- ISOAddress$new()
address$setDeliveryPoint("theaddress")
address$setCity("thecity")
address$setPostalCode("111")
address$setCountry("France")
address$setEmail("someone@theorg.org")
contact$setAddress(address)
res <- ISOOnlineResource$new()
res$setLinkage("http://www.somewhereovertheweb.org")
res$setName("somename")
contact$setOnlineResource(res)
rp$setContactInfo(contact)
md$addCitedResponsibleParty(rp)
xml <- md$encode()
Run the code above in your browser using DataLab