REST API - Linked TV Wiki

REST API

Description URI
List of media fragments http://data.linkedtv.eu/mediafragment
List of media resources http://data.linkedtv.eu/mediaresource
List of annotations http://data.linkedtv.eu/annotation
List of spatial objects http://data.linkedtv.eu/spatialobject
List of versions http://data.linkedtv.eu/version
List of broadcasts http://data.linkedtv.eu/broadcast
List of brands http://data.linkedtv.eu/brand
List of episodes http://data.linkedtv.eu/episode
List of chapters http://data.linkedtv.eu/chapter
List of shots http://data.linkedtv.eu/shot

REST API - Annotations

Description URI
Annotation of a media fragment First way:
http://data.linkedtv.eu/mediafragment/[mediafragmentID]/annotation
example:
http://data.linkedtv.eu/mediafragment/e2899e7f-67c1-4a08-9146-5a205f6de457%23t=2721.439,2724.56/annotation
(Pay attention of %23 after the id, it is the URL encode for #. to prevent # problem in the browser)
Second way:
http://data.linkedtv.eu/annotation?hasTarget=http://data.linkedtv.eu/media/[mediafragmentURI]&_sort=startedAtTime
example:
http://data.linkedtv.eu/annotation?hasTarget=http://data.linkedtv.eu/media/e2899e7f-67c1-4a08-9146-5a205f6de457%23t=2721.439,2724.56&_sort=startedAtTime
Annotation of a media fragment (only oa:motivatedBy oa:linking) http://data.linkedtv.eu/mediafragment/[mediafragmentID]/annotation?source=enrichment
example:
http://data.linkedtv.eu/mediafragment/a8187f2-3fc8-cb54-0140-7dd099380002%23t=1284.28,1287.12/annotation?source=enrichment
(Pay attention of %23 after the id, it is the URL encode for #. to prevent # problem in the browser)
Annotation of a media fragment (NOT oa:motivatedBy oa:linking) http://data.linkedtv.eu/mediafragment/[mediafragmentID]/annotation?source=basic
example:
http://data.linkedtv.eu/mediafragment/a8187f2-3fc8-cb54-0140-7dd099380002%23t=1284.28,1287.12/annotation?source=basic
(Pay attention of %23 after the id, it is the URL encode for #. to prevent # problem in the browser)
Annotations of a media resource. This is a list of annotations of media fragments that belongs to the media resource. http://data.linkedtv.eu/mediaresource/[mediaresourceID]/annotation
example:
http://data.linkedtv.eu/mediaresource/e2899e7f-67c1-4a08-9146-5a205f6de457/annotation

REST API - Media fragments

Description URI
Media fragments of a media resource First way:
http://data.linkedtv.eu/mediaresource/[mediaresourceID]/mediafragment
example:
http://data.linkedtv.eu/mediaresource/6026703a-c02c-41bc-9ac3-9923b23ef8f5/mediafragment
Second way:
http://data.linkedtv.eu/mediafragment?isFragmentOf=[mediaresourceURI]
example:
http://data.linkedtv.eu/mediafragment?isFragmentOf=http://data.linkedtv.eu/media/6026703a-c02c-41bc-9ac3-9923b23ef8f5
Media fragments of media resource with start and end time. http://data.linkedtv.eu/mediafragment?isFragmentOf=[mediaresourceURI]&min-temporalStart=[startTime]&max-temporalEnd=[endTime]
example:
http://data.linkedtv.eu/mediafragment?isFragmentOf=http://data.linkedtv.eu/media/e2899e7f-67c1-4a08-9146-5a205f6de457&min-temporalStart=2&max-temporalEnd=10

REST API - Shot

Description URI
Shots of a media resource http://data.linkedtv.eu/mediaresource/[mediaresourceID]/shot
example:
http://data.linkedtv.eu/mediaresource/6026703a-c02c-41bc-9ac3-9923b23ef8f5/shot