ListenLog XDI: Difference between revisions
Jump to navigation
Jump to search
DrummondReed (talk | contribs) (New page: == About == This page provides an overview of a proposed [http://en.wikipedia.org/wiki/XDI XDI] format for ListenLog files. == Example ListenLog XDI Document == This example is shown in X...) |
No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[Category:Media Logging]] | |||
== About == | == About == | ||
This page provides an overview of a proposed [http://en.wikipedia.org/wiki/XDI XDI] format for ListenLog files. | This page provides an overview of a proposed [http://en.wikipedia.org/wiki/XDI XDI] format for ListenLog files. | ||
Line 14: | Line 16: | ||
$d$last | $d$last | ||
"2008-01-14T03:04:05Z" <-- ending file datetime --> | "2008-01-14T03:04:05Z" <-- ending file datetime --> | ||
+listenlog | +listenlog!2134879 | ||
$d$first | $d$first | ||
"2008-01-01T12:13:14Z" <-- starting log entry datetime --> | "2008-01-01T12:13:14Z" <-- starting log entry datetime --> | ||
Line 25: | Line 27: | ||
+location | +location | ||
{geolocation-identifier} <-- location ID --> | {geolocation-identifier} <-- location ID --> | ||
+listenlog | +listenlog!2134882 | ||
$d$first | $d$first | ||
"2008-01-01T12:18:22Z" | "2008-01-01T12:18:22Z" | ||
Line 68: | Line 70: | ||
$regex | $regex | ||
"{regex-for-geolocation-code}" | "{regex-for-geolocation-code}" | ||
</pre> | |||
== Synonyms == | |||
This is an example of how synonym maps can be stored alongside the data being described. | |||
<pre> | |||
@!5ce2.e907.12c9.3a55!23 | |||
$is | |||
@(http://kxxx.com/bluesforall) | |||
@1234.5678.abcd.9876!345 | |||
</pre> | </pre> |
Latest revision as of 10:27, 3 March 2009
About
This page provides an overview of a proposed XDI format for ListenLog files.
Example ListenLog XDI Document
This example is shown in XDI X3 Simple format.
$ <-- XDI context self-descriptor --> $is$a $$(+listenlog) <-- declares XDI context type --> $is$$(+listenlog) =!f83.62b1.44f.2813 <-- User ID (XRI i-number) --> $d$first "2008-01-01T12:13:14Z" <-- starting file datetime --> $d$last "2008-01-14T03:04:05Z" <-- ending file datetime --> +listenlog!2134879 $d$first "2008-01-01T12:13:14Z" <-- starting log entry datetime --> $d$last "2008-01-01T12:18:22Z" <-- ending log entry datetime --> +station @!3f45.2219.8de9.549b <-- station ID --> +program @!5ce2.e907.12c9.3a55!23 <-- program ID --> +location {geolocation-identifier} <-- location ID --> +listenlog!2134882 $d$first "2008-01-01T12:18:22Z" $d$last "2008-01-01T12:27:56Z" +station @(http://somestation.com/) +program @(http://coolprogram.com/program) +location {geolocation-identifier}
Example ListenLog XDI Dictionary
This is the dictionary for validating a ListenLog XDI file:
+listenlog $has $d$$ $has$a$max$1 $d$first $d$last +station +program +location $d$first $is$a $d <-- XML datetime, defined in XDI $ Dictionary --> $d$last $is$a $d +station $is$a @ +program $is$a @ +location $is$a $a$xsd$string$regex+geolocation $a$xsd$string$regex+geolocation $regex "{regex-for-geolocation-code}"
Synonyms
This is an example of how synonym maps can be stored alongside the data being described.
@!5ce2.e907.12c9.3a55!23 $is @(http://kxxx.com/bluesforall) @1234.5678.abcd.9876!345