Difference between revisions of "OJ Break v2 Media Reference"

From xBio:D Wiki
Jump to navigation Jump to search
(Elements)
(API Information and Access)
 
(7 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
'''Introduction'''
 
'''Introduction'''
  
OJ_Break is the name of the xBio:D RESTful API service which enables the discovery of data within the xBio:D database. The API can respond with JavaScript Object Notation (JSON), XML, or JSON with padding (JSONP) and accepts HTTP GET and POST requests indiscriminately. The backend of the API is written in Oracle's PL/SQL database language, which is fast but often inflexible, while a Python presentation layer mitigates request handling and authentication.
+
OJ_Break is the name of the xBio:D RESTful API service which enables the discovery of data within the xBio:D database. The API can respond with HTML, JSON, XML, or JSON with padding (JSONP) and accepts HTTP GET and POST requests indiscriminately. The backend of the API is written in Oracle's PL/SQL database language, which is fast but often inflexible, while a Python presentation layer mitigates request handling and authentication.
  
 
OJ_Break Version 2 is a new and improved edition of the work started in Version 1. Version 2 introduces a completely restructured and standardized data model to further enhance the functionality of the xBio:D database.
 
OJ_Break Version 2 is a new and improved edition of the work started in Version 1. Version 2 introduces a completely restructured and standardized data model to further enhance the functionality of the xBio:D database.
Line 8: Line 8:
 
This page specifies the data defined by OJ_Break Version 2, more precisely those that are defined by the '''Media''' data domain. To get information on any of the other data domains defined in OJ_Break Version 2, visit the [[#See_also|See also]] section.
 
This page specifies the data defined by OJ_Break Version 2, more precisely those that are defined by the '''Media''' data domain. To get information on any of the other data domains defined in OJ_Break Version 2, visit the [[#See_also|See also]] section.
  
 +
 +
[[File:OJ_Break Data Model - Media.png|none|frame|Media Data Model]]
  
 
== Media Data Type Glossary ==
 
== Media Data Type Glossary ==
 
=== Classes ===
 
=== Classes ===
==== ImageExtended (extends [[#MediaExtended_.28extends_MediaBasic.29|MediaExtended]]) ====
+
==== ImageExtended (extends [[#MediaExtended (extends MediaBasic)|MediaExtended]]) ====
 
* ''thumb'': URL
 
* ''thumb'': URL
 
* ''raw'': URL
 
* ''raw'': URL
  
==== LocalityImageExtended (realizes [[#ImageExtended_.28extends_MediaExtended.29|ImageExtended]]) ====
+
==== LocalityImageExtended (realizes [[#ImageExtended (extends MediaExtended)|ImageExtended]]) ====
 
* ''locality'': [[OJ_Break v2 Locality Reference#LocalityBasic|LocalityBasic]]
 
* ''locality'': [[OJ_Break v2 Locality Reference#LocalityBasic|LocalityBasic]]
  
 
==== MediaBasic ====
 
==== MediaBasic ====
* ''media_id'': ''[[#media_id|media_id]]'' element
+
* ''media_id'': ''[[#media_id|media_id]]''
* ''media_type'': ''[[#media_type|media_type]]'' element
+
* ''media_type'': ''[[#media_type|media_type]]''
* ''media_url'': ''[[#media_url|media_url]]'' element
+
* ''media_url'': ''[[#media_url|media_url]]''
* ''media_source'': ''[[#media_source|media_source]]'' element
+
* ''media_source'': ''[[#media_source|media_source]]''
* ''public'': ''[[#public|public]]'' element
+
* ''public'': ''[[#public|public]]''
  
 
==== MediaExtended (extends [[#MediaBasic|MediaBasic]]) ====
 
==== MediaExtended (extends [[#MediaBasic|MediaBasic]]) ====
* ''caption'': ''[[#caption|caption]]'' element
+
* ''caption'': ''[[#caption|caption]]''
* ''copyright'': ''[[#copyright|copyright]]'' element
+
* ''copyright'': ''[[#copyright|copyright]]''
* ''license'': ''[[#license|license]]'' element
+
* ''license'': ''[[#license|license]]''
* ''enterer'': ''[[#enterer|enterer]]'' element
+
* ''enterer'': ''[[#enterer|enterer]]''
  
==== OccurrenceImageExtended (realizes [[#ImageExtended_.28extends_MediaExtended.29|ImageExtended]]) ====
+
==== OccurrenceImageExtended (realizes [[#ImageExtended (extends MediaExtended)|ImageExtended]]) ====
* ''occurrence'': [[OJ_Break v2 Occurrence Reference#OccurrenceTrimmed|OccurrenceTrimmed]]
+
* ''occurrence'': [[OJ_Break v2 Occurrence Reference#OccurrenceTrimmed (extends OccurrenceBasic)|OccurrenceTrimmed]]
* ''parts'': array of ''[[#part|part]]'' element
+
* ''parts'': array of ''[[#part|part]]''
 
* ''angle'': ''[[#angle|angle]]''
 
* ''angle'': ''[[#angle|angle]]''
* ''technique'': ''[[#technique|technique]]'' element
+
* ''technique'': ''[[#technique|technique]]''
 
* ''notes'': String
 
* ''notes'': String
  
==== OccurrenceRecordingExtended (realizes [[#MediaExtended_.28extends_MediaBasic.29|MediaExtended]]) ====
+
==== OccurrenceRecordingExtended (realizes [[#MediaExtended (extends MediaBasic)|MediaExtended]]) ====
 
* ''occurrence'': [[OJ_Break v2 Occurrence Reference#OccurrenceTrimmed|OccurrenceTrimmed]]
 
* ''occurrence'': [[OJ_Break v2 Occurrence Reference#OccurrenceTrimmed|OccurrenceTrimmed]]
  
==== TaxonImageExtended (realizes [[#ImageExtended_.28extends_MediaExtended.29|ImageExtended]]) ====
+
==== TaxonImageExtended (realizes [[#ImageExtended (extends MediaExtended)|ImageExtended]]) ====
 
* ''taxon'': [[OJ_Break v2 Taxon Reference#TaxonBasic|TaxonBasic]]
 
* ''taxon'': [[OJ_Break v2 Taxon Reference#TaxonBasic|TaxonBasic]]
  
==== VideaExtended (realizes [[#ImageExtended_.28extends_MediaExtended.29|ImageExtended]]) ====
+
==== VideaExtended (realizes [[#ImageExtended extends MediaExtended)|ImageExtended]]) ====
 
* ''taxon'': [[OJ_Break v2 Taxon Reference#TaxonBasic|TaxonBasic]]
 
* ''taxon'': [[OJ_Break v2 Taxon Reference#TaxonBasic|TaxonBasic]]
  
Line 66: Line 68:
 
==== media_url ====
 
==== media_url ====
 
URL - The location to the media file.
 
URL - The location to the media file.
 +
==== part ====
 +
String - A description of the body part of the specimen the image shows.
 +
 
==== public ====
 
==== public ====
Boolean_flag -
+
Boolean_flag - A flag that specifies whether or not the media is public.
 
==== technique ====
 
==== technique ====
 
String - A description of the method by which the media was taken.
 
String - A description of the method by which the media was taken.
Line 82: Line 87:
 
* [[OJ_Break v2 Occurrence Reference|Occurrence]]
 
* [[OJ_Break v2 Occurrence Reference|Occurrence]]
 
* [[OJ_Break v2 Search Reference|Search]]
 
* [[OJ_Break v2 Search Reference|Search]]
 +
* [[OJ_Break v2 Taxon Reference|Taxon]]

Latest revision as of 16:38, 9 June 2015

Introduction

OJ_Break is the name of the xBio:D RESTful API service which enables the discovery of data within the xBio:D database. The API can respond with HTML, JSON, XML, or JSON with padding (JSONP) and accepts HTTP GET and POST requests indiscriminately. The backend of the API is written in Oracle's PL/SQL database language, which is fast but often inflexible, while a Python presentation layer mitigates request handling and authentication.

OJ_Break Version 2 is a new and improved edition of the work started in Version 1. Version 2 introduces a completely restructured and standardized data model to further enhance the functionality of the xBio:D database.

API Information and Access

This page specifies the data defined by OJ_Break Version 2, more precisely those that are defined by the Media data domain. To get information on any of the other data domains defined in OJ_Break Version 2, visit the See also section.


Media Data Model

Media Data Type Glossary

Classes

ImageExtended (extends MediaExtended)

  • thumb: URL
  • raw: URL

LocalityImageExtended (realizes ImageExtended)

MediaBasic

MediaExtended (extends MediaBasic)

OccurrenceImageExtended (realizes ImageExtended)

OccurrenceRecordingExtended (realizes MediaExtended)

TaxonImageExtended (realizes ImageExtended)

VideaExtended (realizes ImageExtended)

Elements

angle

String - A description of the angle the media was taken.

caption

String - A summary of the media.

copyright

String - Copyright information.

enterer

String - The media enterer's name.

license

String - Licensing information.

media_id

Number - A numeric identifier that uniquely identifies a media piece.

media_source

String - The name of the source of the media.

media_type

String - A description of the type of the media.

media_url

URL - The location to the media file.

part

String - A description of the body part of the specimen the image shows.

public

Boolean_flag - A flag that specifies whether or not the media is public.

technique

String - A description of the method by which the media was taken.

See also

Visit any of the below links to find information about the other data domains defined by OJ_Break Version 2.