Task: Connect to the DataONE production environment, retrieve the list of Object formats, and print out the list as a table.
First, load the dataone
R package:
library(dataone)
Establish a connection to the CN in production environment:
cn <- CNode() # See ?CNode for other environments
List the formats in that environment with listFormats
:
listFormats(cn)
ID | Name | Type | MediaType | Extension |
---|---|---|---|---|
<chr> | <chr> | <chr> | <chr> | <chr> |
eml://ecoinformatics.org/eml-2.0.0 | Ecological Metadata Language, version 2.0.0 | METADATA | text/xml | xml |
eml://ecoinformatics.org/eml-2.0.1 | Ecological Metadata Language, version 2.0.1 | METADATA | text/xml | xml |
eml://ecoinformatics.org/eml-2.1.0 | Ecological Metadata Language, version 2.1.0 | METADATA | text/xml | xml |
eml://ecoinformatics.org/eml-2.1.1 | Ecological Metadata Language, version 2.1.1 | METADATA | text/xml | xml |
https://eml.ecoinformatics.org/eml-2.2.0 | Ecological Metadata Language, version 2.2.0 | METADATA | text/xml | xml |
http://www.esri.com/metadata/esriprof80.dtd | ESRI Profile of the Content Standard for Digital Geospatial Metadata, March 2003 | METADATA | text/xml | xml |
FGDC-STD-001.1-1999 | Content Standard for Digital Geospatial Metadata, Biological Data Profile, version 001.1-1999 | METADATA | text/xml | xml |
FGDC-STD-001.2-1999 | Content Standard for Digital Geospatial Metadata, Metadata Profile for Shoreline Data, version 001.2-1999 | METADATA | text/xml | xml |
FGDC-STD-001-1998 | Content Standard for Digital Geospatial Metadata, version 001-1998 | METADATA | text/xml | xml |
INCITS-453-2009 | North American Profile of ISO 19115: 2003 Geographic Information - Metadata | METADATA | text/xml | xml |
http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2 | NetCDF Markup Language, version 2.2 | METADATA | application/netcdf | nc |
CF-1.0 | NetCDF Climate and Forecast Metadata Convention, version 1.0 | DATA | application/netcdf | nc |
CF-1.1 | NetCDF Climate and Forecast Metadata Convention, version 1.1 | DATA | application/netcdf | nc |
CF-1.2 | NetCDF Climate and Forecast Metadata Convention, version 1.2 | DATA | application/netcdf | nc |
CF-1.3 | NetCDF Climate and Forecast Metadata Convention, version 1.3 | DATA | application/netcdf | nc |
CF-1.4 | NetCDF Climate and Forecast Metadata Convention, version 1.4 | DATA | application/netcdf | nc |
http://www.cuahsi.org/waterML/1.0/ | Water Markup Language, version 1.0 | METADATA | text/xml | xml |
http://www.cuahsi.org/waterML/1.1/ | Water Markup Language, version 1.0 | METADATA | text/xml | xml |
http://www.loc.gov/METS/ | Metadata Encoding and Transmission Standard, version 1 | METADATA | text/xml | xml |
netCDF-3 | Network Common Data Format, version 3 | DATA | application/netcdf | nc |
netCDF-4 | Network Common Data Format, version 4 | DATA | application/netcdf | nc |
text/plain | Plain Text | DATA | text/plain | txt |
text/csv | Comma Separated Values Text | DATA | text/csv | csv |
image/bmp | Bitmap Image File | DATA | image/bmp | bmp |
image/gif | Graphics Interchange Format | DATA | image/gif | gif |
image/jp2 | JPEG 2000 | DATA | image/jp2 | jpg |
image/jpeg | JPEG | DATA | image/jpeg | jpg |
image/png | Portable Network Graphics | DATA | image/png | png |
image/svg+xml | Scalable Vector Graphics | DATA | image/svg+xml | svg |
image/tiff | Tagged Image File Format | DATA | image/tiff | tiff |
⋮ | ⋮ | ⋮ | ⋮ | ⋮ |
http://www.icpsr.umich.edu/DDI | Data Documentation Initiative, Codebook version 2.1 | METADATA | text/xml | xml |
http://purl.org/ornl/schema/mercury/terms/v1.0 | Oak Ridge National Lab Mercury Metadata version 1.0 | METADATA | text/xml | xml |
http://datacite.org/schema/kernel-3.0 | DataCite Metadata Schema version 3.0 | METADATA | text/xml | xml |
http://datacite.org/schema/kernel-3.1 | DataCite Metadata Schema version 3.1 | METADATA | text/xml | xml |
http://www.nexml.org/2009 | NeXML 2009 | DATA | text/xml | xml |
http://ns.dataone.org/metadata/schema/onedcx/v1.0 | DataONE Dublin Core Extended v1.0 | METADATA | text/xml | xml |
http://docs.annotatorjs.org/en/v1.2.x/annotation-format.html | AnnotatorJS 1.2.x Annotation model | RESOURCE | application/json | json |
http://www.isotc211.org/2005/gmd | Geographic MetaData (GMD) Extensible Markup Language | METADATA | text/xml | xml |
http://www.isotc211.org/2005/gmd-noaa | NOAA Variant Geographic MetaData (GMD) Extensible Markup Language | METADATA | text/xml | xml |
http://www.isotc211.org/2005/gmd-pangaea | PANGAEA Variant Geographic MetaData (GMD) Extensible Markup Language | METADATA | text/xml | xml |
application/bagit-097 | BagIt File Packaging Format Version 0.97 | DATA | NA | NA |
text/tsv | Tab Separated Values Text | DATA | text/tab-separated-values | tsv |
application/R | R programming language script | DATA | text/x-rsrc | R |
application/MATLAB | MATLAB programming language script | DATA | text/x-matlab | m |
application/SAS | SAS programming language script | DATA | text/x-sas | sas |
application/vnd.google-earth.kmz | Google Earth Keyhole Markup Language (KML) Compressed archive | DATA | application/vnd.google-earth.kmz | kmz |
application/MATLAB-v7.3 | Mathworks MATLAB version 7.3 (R2006b or later) binary file - HDF5 compatible | DATA | application/octet-stream | mat |
application/MATLAB-v7 | Mathworks MATLAB version 7 (R14 or later) binary file | DATA | application/octet-stream | mat |
application/MATLAB-v6 | Mathworks MATLAB version 6 (R8 or later) binary file | DATA | application/octet-stream | mat |
application/MATLAB-v4 | Mathworks MATLAB version 4 binary file | DATA | application/octet-stream | mat |
application/json | JavaScript Object Notation (JSON) file | DATA | application/json | json |
application/json-ld | JavaScript Object Notation (JSON) Linked Data file | DATA | application/ld+json | json |
text/markdown | Markdown file (pandoc markdown compatible) | DATA | text/markdown | md |
text/x-rmarkdown | R Markdown file (pandoc markdown compatible) | DATA | text/markdown | Rmd |
image/x-raw | RAW digital sensor image file | DATA | application/octet-stream | raw |
http://www.openarchives.org/OAI/2.0/oai_dc/ | OAI-PMH Dublin Core v2.0, with online related resource | METADATA | text/xml | xml |
application/x-hdf | Hierarchical Data Format version 4 (HDF4) | DATA | application/x-hdf | h4 |
application/x-hdf5 | Hierarchical Data Format version 5 (HDF5) | DATA | application/x-hdf5 | h5 |
https://purl.dataone.org/collections-1.0.0 | Dataset collections v1.0.0 | METADATA | text/xml | xml |
https://purl.dataone.org/portals-1.0.0 | Dataset portals v1.0.0 | METADATA | text/xml | xml |