days

Days of the Week Vocabulary


Namespace URI: http://ontologi.es/days#

Defines terms for use when specifying occurrences of events on specific days of the week such as opening times.

Examples

Add another example.

UMIRL example

This example was originally modelled with help of UMIRL (http://www.media.mit.edu/~chaiwei/papers/usermodeling.pdf) and is now recreated with the Cognitive Characteristics Ontology. This example shows a part of an user profile as it can be taken from an user account of a personal music knowledge base. The user profile is from the person John White, who can play the piano and sing by having no education in music. Furthermore, he is interested in several music genres, the music artist Wolfgang Amadeus Mozart, the music group the Beatles, the music song “Yesterday” from the Beatles and some self-defined idiosyncratic music genres. At the beginning, all cognitive patterns of this user are described by simple semantic relations, which are sub properties of cco:cognitive_characteristic. Thereby, the most of the topics of the cognitive characteristic relations are information resources from the information service DBPedia and one topic is a information resource from DBTune. Afterwards, some of these shortcut relations are described more in detail with help of cco:CognitiveCharacteristic instances. Each of these cognitive characteristic descriptions is related to a weighting with a different weight value (related by wo:weight_value) and the same scale (related by wo:scale). Due to these weightings, we can conclude that John White can sing and play the piano quite good. However, he has no knowledge in musical foundations. Furthermore, a cco:CognitiveCharacteristic instance is associated with a topic (by cco:topic) of a shortcut relation and a property (by cco:characteristic) of such a relation. Besides these information some of them are also related with an activity (associated by cco:activity), which are information resources from OpenCyc (playing a musical instrument) or DBPedia (singing). This user profile example includes especially detailed descriptions of John White’s interest in specific music genres. Thereby, we can conclude (besides other things) that he is a big fan of Blues and Rock music and quite interested in romantic music (ex:IdiosyncraticGenre2). The last music genre is defined as music context, which he prefers weekdays (represented by days:WeekdayInterval) at “bedtime” (ca. 11 pm). This idiosyncratic genre is itself defined as a sim:Association instance, which is titled as “romantic music” and should be very slow (largo, associated by ex:tempo as sub property of ao:context). more…

@prefix foaf:      <http://xmlns.com/foaf/0.1/> .
@prefix cco:       <http://purl.org/ontology/cco/core#> .
@prefix wo:        <http://purl.org/ontology/wo/core#> .
@prefix days:      <http://ontologi.es/days#> .
@prefix tl:        <http://perl.org/NET/c4dm/timeline.owl#> .
@prefix xsd:       <http://www.w3.org/2001/XMLSchema#> .
@prefix ex:        <http://example.org/> .
@prefix rdf:       <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:      <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl:       <http://www.w3.org/2002/07/owl#> .
@prefix dc:        <http://purl.org/dc/elements/1.1/> .
@prefix cv:        <http://kaste.lv/~captsolo/semweb/resume/cv.rdfs#> .
@prefix cvbase:    <http://kaste.lv/~captsolo/semweb/resume/base.rdfs#> .
@prefix countries: <http://www.daml.org/2001/09/countries/countries.daml#> .
@prefix sim:       <http://purl.org/ontology/similarity/> .
@prefix ao:        <http://purl.org/ontology/ao/core#> .
 
ex:APerson
   a foaf:Person , cv:Person ;
   foaf:name "John White" ;
   foaf:birthday "1974-07-09"^^xsd:date ;
   foaf:gender "male" ;
   cv:hasCitizenship countries:US ;
   cco:skill <http://dbpedia.org/resource/Piano> ;
   cco:skill <http://dbpedia.org/resource/Vocal> ;
   cco:expertise <http://dbpedia.org/resource/Music> ;
   cco:interest <http://dbpedia.org/resource/Category:Classical_music> ;
   cco:interest <http://dbpedia.org/resource/Category:Blues> ;
   cco:interest <http://dbpedia.org/resource/Category:Pop_music> ;
   cco:interest <http://dbpedia.org/resource/Category:Rock_music> ;
   cco:interest <http://dbpedia.org/resource/Wolfgang_Amadeus_Mozart> ;
   cco:interest <http://dbpedia.org/resource/The_Beatles> ;
   cco:interest  <http://dbtune.org/musicbrainz/resource/signal/8aefa373-2858-4643-b691-cad4ac7c971a> ;
   cco:interest ex:IdiosyncraticGenre1 ;
   cco:interest ex:IdiosyncraticGenre2 ;
   cco:habit [
      a cco:CognitiveCharacteristic ;
      cco:topic <http://dbpedia.org/resource/Piano> ;
      cco:characteristic cco:skill ;
      wo:weight [ 
         a wo:Weight ;
         wo:weight_value 6.0 ;
         wo:scale ex:AScale 
         ] ;
      cco:activity <http://sw.opencyc.org/concept/Mx4rvVjUJ5wpEbGdrcN5Y29ycA>
      ] ;
   cco:habit [
      a cco:CognitiveCharacteristic ;
      cco:topic <http://dbpedia.org/resource/Vocal> ;
      cco:characteristic cco:skill ;
      wo:weight [ 
         a wo:Weight ;
         wo:weight_value 7.0 ;
         wo:scale ex:AScale 
         ] ;
      cco:activity <http://dbpedia.org/resource/Category:Singing>
      ] ;
   cco:habit [
      a cco:CognitiveCharacteristic ;
      cco:topic <http://dbpedia.org/resource/Music> ;
      cco:characteristic cco:expertise ;
      wo:weight [ 
         a wo:Weight ;
         wo:weight_value 0.0 ;
         wo:scale ex:AScale 
         ] ;
      ] ;
   cco:habit [
      a cco:CognitiveCharacteristic ;
      cco:topic <http://dbpedia.org/resource/Category:Classical_music> ;
      cco:characteristic cco:interest ;
      wo:weight [ 
         a wo:Weight ;
         wo:weight_value 7.0 ;
         wo:scale ex:AScale 
         ] ;
      ] ;
   cco:habit [
      a cco:CognitiveCharacteristic ;
      cco:topic <http://dbpedia.org/resource/Category:Blues> ;
      cco:characteristic cco:interest ;
      wo:weight [ 
         a wo:Weight ;
         wo:weight_value 9.0 ;
         wo:scale ex:AScale 
         ] ;
      ] ;
   cco:habit [
      a cco:CognitiveCharacteristic ;
      cco:topic <http://dbpedia.org/resource/Category:Pop_music> ;
      cco:characteristic cco:interest ;
      wo:weight [ 
         a wo:Weight ;
         wo:weight_value 5.0 ;
         wo:scale ex:AScale 
         ] ;
      ] ;
   cco:habit [
      a cco:CognitiveCharacteristic ;
      cco:topic <http://dbpedia.org/resource/Category:Rock_music> ;
      cco:characteristic cco:interest ;
      wo:weight [ 
         a wo:Weight ;
         wo:weight_value 8.0 ;
         wo:scale ex:AScale 
         ] ;
      ] ;
   cco:habit [
      a cco:CognitiveCharacteristic ;
      cco:topic ex:IdiosyncraticGenre2 ;
      cco:characteristic cco:interest ;
      wo:weight [ 
         a wo:Weight ;
         wo:weight_value 7.0 ;
         wo:scale ex:AScale 
         ] ;
      cco:appear_time [
         a days:WeekdayInterval ;
         dc:title "bedtime" ;
         tl:at "23:00:00"^^xsd:time 
         ] ;
      ] .
 
ex:ACV
   a cv:CV ;
   cv:aboutPerson ex:APerson ;
   cv:hasEducation [
      a cv:Education ;
      cv:degreeType cvbase:EduMaster 
      ] ;
   cv:hasWorkHistory ex:AWorkHistory .
 
ex:AWorkHistory
   a cv:WorkHistory ;
   cv:careerLevel cvbase:Student .
 
ex:tempo
   a rdf:Property , owl:DatatypeProperty ;
   rdfs:range xsd:string ;
   rdfs:subPropertyOf ao:context .
 
ex:IdiosyncraticGenre1
   a sim:Association ;
   dc:title "happy music" ;
   ao:genre <http://dbpedia.org/resource/Category:Pop_music> ;
   ex:tempo "allegro" ;
   ao:mood "happy" .
 
ex:IdiosyncraticGenre2
   a sim:Association ;
   dc:title "romantic music" ;
   ex:tempo "largo" .
 
ex:AScale a wo:Scale ;
   wo:min_weight 0.0 ;
   wo:max_weight 9.0 ;
   wo:step_size 1.0 .

Opening Hours

This example demonstrates how to declare that a business is open between 8AM and 6PM on weekdays, 10AM and 6:30PM on Saturdays and open on Sundays from 10AM for 6 hours. more…

@prefix days: <http://ontologi.es/days#> .
@prefix ex:   <http://example.com/#> .
@prefix tl:   <http://purl.org/NET/c4dm/timeline.owl#> .
@prefix xsd:  <http://www.w3.org/2001/XMLSchema#> .

ex:my_shop
  ex:open [
      a days:WeekdayInterval ;
      tl:at "08:00:00"^^xsd:time ;
      tl:end "18:30:00"^^xsd:time
    ] , [
      a days:SaturdayInterval ;
      tl:at "10:00:00"^^xsd:time ;
      tl:end "18:30:00"^^xsd:time 
    ] , [
      a days:SundayInterval ;
      tl:at "10:00:00"^^xsd:time ;
      tl:duration "PT6H"^^xsd:duration 
    ] .