ListenLog XDI
Jump to navigation
Jump to search
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