0
Open Annotation Data Model:  Multiplicity and Publishing Modules                                               Robert Sand...
MultiplicityThe Data Model allows for multiple bodies and multiple targets   •  Easiest: Multiple instances of hasBody, ha...
Multiplicity: ChoiceChoice: Rendering agent should choose one resource to displayoa:default: The default resource of the A...
Multiplicity: Choice      Open Annotation Community Group         West Coast Open Annotation Rollouthttp://www.w3.org/comm...
Multiplicity: CompositeComposite: A set of resources, all of which are required to understand theAnnotation correctly     ...
Multiplicity: Composite      Open Annotation Community Group         West Coast Open Annotation Rollouthttp://www.w3.org/c...
Multiplicity: List      Open Annotation Community Group         West Coast Open Annotation Rollouthttp://www.w3.org/commun...
Multiplicity: List      Open Annotation Community Group         West Coast Open Annotation Rollouthttp://www.w3.org/commun...
Publishing AnnotationsThe Data Model is only a model, not a protocol:   •  Does not specify interactions between client/se...
Publishing: JSON-LD SerializationJSON-LD is the latest RDF serialization:   http://json-ld.org/spec/latest/json-ld/Open An...
Publishing: JSON-LD ContextJSON-LD has a Context description which maps JSON object keys toRDF predicates, and assigns nam...
Publishing: JSON-LD ExampleReuse of the Context definition makes simple annotations simple:{  “@context”:      “http://www...
Publishing: JSON-LD ExampleAnd complex annotations still (somewhat) readable:{  “@context”: “http://www.w3.org/ns/oa-conte...
Publishing: JSON-LD Example (cont)  ”hasTarget”: {    ”@id”:    ”urn:uuid:1d823e02-60a1-47ae-bc872081729c”,    ”@type”: ”o...
Publishing: Embedding ResourcesResources other than the body can benefit from being embedded:   •  SVG Selector   •  CSS S...
Publishing: Embedding ResourcesThe Content in RDF specification is reused:              Open Annotation Community Group   ...
Publishing: Embedding Resources      Open Annotation Community Group         West Coast Open Annotation Rollouthttp://www....
Publishing: Embedding RDF GraphsIt is useful to embed RDF graphs within the Annotation.Prefer to use Content in RDF approa...
Publishing: Embedding RDF Graphs      Open Annotation Community Group         West Coast Open Annotation Rollouthttp://www...
Publishing: Equivalent ResourcesUseful to know that Annotations (and other resources) have beenduplicated between systems:...
Publishing: Equivalent Resources      Open Annotation Community Group         West Coast Open Annotation Rollouthttp://www...
Extending MotivationsThe Data Model defines only a few core MotivationsIntent is for communities to extend as necessary:  ...
Extending Motivations      Open Annotation Community Group         West Coast Open Annotation Rollouthttp://www.w3.org/com...
Extending Motivations      Open Annotation Community Group         West Coast Open Annotation Rollouthttp://www.w3.org/com...
Thank You                                                      Robert Sanderson                                           ...
Upcoming SlideShare
Loading in...5
×

Multiplicity and Publishing in Open Annotation (tutorial)

735

Published on

3rd of 3 part tutorial about the W3C Open Annotation data model, focusing on the multiplicity and publishing modules.

Published in: Technology, Education
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
735
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
22
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Transcript of "Multiplicity and Publishing in Open Annotation (tutorial)"

  1. 1. Open Annotation Data Model: Multiplicity and Publishing Modules Robert Sanderson azaroth42@gmail.com Los Alamos National Laboratory @azaroth42 Paolo Ciccarese paolo.ciccarese@gmail.com Harvard Medical School @paolociccarese (Community Group Co-Chairs) Open Annotation Community Group West Coast Open Annotation Rollouthttp://www.w3.org/community/openannotation/ April 9th 2013, Stanford, CA, USA 1
  2. 2. MultiplicityThe Data Model allows for multiple bodies and multiple targets •  Easiest: Multiple instances of hasBody, hasTarget •  Issue: What are the semantics?Multiples of hasBody/hasTarget: Treated individuallyRequirements: •  Choice: Only one resource needs to be displayed •  Composite: All resources are required together, as a set •  List: All resources are required together, with order Open Annotation Community Group West Coast Open Annotation Rollout http://www.w3.org/community/openannotation/ April 9th 2013, Stanford, CA, USA 2
  3. 3. Multiplicity: ChoiceChoice: Rendering agent should choose one resource to displayoa:default: The default resource of the Annotation’s produceroa:item: Another possible resource Open Annotation Community Group West Coast Open Annotation Rollout http://www.w3.org/community/openannotation/ April 9th 2013, Stanford, CA, USA 3
  4. 4. Multiplicity: Choice Open Annotation Community Group West Coast Open Annotation Rollouthttp://www.w3.org/community/openannotation/ April 9th 2013, Stanford, CA, USA 4
  5. 5. Multiplicity: CompositeComposite: A set of resources, all of which are required to understand theAnnotation correctly Open Annotation Community Group West Coast Open Annotation Rollout http://www.w3.org/community/openannotation/ April 9th 2013, Stanford, CA, USA 5
  6. 6. Multiplicity: Composite Open Annotation Community Group West Coast Open Annotation Rollouthttp://www.w3.org/community/openannotation/ April 9th 2013, Stanford, CA, USA 6
  7. 7. Multiplicity: List Open Annotation Community Group West Coast Open Annotation Rollouthttp://www.w3.org/community/openannotation/ April 9th 2013, Stanford, CA, USA 7
  8. 8. Multiplicity: List Open Annotation Community Group West Coast Open Annotation Rollouthttp://www.w3.org/community/openannotation/ April 9th 2013, Stanford, CA, USA 8
  9. 9. Publishing AnnotationsThe Data Model is only a model, not a protocol: •  Does not specify interactions between client/server •  Does not limit additional descriptive features •  Does not specify annotation search, retrieval or managementSome aspects related to publishing are important: •  Serialization of the model •  Embedding resources •  Including other graphs •  Equivalence of resources Open Annotation Community Group West Coast Open Annotation Rollout http://www.w3.org/community/openannotation/ April 9th 2013, Stanford, CA, USA 9
  10. 10. Publishing: JSON-LD SerializationJSON-LD is the latest RDF serialization: http://json-ld.org/spec/latest/json-ld/Open Annotation recommends its use over RDF/XML: •  Easier for developers •  More web application friendly •  Looks like JSON (with appropriate context) •  So special parser not required •  Easy to generate without special librariesRDF/XML and Turtle are also recommended, if content negotiation issupported. Open Annotation Community Group West Coast Open Annotation Rollout http://www.w3.org/community/openannotation/ April 9th 2013, Stanford, CA, USA 10
  11. 11. Publishing: JSON-LD ContextJSON-LD has a Context description which maps JSON object keys toRDF predicates, and assigns namespace prefixes:{“@context”:{ “oa”: “http://www.w3.org/ns/oa#”, “cnt”: “http://www.w3.org/2011/content#”, “dc”: “http://purl.org/dc/elements/1.1/”, … “hasBody”: {“@type”:”@id”, “@id”:”oa:hasBody”}, “hasTarget”: {“@type”:”@id”, “@id”:”oa:hasTarget”}, … “chars”: “cnt:chars”, “format”: “dc:format”, “when”: “oa:when” … }} Open Annotation Community Group West Coast Open Annotation Rollout http://www.w3.org/community/openannotation/ April 9th 2013, Stanford, CA, USA 11
  12. 12. Publishing: JSON-LD ExampleReuse of the Context definition makes simple annotations simple:{ “@context”: “http://www.w3.org/ns/oa-context-20130208.json”, “@type”: “oa:Annotation”, “hasBody”: “http://www.youtube.com/watch?v=fgg2tpUVbXQ”, ”hasTarget”: ”http://zebu.uoregon.edu/hudf/hudf_300dpi.jpg”} Open Annotation Community Group West Coast Open Annotation Rollout http://www.w3.org/community/openannotation/ April 9th 2013, Stanford, CA, USA 12
  13. 13. Publishing: JSON-LD ExampleAnd complex annotations still (somewhat) readable:{ “@context”: “http://www.w3.org/ns/oa-context-20130208.json”, “@id”: “http://www.example.org/annotations/1.json”, “@type”: “oa:Annotation”, “annotatedAt”: “2012-11-10T09:08:07”, “annotatedBy”: { “@id” : “http://www.example.com/people/rsanderson”, “@type”: “foaf:Person”, “mbox”: “rsanderson@example.com”}, “hasBody”: “http://www.youtube.com/watch?v=fgg2tpUVbXQ”, … Open Annotation Community Group West Coast Open Annotation Rollout http://www.w3.org/community/openannotation/ April 9th 2013, Stanford, CA, USA 13
  14. 14. Publishing: JSON-LD Example (cont) ”hasTarget”: { ”@id”: ”urn:uuid:1d823e02-60a1-47ae-bc872081729c”, ”@type”: ”oa:SpecificResource”, ”hasSelector”: { ”@id”: ”urn:uuid:6e353e12-30c2-98a3-39ff2081729c”, ”@type”: ”oa:FragmentSelector”, ”conformsTo”: ”http://www.w3.org/TR/media-frags”, ”value”: ”xywh=10,10,5,5” } ”hasSource”: { ”@id”: ”http://zebu.uoregon.edu/hudf/hudf_300dpi.jpg”, ”@type”: ”dcterms:Image” }} Open Annotation Community Group West Coast Open Annotation Rollout http://www.w3.org/community/openannotation/ April 9th 2013, Stanford, CA, USA 14
  15. 15. Publishing: Embedding ResourcesResources other than the body can benefit from being embedded: •  SVG Selector •  CSS StylePotentially other resources: •  When the resource is offline, and being sent along with the annotation to a publishing server •  For preservation •  To include the exact representation, perhaps otherwise un- obtainable Open Annotation Community Group West Coast Open Annotation Rollout http://www.w3.org/community/openannotation/ April 9th 2013, Stanford, CA, USA 15
  16. 16. Publishing: Embedding ResourcesThe Content in RDF specification is reused: Open Annotation Community Group West Coast Open Annotation Rollout http://www.w3.org/community/openannotation/ April 9th 2013, Stanford, CA, USA 16
  17. 17. Publishing: Embedding Resources Open Annotation Community Group West Coast Open Annotation Rollouthttp://www.w3.org/community/openannotation/ April 9th 2013, Stanford, CA, USA 17
  18. 18. Publishing: Embedding RDF GraphsIt is useful to embed RDF graphs within the Annotation.Prefer to use Content in RDF approach, but if Trig/Trix is requested: Open Annotation Community Group West Coast Open Annotation Rollout http://www.w3.org/community/openannotation/ April 9th 2013, Stanford, CA, USA 18
  19. 19. Publishing: Embedding RDF Graphs Open Annotation Community Group West Coast Open Annotation Rollouthttp://www.w3.org/community/openannotation/ April 9th 2013, Stanford, CA, USA 19
  20. 20. Publishing: Equivalent ResourcesUseful to know that Annotations (and other resources) have beenduplicated between systems: Open Annotation Community Group West Coast Open Annotation Rollout http://www.w3.org/community/openannotation/ April 9th 2013, Stanford, CA, USA 20
  21. 21. Publishing: Equivalent Resources Open Annotation Community Group West Coast Open Annotation Rollouthttp://www.w3.org/community/openannotation/ April 9th 2013, Stanford, CA, USA 21
  22. 22. Extending MotivationsThe Data Model defines only a few core MotivationsIntent is for communities to extend as necessary: 1.  Create a new ConceptScheme (vocabulary/taxonomy) 2.  Create a new instance of oa:Motivation 3.  Link new instance to at least one existing Motivation if possible 4.  Assign labels and other information to describe its use Open Annotation Community Group West Coast Open Annotation Rollout http://www.w3.org/community/openannotation/ April 9th 2013, Stanford, CA, USA 22
  23. 23. Extending Motivations Open Annotation Community Group West Coast Open Annotation Rollouthttp://www.w3.org/community/openannotation/ April 9th 2013, Stanford, CA, USA 23
  24. 24. Extending Motivations Open Annotation Community Group West Coast Open Annotation Rollouthttp://www.w3.org/community/openannotation/ April 9th 2013, Stanford, CA, USA 24
  25. 25. Thank You Robert Sanderson azaroth42@gmail.com Los Alamos National Laboratory @azaroth42 Paolo Ciccarese paolo.ciccarese@gmail.com Harvard Medical School @paolociccarese (Community Group Co-Chairs)http://www.flickr.com/photos/hinkeb/5232293964/ http://www.w3.org/community/openannotation/ http://www.openannotation.org/ Open Annotation Community Group West Coast Open Annotation Rollout http://www.w3.org/community/openannotation/ April 9th 2013, Stanford, CA, USA 25
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×