generateIdentifier | R Documentation |
Creating objects requires use of a unique persistent identifier (pid) when calling the create function. Member Nodes may optionally provide the generateIdentifier service to issue such identifiers, ensuring that they are unique. Each identifier conforms to an identifier scheme, which determines the syntax and rules for how the identifier that is generated is formatted. All Member Nodes that implement this method must support the UUID scheme, but may also support other schemes such as DOI and others.
generateIdentifier(x, ...) ## S4 method for signature 'MNode' generateIdentifier(x, scheme = "UUID", fragment = NULL)
x |
The MNode instance on which the object will be created |
... |
(Not yet used.) |
scheme |
The identifier scheme to be used, such as DOI, UUID, etc. |
fragment |
An optional fragment to be prepended to the identifier for schemes that support it (not all do). |
In the version 2.0 library and higher, this operation can utilize an
'dataone_token' option to provide credentials for write operations in DataONE.
The authentication token is obtained from DataONE (see your profile on https://search.dataone.org).
See the vignette("dataone-overview")
for details.
Alternatively, the version 1.0 approach of using an X.509 certificate in a default location of the file
system can also be used. This certificate provides authentication credentials from
CILogon https://cilogon.org/?skin=DataONE. See vignette("dataone-overview")
for details.
the character string of the generated unique identifier
https://purl.dataone.org/architecture/apis/MN_APIs.html#MNStorage.generateIdentifier
## Not run: library(dataone) cn <- CNode("STAGING") mn <- getMNode(cn, "urn:node:mnStageUCSB2") newid <- generateIdentifier(mn, "UUID") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.