IDigBio API: Difference between revisions

Jump to navigation Jump to search
2,576 bytes removed ,  22 May 2014
Moving sections that need revision to Talk page.
(Moving sections that need revision to Talk page.)
Line 96: Line 96:


The [[iDigBio API Examples]] page shows how to drill down into this specimen record and retrieve an image associated with the specimen, as well as how one might search to locate the specimen record in the first place.
The [[iDigBio API Examples]] page shows how to drill down into this specimen record and retrieve an image associated with the specimen, as well as how one might search to locate the specimen record in the first place.
== Endpoint Properties ==
  ''This section needs to be moved to specification page and re-written -dstoner ''
The iDigBio API tries to follow the REST paradigm's HATEOAS (Hypermedia as the Engine of Application State) model, which basically means that within each API endpoint we provide a list of relevant links to further API actions. This list typically is stored in "idigbio:links"
Other system level property names include
For Entity Endpoints:
*[[wikipedia:HTTP_ETag|etag]] - the opaque identifier assigned to a specific version of a resource found at a URL
*dateModified - The date the entity was modified
*version - The entity's version number
*type - The entity's type
*uuid - The entity's uuid
*siblings - Any siblings the entity may have as a dictionary of uuids
*recordIds - A list of lookup keys for the entity
*data - The entity's encapsulated data element
For Collection Endpoints:
*items - the list of items in the collection
*itemCount - the number of total items in the collection
== Entity Data ==
  ''This section needs to be re-written, moved to specification page, or deleted. -dstoner ''
The data element for each entity can include any number of key-value pairs containing properties of the entity, including potentially values that are themselves lists or dictionaries. Typical key namespaces that might appear in each type are (in order of decreasing usefulness):
*[[CollectionObject Bag of Terms|Records]]: typically contains Darwin Core elements ( http://rs.tdwg.org/dwc/terms/index.htm ) describing a physical specimen, may also contain custom elements or elements defined by other standards. See the complete list of terms [[CollectionObject Bag of Terms|here]].
*[[Media Bag of Terms|Mediarecords]]: typically contains Audubon Core elements ( http://terms.gbif.org/wiki/Audubon_Core_Term_List_(1.0_normative) ) describing a media capture event, may also contain custom elements or elements defined by other standards. See the complete list of terms [[Media Bag of Terms|here]].
*Publishers: A top level entity for the data ingestion process, each publisher contains metadata about a publishing location such as an IPT installation or Symbiota portal.
*Recordsets: An entity largely derived from the publisher metadata. These serve as the join point between multiple data files for single collection, and all records and mediarecords in iDigBio are expected to be associated with a recordset that links them to a source.
*All other entities exposed via the api are either internal only concepts with no fixed definition, or are unused.


== Searching iDigBio ==
== Searching iDigBio ==
1,554

edits

Navigation menu