[tracker/subqueries] NMO: Add nmo:lastMessageDate to nmo:CommunicationChannel



commit 91cd9f47b59397b098a1feff67da46f95d27dd4c
Author: Jürg Billeter <j bitron ch>
Date:   Fri Dec 4 21:08:47 2009 +0100

    NMO: Add nmo:lastMessageDate to nmo:CommunicationChannel

 data/ontologies/34-nmo.ontology                   |    6 ++++++
 utils/data-generators/generate-data-for-gossip.py |    2 ++
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/data/ontologies/34-nmo.ontology b/data/ontologies/34-nmo.ontology
index 4c0e775..78d33eb 100644
--- a/data/ontologies/34-nmo.ontology
+++ b/data/ontologies/34-nmo.ontology
@@ -230,6 +230,12 @@ nmo:communicationChannel a rdf:Property ;
 	rdfs:domain nmo:Conversation ;
 	rdfs:range nmo:CommunicationChannel .
 
+nmo:lastMessageDate a rdf:Property ;
+	tracker:indexed true ;
+	nrl:maxCardinality 1 ;
+	rdfs:domain nmo:CommunicationChannel ;
+	rdfs:range xsd:dateTime .
+
 nmo:hasParticipant a rdf:Property ;
 	tracker:indexed true ;
 	rdfs:domain nmo:CommunicationChannel ;
diff --git a/utils/data-generators/generate-data-for-gossip.py b/utils/data-generators/generate-data-for-gossip.py
index 832af84..d31da0e 100755
--- a/utils/data-generators/generate-data-for-gossip.py
+++ b/utils/data-generators/generate-data-for-gossip.py
@@ -189,6 +189,8 @@ def generate_im_messages (n_convs, n_channels, msgs_per_convs, friends_list, n_f
         channel_id = get_random_uuid_uri()
         print_instance (channel_id, "nmo:CommunicationChannel")
 
+        print_property ("nmo:lastMessageDate", getPseudoRandomDate ())
+
         if same_friend:
             print_anon_node ("nmo:hasParticipant", 
                              "nco:IMContact",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]