Copyright © 2009 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark and document use rules apply.
This specification defines a client-side API to access metadata information related to media resources on the Web. The purpose of the API is to provide the simple API for developers to easily access the information independent of metadata formats. This API is based on the ontology that is a description of relations between existing formats to support cross-community data integration of information.
This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at http://www.w3.org/TR/.
This is the First Public Working Draft of the API for Media Resource 1.0 specification. It has been produced by the Media Annotations Working Group, which is part of the W3C Video on the Web Activity.
Please send comments about this document to public-media-annotation@w3.org mailing list (public archive).
Publication as a Working Draft does not imply endorsement by the W3C Membership. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress.
This document was produced by a group operating under the 5 February 2004 W3C Patent Policy. W3C maintains a public list of any patent disclosures made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) must disclose the information in accordance with section 6 of the W3C Patent Policy.
1 Introduction
1.1 Purpose of this specification
1.2 Formats in scope
1.3 Formats out of scope
2 API Description
2.1 API for Descriptive Properties
2.1.1 Identification Properties Interface
2.1.2 Creation Properties Interface
2.1.3 Content description Properties Interface
2.1.4 Relational Properties Interface
2.1.5 Rights Properties Interface
2.1.6 Distribution Properties Interface
2.1.7 Fragments Properties Interface
2.2 API for Technical Properties
2.3 API for Iterating operation
3 Data type description
4 Examples of how to use the API
A References
B Acknowledgements (Non-Normative)
This section is informative.
Editorial note | |
This part will be elaborated in the perspectives of reason why we want to provide an API and an explanation on who should use/implement it. |
This specification defines a client-side API to access metadata information related to media resources on the Web. The purpose of the API is to provide the simple API for developers to easily access the information independent of metadata formats. This API is based on the ontology that is a description of relations between existing formats to support cross-community data integration of information.
This specification defines an ontology and a client-side API for cross-community data integration of information related to media objects on the Web. The purpose of the ontology and the API is to help circumventing the profileration of video metadata formats by providing partial mappings between the existing formats.
The ontology and API differ in their area of application: The API provides methods for client side processing. The ontology is a description of relations between existing formats, which is used in the API for data integration.
The properties defined in the ontology focus on usage scenarios related to video on the web. Nevertheless they also take formats into account which are not specific to video, but which are of importance for video. An example of this is information from Dublin Core Dublin Core.
This specification does not aim on defining new properties for media objects. As a result, there is no detailed description of properties, but mainly references to definitions in existing formats.
In this specification the following formats related to media objects on the Web have been taken into account .
Note:
This specification is based on a review of existing formats and the properties they provide. This review does not aim to be complete, and this specification does not aim to cover all properties defined in these formats. The choice of properties is motivated by their wide usage.
MWG Guidelines Image. This specification does not define properties on its own, but provides guidance for relating information from existing formats, mainly EXIF2.2, IPTC and XMP.
YouTube Data API Protocol. This document contains information about Media RSS. For the creation of mappings, the Media RSS specification has been consulted seperately.
tbd: Cable Labs Video-On-Demand Content specification 2.0, TV-Anytime Metadata, CDDB, EBU, VRA, DIG35.
Editorial note | |
This part will be elaborated with a precise description of the actual methods in the API, (so these are the methods that can be found in the Strawman API design and note), described using web IDL. This section needs to define and explain all aspects of those methods (parameters and return values). |
String ma_getIdentifier();
String ma_getTitle();
String ma_getLanguage();
String ma_getLocator();
RESULT ma_setIdentifier(String id);
RESULT ma_setTitle(String title);
RESULT ma_setLanguage(String lang);
RESULT ma_setLocator(String loc);
List<String> ma_getContributor();
List<String> ma_getCreator();
Date ma_getCreateDate();
String ma_getLocation();
RESULT ma_setContributor(List<String>contributor);
RESULT ma_setCreator(List<String> creator);
RESULT ma_setCreateDate(Date createDate);
RESULT ma_setLocation(String loc);
String ma_getDescription();
List<String> ma_getKeyword();
String ma_getGenre();
String ma_getRating();
RESULT ma_setDescription(String desc);
RESULT ma_setKeyword(List<String>keyword);
RESULT ma_setGenre(String genre);
RESULT ma_setRating(String rating);
String ma_getRelation();
ma_getCollection();
RESULT ma_setRelation(String relation);
RESULT ma_setCollection(String collection);
String ma_getCopyright();
String ma_getLicense();
RESULT ma_setCopyright(String copyright);
RESULT ma_setLicense(String license);
Dimension ma_getFrameSize();
int ma_getCompression();
int ma_getDuration();
String ma_getFormat();
int ma_getSamplingrate();
int ma_getFramerate();
int ma_getBitrate();
int ma_getNumTracks();
RESULT ma_setFrameSize(Dimension framesize);
RESULT ma_getCompression(int compression);
RESULT ma_getDuration(int duration);
RESULT ma_getFormat(String format);
RESULT ma_getSamplingrate(int samplingrate);
RESULT ma_getFramerate(int framerate);
RESULT ma_getBitrate(int bitrate);
RESULT ma_getNumTracks(int numtracks);
This section is normative.
Editorial note | |
Here we discuss for each property in the ontology what the specific return values are. (for example if we call the GetStructuredValue method for property ma:creator, what would be the structure and content of the result (so in fact a kind of Javadoc style)). The examples that were added to the summary table are an obvious starting point and should also be repeated in this section to clarify what is meant. |
This document is the work of the W3C Media Annotations Working Group.
Members of the Working Group are (at the time of writing, and by alphabetical order): Werner Bailer (K-Space), Tobias Bürger (University of Innsbruck), Eric Carlson (Apple, Inc.), Pierre-Antoine Champin ((public) Invited expert), Jaime Delgado (Universitat Politècnica de Catalunya), Jean-Pierre EVAIN ((public) Invited expert), Ralf Klamma ((public) Invited expert), WonSuk Lee (Electronics and Telecommunications Research Institute (ETRI)), Véronique Malaisé (Vrije Universiteit), Erik Mannens (IBBT), Hui Miao (Samsung Electronics Co., Ltd.), Thierry Michel (W3C/ERCIM), Frank Nack (University of Amsterdam), Soohong Daniel Park (Samsung Electronics Co., Ltd.), Silvia Pfeiffer (W3C Invited Experts), Chris Poppe (IBBT), Víctor Rodríguez (Universitat Politècnica de Catalunya), Felix Sasaki (Potsdam University of Applied Sciences), David Singer (Apple, Inc.), Joakim Söderberg (ERICSSON), Thai Wey Then (Apple, Inc.), Ruben Tous (Universitat Politècnica de Catalunya), Raphaël Troncy (CWI), Vassilis Tzouvaras (K-Space), Davy Van Deursen (IBBT).
The people who have contributed to discussions on public-media-annotation@w3.org are also gratefully acknowledged.