Extension:WikibaseMediaInfo/RDF mapping

This is the specification of the RDF mapping of the Wikibase MediaInfo entities. It is an extension of the Wikibase RDF model.

Description of the mapping
The media info entities are typed using. More specialized classes,, , are also added to allow easy querying of only images, audios or videos.

For example, a JPEG image will have two type triples  and.

The captions are encoded using and the statements are encoded using the same properties as the other Wikibase entities (items...).

More data based on the described file itself are also provided:
 * 
 * the direct canonical URL of the file itself. For example.


 * 
 * the MIME type of the file. For example.


 * 
 * the size of the file in bytes.


 * and
 * the height and width of the file if it is an image or a video in pixels. For example.


 * 
 * the duration of a video using the  datatype. For example.


 * 
 * the number of pages of a multi-pages file (only for PDFs and DjVus).