| ISOCitation {geometa} | R Documentation |
ISOCitation
Description
ISOCitation
ISOCitation
Format
R6Class object.
Value
Object of R6Class for modelling an ISO Citation
Super classes
geometa::geometaLogger -> geometa::ISOAbstractObject -> ISOCitation
Public fields
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
ISBNISBN
ISSNISSN
Methods
Public methods
Inherited methods
geometa::geometaLogger$ERROR()geometa::geometaLogger$INFO()geometa::geometaLogger$WARN()geometa::ISOAbstractObject$addFieldAttrs()geometa::ISOAbstractObject$addListElement()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$validate()geometa::ISOAbstractObject$wrapBaseElement()
Method new()
Initializes object
Usage
ISOCitation$new(xml = NULL)
Arguments
xmlobject of class XMLInternalNode-class
Method setTitle()
Set title
Usage
ISOCitation$setTitle(title, locales = NULL)
Arguments
titletitle
localeslist of localized names. Default is
NULL
Method setAlternateTitle()
Set alternate title
Usage
ISOCitation$setAlternateTitle(alternateTitle, locales = NULL)
Arguments
alternateTitlealternate title
localeslist of localized names. Default is
NULL
Method addAlternateTitle()
Adds alternate title
Usage
ISOCitation$addAlternateTitle(alternateTitle, locales = NULL)
Arguments
alternateTitlealternate title
localeslist of localized titles. Default is
NULL
Returns
TRUE if added, FALSE otherwise
Method delAlternateTitle()
Deletes alternate title
Usage
ISOCitation$delAlternateTitle(alternateTitle, locales = NULL)
Arguments
alternateTitlealternate title
localeslist of localized titles. Default is
NULL
Returns
TRUE if deleted, FALSE otherwise
Method addDate()
Adds date
Usage
ISOCitation$addDate(date)
Arguments
datedate
Returns
TRUE if added, FALSE otherwise
Method setEdition()
Set edition
Usage
ISOCitation$setEdition(edition, locales = NULL)
Arguments
editionedition
localeslist of localized editions. Default is
NULL
Method 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.
Usage
ISOCitation$setEditionDate(editionDate)
Arguments
Method setIdentifier()
Set identifier
Usage
ISOCitation$setIdentifier(identifier)
Arguments
identifieridentifier, object of class ISOMetaIdentifier
Method addIdentifier()
Adds identifier
Usage
ISOCitation$addIdentifier(identifier)
Arguments
identifieridentifier, object of class ISOMetaIdentifier
localeslist of localized identifiers. Default is
NULL
Returns
TRUE if added, FALSE otherwise
Method delIdentifier()
Deletes identifier
Usage
ISOCitation$delIdentifier(identifier)
Arguments
identifieridentifier, object of class ISOMetaIdentifier
localeslist of localized identifiers. Default is
NULL
Returns
TRUE if deleted, FALSE otherwise
Method setCitedResponsibleParty()
Set cited responsible party
Usage
ISOCitation$setCitedResponsibleParty(rp)
Arguments
rpcited responsible party, object of class ISOResponsibleParty
Method addCitedResponsibleParty()
Adds cited responsible party
Usage
ISOCitation$addCitedResponsibleParty(rp)
Arguments
rpcited responsible party, object of class ISOResponsibleParty
localeslist of localized responsible parties. Default is
NULL
Returns
TRUE if added, FALSE otherwise
Method delCitedResponsibleParty()
Deletes cited responsible party
Usage
ISOCitation$delCitedResponsibleParty(rp)
Arguments
rpcited responsible party, object of class ISOResponsibleParty
localeslist of localized responsible parties. Default is
NULL
Returns
TRUE if deleted, FALSE otherwise
Method setPresentationForm()
Sets presentation form
Usage
ISOCitation$setPresentationForm(presentationForm)
Arguments
presentationFormpresentation form, object of class ISOPresentationForm or character among values returned by
ISOPresentationForm$values()
Method addPresentationForm()
Adds presentation form
Usage
ISOCitation$addPresentationForm(presentationForm)
Arguments
presentationFormpresentation form, object of class ISOPresentationForm or character among values returned by
ISOPresentationForm$values()
Returns
TRUE if added, FALSE otherwise
Method delPresentationForm()
Deletes presentation form
Usage
ISOCitation$delPresentationForm(presentationForm)
Arguments
presentationFormpresentation form, object of class ISOPresentationForm or character among values returned by
ISOPresentationForm$values()
Returns
TRUE if deleted, FALSE otherwise
Method setSeries()
Set series
Usage
ISOCitation$setSeries(series)
Arguments
seriesobject of class ISOCitationSeries
Method setOtherCitationDetails()
Set other citation details
Usage
ISOCitation$setOtherCitationDetails(otherCitationDetails, locales = NULL)
Arguments
otherCitationDetailsother citation details
localeslist of localized other citation details. Default is
NULL
Method setCollectiveTitle()
Set collective title
Usage
ISOCitation$setCollectiveTitle(collectiveTitle, locales = NULL)
Arguments
collectiveTitlecollective title
localeslist of localized titles. Default is
NULL
Method setISBN()
Set ISBN
Usage
ISOCitation$setISBN(isbn)
Arguments
isbnisbn
Method setISSN()
Set ISSN
Usage
ISOCitation$setISSN(issn)
Arguments
issnissn
Method clone()
The objects of this class are cloneable with this method.
Usage
ISOCitation$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
Author(s)
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
References
ISO 19115:2003 - Geographic information – Metadata
Examples
#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()