owned this note changed 5 years ago
Linked with GitHub

timeliner audio api

Drafts

Example annotation json for caption

for target iri http://example.org/audio1#t=30,60
note the selector "completes" that target resource identification. source is the url, then fragment is indicated by the fragment selector.

{
  "@context": "http://www.w3.org/ns/anno.jsonld",
  "id": "http://example.org/anno20",
  "type": "Annotation",
  "target": {
    "source": "http://example.org/audio1",
    "selector": {
      "type": "FragmentSelector",
      "conformsTo": "http://www.w3.org/TR/media-frags/",
      "value": "t=30,60"
    }
  },
  "body": {
      purpose: "caption",
      value: "radio Q, session1"
}

to annotate with an image
same target and fragment but using start, end

{
  "@context": "http://www.w3.org/ns/anno.jsonld",
  "id": "http://example.org/anno21",
  "type": "Annotation",
  "target": {
    "source": "http://example.org/audio1",
    "selector": {
      "type": "FragmentSelector",
      "conformsTo": "http://www.w3.org/TR/media-frags/",
      "start": "0.30",
      "end": "0.60"
    }
  },
  "body": {
      purpose: "visualize",
      type: "image",
      value: "http://example.com/janastu/cowpi.jpg"
}

In the body maybe we can consider different category types

  "body": {
      purpose: "tagging",
      type: "tag",
      value: "image:cowpi"
}
  "body": {
      purpose: "tagging",
      type: "tag",
      value: "mentions:cowpi"
}

Meta annotation of the audio annotations

{
  "@context": "http://www.w3.org/ns/anno.jsonld",
  "id": "http://example.org/anno2-1",
  "type": "Annotation",
  "target": {
    "source": "http://example.org/audio1",
    "selector": [{
      "type": "FragmentSelector",
      "conformsTo": "http://www.w3.org/TR/media-frags/",
      "value": "t=30,60"
    },{
      "type": "FragmentSelector",
      "conformsTo": "http://www.w3.org/TR/media-frags/",
      "value": "t=40,70"
      }]
  },
  "body": {
      purpose: "tagging",
      type: "group",
      value: "skill:tailoring"
}

References

https://github.com/digirati-co-uk/timeliner

john udell link, gerbern had pointed, ah!
https://blog.jonudell.net/2018/03/10/open-web-annotation-of-audio-and-video/

https://www.w3.org/TR/media-frags/

https://www.w3.org/TR/annotation-model/#fragment-selector

Select a repo