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...) |
DrummondReed (talk | contribs) No edit summary |
||
Line 68: | Line 68: | ||
$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> |
Revision as of 13:53, 27 February 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$d!2008-01-01T12:13:14Z $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$d!2008-01-01T12:18:22Z $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