generateIdentifier {dataone}R Documentation

Get a unique identifier that is generated by the Member Node repository and guaranteed to be unique.


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)



The MNode instance on which the object will be created


(Not yet used.)


The identifier scheme to be used, such as DOI, UUID, etc.


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 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 See vignette("dataone-overview") for details.


the character string of the generated unique identifier

See Also


## Not run: 
cn <- CNode("STAGING")
mn <- getMNode(cn, "urn:node:mnStageUCSB2")
newid <- generateIdentifier(mn, "UUID")

## End(Not run)

[Package dataone version 2.2.1 Index]