| geoflow_subject | R Documentation |
This class models a subject
R6Class object.
geoflow_subject
Object of R6Class for modelling a subject
keysubject key
namesubject name
urisubject URI
datessubject date(s)
keywordssubject keywords
new()Initializes an object of class geoflow_subject
geoflow_subject$new(str = NULL, kvp = NULL)
stra character string to initialize from, using key-based syntax
kvpan object of class geoflow_kvp
setKey()Sets subject key
geoflow_subject$setKey(key)
keykey
setName()Sets subject name
geoflow_subject$setName(name)
namename
setUri()Sets subject URI
geoflow_subject$setUri(uri)
uriuri
setDate()Sets date
geoflow_subject$setDate(dateType, date)
dateTypetype of date
datedate
addKeyword()Adds a keyword
geoflow_subject$addKeyword(keyword, uri = NULL)
keywordkeyword
urikeyword URI. Default is NULL
getKeywords()Get keywords associated with the subject
geoflow_subject$getKeywords(pretty = FALSE)
prettywhether the output has to prettyfied as data.frame
the list of keywords as list of geoflow_keyword objects or data.frame
clone()The objects of this class are cloneable with this method.
geoflow_subject$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
## Not run:
subject <- geoflow_subject$new()
subject$setKey("theme")
subject$setName("General")
subject$setUri("http://somelink/general")
subject$addKeyword("keyword1", "http://somelink/keyword1")
subject$addKeyword("keyword2", "http://somelink/keyword2")
subject$addKeyword("keyword3", "http://somelink/keyword3")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.