107

Ordered List Ontology


The Ordered List Ontology Specification provides basic concepts and properties for describing ordered lists as semantic graphs.

Examples

Add another example.

Music Playlist

The whole music playlist is an olo:OrderedList* instance and could be annotated with further editoral metadata, e.g. a title, a description and a creator. Each track of the music playlist is embedded into an olo:Slot instance. The music playlist has a fixed length (olo:length) and each slot has a fixed index (olo:index) in the ordered list it belongs to. more…

@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
@prefix dc:      <http://purl.org/dc/elements/1.1/> .
@prefix olo:     <http://purl.org/ontology/olo/core#> .
@prefix mo:      <http://purl.org/ontology/mo/> .
@prefix ex:      <http://example.org/> .
 
ex:FunkyPlaylist a olo:OrderedList ;
   dc:title "Funky Playlist"^^xsd:string ;
   dc:description "A playlist full of funky legends"^^xsd:string ;
   dc:creator <http://foaf.me/zazi#me> ;
      olo:length 2 ;
      olo:slot [   
         olo:index 1 ;
         olo:item ex:SexMachine
      ] ;
      olo:slot [
         olo:index 2 ;
         olo:item ex:GoodFoot
      ] .
 
ex:SexMachine a mo:Track ;
   dc:title "Sex Machine"^^xsd:string ;
   dc:creator <http://dbpedia.org/resource/James_Brown> .
 
ex:GoodFoot a mo:Track ;
   dc:title "Good Foot"^^xsd:string .

Music Playlist with Association Statements

This examples shows a music playlist described with the help of the Play Back Ontology, Ordered List Ontology and Association Ontology. The playlist itself is modelled as pbo:Playlist instance and is annotated with further editoral metadata, e.g. a title, a description and a creator, and has a fixed length (olo:length) that represents the number of slots this specific ordered list (olo:OrderedList) instance consist of. Each slot is modelled as pbo:PlaylistSlot instance to ensure that only some media items ( bibo:Document or frbr:Endeavour based concepts) are in the playlist. This is especially realized by the range restriction of pbo:playlist_item. In the example this items are mo:Track instances. The playlist has two association statements related by sim:association. The first one (ex:ZazisAssocation) is modelled as an association to a specific occasion, which is related by ao:occasion. Furthermore, this association includes (music) genre (ao:genre) and mood (ao:mood) categorisations as simple string typed literals. The second association statement (ex:BobsAssociationInUse) is an ao:LikeableAssociation instance that includes (ao:included_association) a reuseable association statement (ex:BobsAssociation). As the domain specific (but abstract) association relations – ao:genre, ao:mood, ao:occasion – have no range, sub properties with specific ranges could be created from them (e.g. mo:genre for music genres/styles (this isn’t currently the case)). To illustrate this use case, the example includes a specific mo:Genre instance (ex:Funk) to ex:BobsAssociation. Finally, because ex:BobsAssociationInUse is a likeable association statement in the context of the described music playlist (ex:FunkyPlaylist), other people could expressed that they like this association – as it is done in the example by using the relation ao:likeminded – or they are able to feedback (e.g. rev:Feedback) or rate (rev:rating) it. more…

@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
@prefix dc:      <http://purl.org/dc/elements/1.1/> .
@prefix olo:     <http://purl.org/ontology/olo/core#> .
@prefix pbo:     <http://purl.org/ontology/pbo/core#> .
@prefix ao:      <http://purl.org/ontology/ao/core#> .
@prefix mo:      <http://purl.org/ontology/mo/> .
@prefix ex:      <http://example.org/> .
@prefix sim:     <http://purl.org/ontology/similarity/> .
 
ex:FunkyPlaylist a pbo:Playlist ;
   dc:title "Funky Playlist"^^xsd:string ;
   dc:description "A playlist full of funky legends"^^xsd:string ;
   dc:creator <http://foaf.me/zazi#me> ;
   olo:length 2 ;
   sim:association ex:ZazisAssociation ;
   sim:association ex:BobsAssociationInUse ;
   pbo:playlist_slot [   
      olo:index 1 ;
      pbo:playlist_item ex:SexMachine
   ] ;
   pbo:playlist_slot [
      olo:index 2 ;
      pbo:playlist_item ex:GoodFoot
   ] .
 
ex:SexMachine a mo:Track ;
   dc:title "Sex Machine"^^xsd:string ;
   dc:creator <http://dbpedia.org/resource/James_Brown> .
 
ex:GoodFoot a mo:Track ;
   dc:title "Good Foot"^^xsd:string .	
 
ex:ZazisAssociation a sim:Association ;
   dc:creator <http://foaf.me/zazi#me> ;
   ao:genre "Funk"^^xsd:string ;
   ao:mood "party"^^xsd:string ;
   ao:occasion "my birthday party 2008"^^xsd:string .
 
ex:BobsAssociation a sim:Association ;
   dc:creator <http://foaf.me/zazi#me> ;
   ao:genre ex:Funk ;
   ao:mood "happy"^^xsd:string ;
   ao:occasion "good feeling music"^^xsd:string .
 
ex:BobsAssociationInUse a ao:LikeableAssociation ;
   ao:included_association ex:BobsAssociation ;
   ao:likeminded <http://moustaki.org/foaf.rdf#moustaki> .
 
ex:Funk a mo:Genre .