[tracker] Add Maemo Transfer Ontology



commit d259e013a92c573653d110604a41e56cedd1dc4b
Author: Ivan Frade <ifrade src gnome org>
Date:   Thu Apr 9 11:39:39 2009 +0200

    Add Maemo Transfer Ontology
---
 data/ontologies/39-mto.description |   11 +++
 data/ontologies/39-mto.ontology    |  150 ++++++++++++++++++++++++++++++++++++
 data/ontologies/Makefile.am        |    1 +
 3 files changed, 162 insertions(+), 0 deletions(-)

diff --git a/data/ontologies/39-mto.description b/data/ontologies/39-mto.description
new file mode 100644
index 0000000..4e9a22d
--- /dev/null
+++ b/data/ontologies/39-mto.description
@@ -0,0 +1,11 @@
+ prefix dsc: <http://www.tracker-project.org/temp/dsc#> .
+
+<virtual-ontology-uri:39-mto.ontology> a dsc:Ontology ;
+      dsc:title "Maemo Transfer Ontology (MTO)" ;
+      dsc:author "Ivan Frade &lt;ivan frade nokia com&gt;" ;
+      dsc:author "Unknown &lt;divya nokia com&gt;" ;
+      dsc:editor "Ivan Frade &lt;ivan frade nokia com&gt" ;
+      dsc:contributor "Example of contributor" ;
+      
+      dsc:baseUrl "http://www.tracker-project.org/temp/mto#"; ;
+      dsc:relativePath "./39-mto.ontology" .
diff --git a/data/ontologies/39-mto.ontology b/data/ontologies/39-mto.ontology
new file mode 100644
index 0000000..ac0483d
--- /dev/null
+++ b/data/ontologies/39-mto.ontology
@@ -0,0 +1,150 @@
+ prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+ prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+ prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+ prefix nrl: <http://www.semanticdesktop.org/ontologies/2007/08/15/nrl#> .
+ prefix nie: <http://www.semanticdesktop.org/ontologies/2007/01/19/nie#> .
+
+ prefix nfo: <http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#> .
+
+ prefix mto: <http://www.tracker-project.org/temp/mto#> .
+ prefix tracker: <http://www.tracker-project.org/ontologies/tracker#> .
+
+mto: a tracker:Namespace ;
+    tracker:prefix "mto" .
+ 
+mto:TransferElement a rdfs:Class ; 
+    rdfs:label "Transfer element" ;  
+    rdfs:comment "Gives information about the transfer of a single element - typically a file. The properties in this class would need to be changed if it has to handle sync elements as well" ; 
+    rdfs:subClassOf nie:InformationElement .
+
+mto:Transfer a rdfs:Class ;
+    rdfs:label "Transfer" ;
+    rdfs:comment "Represent a single transfer task, which could have multiple transfer elements" ;
+    rdfs:subClassOf nie:InformationElement .
+
+mto:UploadTransfer a rdfs:Class ;
+    rdfs:label "Upload" ;
+    rdfs:comment "Handles transfers of files/data present on the device to some place outside the device. Upload methods include uploading to a website, sending via BlueTooth etc. " ;
+    rdfs:subClassOf mto:Transfer .
+
+mto:DownloadTransfer a rdfs:Class ;
+    rdfs:label "Download" ;
+    rdfs:comment "Handles transfers of files outside the device into the device. This class will only refer to files downloaded from a website or recieved using BlueTooth etc. Files recieved with messages are not considered here. Those would be handled seperately using nmo:Message" ;
+    rdfs:subClassOf mto:Transfer .
+
+mto:SyncTransfer a rdfs:Class ;
+    rdfs:label "Sync" ;
+    rdfs:comment "Handles synchronization between the device and some server (a computer, or a website)" ;
+    rdfs:subClassOf mto:Transfer .
+
+# NO Web upload class
+
+mto:source a rdf:Property ;
+    rdfs:label "Source" ;
+    rdfs:comment "The source for the transfer. If the transfer is an upload, it would be the URI for a file on the device. If the transfer is a (web) download, it will be a URL. Question: Does it make more sense to have two fields: uploadSource and downloadSource?" ;
+    nrl:maxCardinality 1 ;
+    rdfs:domain mto:TransferElement ;
+    rdfs:range rdfs:Resource .
+
+mto:destination a rdf:Property ;
+    rdfs:label "Destination" ;
+    rdfs:comment "The destination of the transfer. If the transfer is an download, it would be the URI for a file on the device. If the transfer is a (web) upload, it will be a URL, which will be filled once the upload is completed." ;
+    nrl:maxCardinality 1 ;
+    rdfs:domain mto:TransferElement ;
+    rdfs:range rdfs:Resource . 
+
+mto:startedTime a rdf:Property ;
+    rdfs:label "Started" ;
+    rdfs:comment "Captures the date and time when the transfer was started" ;
+    nrl:maxCardinality 1 ;
+    rdfs:domain mto:TransferElement ;
+    rdfs:range xsd:dateTime .
+
+mto:completedTime a rdf:Property ;
+    rdfs:label "Completed" ;
+    rdfs:comment "Captures the date and time when the transfer ended" ;
+    nrl:maxCardinality 1 ;
+    rdfs:domain mto:TransferElement ;
+    rdfs:range xsd:dateTime .
+
+mto:State a rdfs:Class ;
+    rdfs:label "State value" ;
+    rdfs:subClassOf rdfs:Resource ;
+    rdfs:comment "Class with a restricted set of instances to enumarate transfer methods".
+
+mto:state-active a mto:State .
+mto:state-paused a mto:State .
+mto:state-cancelled a mto:State .
+mto:state-done a mto:State .
+
+mto:state a rdf:Property ;
+    rdfs:label "State" ;
+    rdfs:comment "Captures the current state of the transfer element: Pending (not started), In Progress, Paused, Cancelled, Done" ;
+    nrl:maxCardinality 1 ;
+    rdfs:domain mto:TransferElement ;
+    rdfs:range mto:State .
+
+mto:TransferMethod a rdfs:Class ;
+    rdfs:comment "Class with a restricted set of instances to enumarate transfer methods" .
+
+mto:transfer-method-bluetooth a mto:TransferMethod .
+mto:transfer-method-web a mto:TransferMethod .
+
+mto:method a rdf:Property ; 
+    rdfs:label "Method" ;
+    rdfs:comment "The method of transfer - Bluetooth, Web upload etc" ;
+    nrl:maxCardinality 1 ;
+    rdfs:domain mto:Transfer ;
+    rdfs:range mto:TransferMethod .
+
+mto:created a rdf:Property ;
+    rdfs:label "Created" ;
+    rdfs:comment "The date and time when the transfer was created" ;
+    nrl:maxCardinality 1 ;
+    rdfs:domain mto:Transfer ;
+    rdfs:range xsd:dateTime .
+
+mto:transferList a rdf:Property ; 
+    rdfs:label "Transfer List" ;
+    rdfs:comment "A list of transfer elements" ;
+    rdfs:domain mto:Transfer ;
+    rdfs:range mto:TransferElement . 
+
+# unknown range - will need to be defined by the Account management guys 
+# FIXME FIXME FIXME FIXME: At the moment xsd:string so the transfer app guys can start working.
+#  Waiting for a holistic accounts solution 
+#  It could also be a ContactMedium
+mto:account a rdf:Property ;
+    rdfs:label "Account" ;
+    rdfs:comment "A reference to the account to which the web upload is to be done. This should at least contain information about the account and the service which is being used. For instance, Google/YouTube or Google/Picassa" ;
+    nrl:maxCardinality 1 ;
+    rdfs:domain mto:Transfer ;
+    rdfs:range xsd:string . 
+
+mto:starter a rdf:Property ;
+    rdfs:label "Starter" ;
+    rdfs:comment "The application that actually triggered the transfer - e.g. Gallery, Content Manager etc" ;
+    nrl:maxCardinality 1 ;
+    rdfs:domain mto:Transfer ;
+    rdfs:range nfo:Software .
+
+mto:agent a rdf:Property ; 
+    rdfs:label "Agent" ;
+    rdfs:comment "The application processing the transfer - e.g. Upload Engine etc" ;
+    nrl:maxCardinality 1 ;
+    rdfs:domain mto:Transfer ;
+    rdfs:range nfo:Software .
+
+mto:transferCategory a rdf:Property ;
+	rdfs:label "Category for the transfer" ;
+	rdfs:comment "This can contain category / tag / album / folder in the destination service" ;
+        rdfs:domain mto:UploadTransfer ;
+        rdfs:range  xsd:string .
+
+# eg. Privacy level available to ALL transfers (or only to uploads?)
+mto:transferPrivacyLevel a rdf:Property ;
+        rdfs:label "Privacy level" ;
+        rdfs:comment "It will contain an string with the privacy level in the service. The exact string and its interpretation is service specific" ;
+        rdfs:domain mto:Transfer ;
+        rdfs:range  xsd:string .
+
diff --git a/data/ontologies/Makefile.am b/data/ontologies/Makefile.am
index f2647eb..d94b34b 100644
--- a/data/ontologies/Makefile.am
+++ b/data/ontologies/Makefile.am
@@ -15,6 +15,7 @@ config_DATA =			\
 	35-ncal.ontology	\
 	37-nid3.ontology	\
 	38-nmm.ontology		\
+	39-mto.ontology		\
 	90-tracker.ontology	\
 	91-maemo.ontology
 



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