[EMOXG] examples for links to rest of world

Hi all
This responds to the request for some examples for "links to the rest of
the world" in the last meeting.
I ordered them accordings to the three sub-requirements, but tried to
intermingle them. 

A) EXAMPLES for "links to the rest of the world:

Links to media:
An element name "media", can be aliased by "img", "audio", "video",
"text", "textstream" and "animation".

MANDATORY attributes:
 uri: a unified ressource indicator (as specified in [3])
OPTIONAL attributes
 type: a mime-tympe indicating the content (as specified in [4]) 
 id: an identification string for reference
OTIONAL sub-elements
 timing: to restrict the media file 

Example 1: element named "media" and mime-type
 <emotion> <category name="pleasure"/>
   <media uri="file:///mySound.pcm" type="audio/basic"/>
 </emotion>

Example 2: element named "video" w/o mime-type, emotion starts after 4
minutes
 <emotion> 
   <category name="pleasure"/>
   <video uri="file:///myVid.avi">
    <timing start="04:00/>
   <video/>
 </emotion>


B) EXAMPLES for "Links 2 /Core 8:  Position on a time line / Emotion
timing"

Time values:
I think, because of the complex timing requirements, it's easiest to
have an own OPTIONAL element, perhaps called " timing" and allow for
a) full- and partial clock values as specified in [5] as well as
b) milliseconds since 1.1.1970 and  
c) an integer follwed by "spl" to denote sample-values

I still wonder how to describe someone being depressed for 4 years....

All are OPTIONAL attributes
 start: defaults to 00:00
 end: no default
 duration: no default
 anchor: id of a media element, defaults to first media element found or
parent element.

Example 3: emotion lasts for 6 seconds with offset

 <emotion> 
   <category name="pleasure"/>
   <audio id="audio1" uri="file:///mySound.pcm"/>
   <timing anchor="audio1" start="00:03" end="00:09"
duration="="00:06"/>
 </emotion>

Example 4: I still believe that absolute values are important for
 application that note emotions over time (diaries, surveillance, e.g.
[6]).
Because I don't think it must be written by Humans, milliseconds since
 1.1.1970 seems unintuitive but easiest to avoid the calendar
can-of-worms.
So here's a example for someone feeling content for 4 hours on jan. 1st
2008

 <mood> 
   <category name="content"/>
   <timing start="1199142000" duration="="4:00:00"/>
 </mood>

Example 5: Anger lasting for the first 450 samples in a file with
 evenly spaced sample values.

 <emotion> <category name="anger"/>
   <text id="s1" uri="file:///mySamples.txt"/>
   <timing anchor="s1" duration="450spl"/>
 </emotion>

C) EXAMPLES for "Links 3: The semantics of links to the "rest of the
world"

An element named "context" with the following attributes.
MANDATORY
 set: set of pssible semantic roles.
 role: id of the role
 uri: URI of the role

Example 6: Jane Doe who is pleased about a concert performed
  by the Beatles, showed after 2 minusts 40 seconds in a video file.

  <emotion> 
    <category set="everyday" name="pleasure"/>
    <video id="vid1"
uri="http://example.org/behaviours/throwArmsUp.avi">
     <timing start="02:40"/>
    </video>
    <context set="myEmotionRoles" role="experiencer"
      uri="http://example.org/persons/janeDoe"/>
    <context set="myEmotionRoles" role="behaviour" uri"#vid1"/>
    <context set="myEmotionRoles" role="trigger"
      uri="http://gigs.org/beatles/1967/gig1234"/>
  </emotion>

Discussion welcome!

Regards,
felix


[1] http://www.w3.org/2005/Incubator/emotion/XGR-requirements-20080513/
[2] http://www.w3.org/2008/07/31-emotion-minutes.html#action03
[3] http://tools.ietf.org/html/rfc3986
[4] http://tools.ietf.org/html/rfc2387 
[5]
http://www.w3.org/TR/SMIL3/smil-timing.html#Timing-ClockValueSyntax
[6] http://www.sics.se/interaction/projects/ad/

Received on Monday, 11 August 2008 15:42:58 UTC