[tracker] SMS Support in the NMO ontology. First draft.



commit ad0c4bee700fa33d09e314ec44ceb24a42be1259
Author: Ivan Frade <ivan frade nokia com>
Date:   Thu Nov 19 20:10:59 2009 +0200

    SMS Support in the NMO ontology. First draft.

 data/ontologies/34-nmo.ontology      |   48 ++++++++++++++++++++++++++++++++++
 docs/ontologies/nmo/explanation.html |   28 +++++++++++++++++++
 2 files changed, 76 insertions(+), 0 deletions(-)
---
diff --git a/data/ontologies/34-nmo.ontology b/data/ontologies/34-nmo.ontology
index 1945ad6..be66b28 100644
--- a/data/ontologies/34-nmo.ontology
+++ b/data/ontologies/34-nmo.ontology
@@ -304,3 +304,51 @@ nmo:contentMimeType a rdf:Property ;
 	rdfs:domain nmo:Email ;
 	rdfs:range xsd:string ;
 	rdfs:subPropertyOf nie:mimeType .
+
+
+#
+# SMS support
+#
+nmo:SMSMessage a rdfs:Class ;
+	rdfs:label "SMS Message";
+	rdfs:comment "Plain SMS Message" ;
+	rdfs:subClassOf nmo:Message.
+
+nmo:originalVCard a rdf:Property ;
+	rdfs:label "fromVCard" ;
+	rdfs:comment "Raw VCard string, as received from the network" ;
+        nrl:maxCardinality 1 ;
+        rdfs:domain nmo:SMSMessage ;
+        rdfs:range xsd:string .
+
+#FIXME unify encoding representation... this is the third encoding property in nepomuk
+nmo:encoding a rdf:Property ;
+	rdfs:label "enconding";
+	rdfs:comment "Encoding of the message" ;
+        nrl:maxCardinality 1 ;
+        rdfs:domain nmo:SMSMessage ;
+        rdfs:range xsd:string .
+
+nmo:smsId a rdf:Property ;
+        rdfs:label "sms Id";
+	rdfs:comment "Id assigned in the system when the sms is received" ;
+	nrl:maxCardinality 1 ;
+	rdfs:domain nmo:SMSMessage;
+	rdfs:range xsd:integer.
+
+nmo:SMSFolder a rdfs:Class ;
+	rdfs:label "SMS Folder";
+	rdfs:comment "Folder for SMS. Not a subclass of nfo:Folder because it would confuse filesystem folders" ;
+	rdfs:subClassOf nie:InformationElement .
+
+nmo:containsSMSFolder a rdf:Property ;
+	rdfs:label "contains SMS Folder";
+	rdfs:comment "To link and reconstruct a hierarchy of folders" ;
+	rdfs:domain nmo:SMSFolder;
+	rdfs:range nmo:SMSFolder .
+
+nmo:containsSMS a rdf:Property ;
+	rdfs:label "Contains SMS";
+	rdfs:comment "Link between an SMS Message and a Folder" ;
+	rdfs:domain nmo:SMSFolder;
+	rdfs:range nmo:SMSMessage .
diff --git a/docs/ontologies/nmo/explanation.html b/docs/ontologies/nmo/explanation.html
new file mode 100644
index 0000000..6f3154e
--- /dev/null
+++ b/docs/ontologies/nmo/explanation.html
@@ -0,0 +1,28 @@
+<h2>Overview</h2>
+<p>NEPOMUK Message Ontology extends the NEPOMUK Information Element framework into the domain of messages. This ontology has been heavily extended by Tracker team to include real support for Emails, IM Accounts, SMS and Calls relevant in environments like <a href="http://maemo.nokia.com";>Maemo</a>.</p>
+
+<h2>Email domain</h2>
+<p>This complex issues is explained in great details in <a href="http://live.gnome.org/Tracker/Documentation/EmailSparql";>this wiki page</a></p>
+
+<p>FIXME add a diagram of the Email classes and main properties</p>
+
+<h2>SMS domain</h2>
+<p>We have a new subclass of message to represent a SMS Message. It is worth to remark that we are talking about a <emph>simple</emph> text message. Things like MMS are more complex (more similar to an email than a simple message), and will have their own classes.
+</p>
+
+<p>An SMS Message comes from the network in vcard format, and it is represented in the ontology with
+</p>
+<ul>
+ <li>A nmo:SMSMessage instance to represent the message itself</li>
+ <li>nmo:to and nmo:from linking the contacts (one of them "me", the other a nco:Contact or even a nco:PersonContact if the software is able to identify him).</li>
+ <li>nmo:plainTextMessageContent inherited from nmo:Message.</li>
+ <li>nmo:containsSMS property will link the message with the relevant nmo:SMSFolder.</li>
+ <li>If needed, language and characterSet are inherited from NIE (nie:language, nie:characterSet), but there is a specific nmo:encoding property.</li>
+ <li>The original vcard can be stored as string under nmo:originalVCard. Still undecided if the full text or just a reference to a file in the filesystem.</li>
+</ul>
+
+<h2>Call domain</h2>
+<p>FIXME Explain call and VoIP call classes</p>
+<h2>Related information</h2>
+
+<h2>Graphical overview</h2>



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