[tracker] New Feeds ontology
- From: Ivan Frade <ifrade src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] New Feeds ontology
- Date: Fri, 7 Aug 2009 12:47:50 +0000 (UTC)
commit 380f6ccc0ad6952ce27950af7df145ad5f0a0913
Author: Ivan Frade <ivan frade nokia com>
Date: Thu Aug 6 17:11:46 2009 +0300
New Feeds ontology
Replaced the old too-simple FeedChannel/FeedMessage class with a more detailed description. Still unstable.
data/ontologies/34-nmo.ontology | 18 ----
data/ontologies/41-mfo.ontology | 181 +++++++++++++++++++++++++++++++++++++++
2 files changed, 181 insertions(+), 18 deletions(-)
---
diff --git a/data/ontologies/34-nmo.ontology b/data/ontologies/34-nmo.ontology
index db865a4..5086076 100644
--- a/data/ontologies/34-nmo.ontology
+++ b/data/ontologies/34-nmo.ontology
@@ -64,13 +64,6 @@ nmo:PermanentChannel a rdfs:Class ;
nmo:TransientChannel a rdfs:Class ;
rdfs:subClassOf nmo:CommunicationChannel .
-nmo:FeedChannel a rdfs:Class ;
- rdfs:subClassOf nmo:CommunicationChannel .
-
-nmo:FeedMessage a rdfs:Class ;
- tracker:notify true ;
- rdfs:subClassOf nmo:Message .
-
nmo:VOIPCall a rdfs:Class ;
rdfs:subClassOf nmo:Message .
@@ -234,17 +227,6 @@ nmo:duration a rdf:Property ;
rdfs:domain nmo:VOIPCall ;
rdfs:range xsd:integer .
-nmo:feedChannelTitle a rdf:Property ;
- nrl:maxCardinality 1 ;
- rdfs:domain nmo:FeedChannel ;
- rdfs:range xsd:string .
-
-# FIXME Extension to nepomuk (string... we dont want a resource)
-nmo:image a rdf:Property ;
- nrl:maxCardinality 1 ;
- rdfs:domain nmo:FeedChannel ;
- rdfs:range xsd:string .
-
# FIXME Extension to nepomuk
nmo:accountName a rdf:Property ;
nrl:maxCardinality 1 ;
diff --git a/data/ontologies/41-mfo.ontology b/data/ontologies/41-mfo.ontology
new file mode 100644
index 0000000..2275197
--- /dev/null
+++ b/data/ontologies/41-mfo.ontology
@@ -0,0 +1,181 @@
+ 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 tracker: <http://www.tracker-project.org/ontologies/tracker#> .
+ prefix nmo: <http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#> .
+ prefix mfo: <http://www.tracker-project.org/temp/mfo#> .
+
+
+mfo: a tracker:Namespace ;
+ tracker:prefix "mfo" .
+
+mfo:FeedElement a rdfs:Class;
+ rdfs:label "Feed element";
+ rdfs:comment "Superclass for all elements related with feeds, to provide common configuration options";
+ rdfs:subClassOf rdfs:Resource .
+
+mfo:FeedChannel a rdfs:Class ;
+ tracker:notify true ;
+ rdfs:label "Feed channel" ;
+ rdfs:comment "Represents feed channel transfer, typically a download of RSS or ATOM. It is also a communication channel of Nepomuk Messaging Ontology so that feed sources could be treated as message sources" ;
+ rdfs:subClassOf nmo:CommunicationChannel, mfo:FeedElement .
+
+mfo:FeedMessage a rdfs:Class ;
+ tracker:notify true ;
+ rdfs:label "Feed entry" ;
+ rdfs:comment "Represents feed entry on top of Nepomuk Messaging Ontology's message. May have enclosures attached and certain settings that allow deviation from feed channel's setup" ;
+ rdfs:subClassOf nmo:Message, mfo:FeedElement .
+
+mfo:Enclosure a rdfs:Class ;
+ rdfs:label "Message enclosure" ;
+ rdfs:comment "Represents an enclosure of a feed message" ;
+ rdfs:subClassOf nfo:FileDataObject .
+# ????? FileDataObject?????
+
+mfo:FeedSettings a rdfs:Class ;
+ rdfs:label "Resource settings" ;
+ rdfs:comment "Represents settings applied to a feed channel or a feed entry. How often it is updated, through which connection type it is delivered, when data expires and so on" ;
+ rdfs:subClassOr rdfs:Resource.
+# rdfs:subClassOf nie:InformationElement .
+
+
+# PROPERTIES OF CHANNEL
+mfo:image a rdf:Property ;
+ nrl:maxCardinality 1 ;
+ rdfs:domain mfo:FeedChannel ;
+ rdfs:range xsd:string .
+
+# updateTime is used to store a local timestamp of feed message
+# remote time is stored using nie:contentLastModified
+
+mfo:updatedTime a rdf:Property ;
+ nrl:maxCardinality 1 ;
+ rdfs:label "Updated" ;
+ rdfs:comment "Captures the updated date and time when the channel is updated" ;
+ rdfs:domain mfo:FeedChannel ;
+ rdfs:range xsd:dateTime .
+
+mfo:unreadCount a rdf:Property;
+ rdfs:label " Unread count";
+ rdfs:comment "Unread messages count within a channel";
+ rdfs:domain mfo:FeedChannel;
+ nrl:maxCardinality 1;
+ rdfs:range xsd:integer.
+
+mfo:totalCount a rdf:Property;
+ rdfs:label " Total count";
+ rdfs:comment "Total messages count within a channel";
+ rdfs:domain mfo:FeedChannel;
+ nrl:maxCardinality 1;
+ rdfs:range xsd:integer.
+
+
+#PROPERTIES OF MESSAGE
+mfo:downloadedTime a rdf:Property ;
+ rdfs:label "Downloaded" ;
+ rdfs:comment "Captures the time stamp when message was downloaded" ;
+ nrl:maxCardinality 1 ;
+ rdfs:domain mfo:FeedMessage ;
+ rdfs:range xsd:dateTime .
+
+mfo:enclosureList a rdf:Property ;
+ rdfs:label "Enclosure List" ;
+ rdfs:comment "A list of enclosures" ;
+ rdfs:domain mfo:FeedMessage ;
+ rdfs:range mfo:Enclosure .
+
+# String? Resource? RemoteDataObject?
+mfo:remoteLink a rdf:Property ;
+ rdfs:label "Enclosure link" ;
+ rdfs:comment "Used to store remote URL of enclosure" ;
+ rdfs:domain mfo:Enclosure ;
+ nrl:maxCardinality 1 ;
+ rdfs:range xsd:string .
+
+# Settings available for all Feed Elements
+mfo:feedSettings a rdf:Property ;
+ rdfs:label "Feed element settings" ;
+ rdfs:comment "Settings ";
+ nrl:maxCardinality 1 ;
+ rdfs:doman mfo:FeedElement ;
+ rdfs:range mfo:FeedSettings .
+
+mfo:updateInterval a rdf:Property ;
+ rdfs:label "Update Interval" ;
+ rdfs:comment "Update interval for a feed channel to get updated or refreshed. FIXME Set units" ;
+ nrl:maxCardinality 1 ;
+ rdfs:domain mfo:FeedSettings ;
+ rdfs:range xsd:integer .
+
+mfo:expiryInterval a rdf:Property ;
+ rdfs:label "Expiry Interval" ;
+ rdfs:comment "Expiry interval for feed channel, it tells time that a message in a channel can live. FIXME Set units" ;
+ nrl:maxCardinality 1 ;
+ rdfs:domain mfo:FeedSettings ;
+ rdfs:range xsd:integer .
+
+mfo:downloadPath a rdf:Property ;
+ rdfs:label "Download path" ;
+ rdfs:comment "Download path for enclosures in a message" ;
+ rdfs:domain mfo:FeedSettings ;
+ rdfs:range xsd:string;
+ nrl:maxCardinality 1 .
+
+mfo:downloadFlag a rdf:Property ;
+ rdfs:label "Download" ;
+ rdfs:comment "To indicate whether enclosures will be downloaded or not" ;
+ rdfs:domain mfo:FeedSettings ;
+ rdfs:range xsd:boolean ;
+ nrl:maxCardinality 1 .
+
+mfo:maxSize a rdf:Property ;
+ rdfs:label "SIZE" ;
+ rdfs:comment "Maximum size of enclosure that can be downloaded. FIXME Set units " ;
+ rdfs:domain mfo:FeedSettings ;
+ rdfs:range xsd:integer ;
+ nrl:maxCardinality 1 .
+
+# Feed actions
+mfo:Action a rdfs:Class ;
+ rdfs:label "Action Requests" ;
+ rdfs:comment "class with a restricted set of actions" ;
+ rdfs:subClassOf rdfs:Resource .
+
+mfo:action a rdf:Property ;
+ rdfs:label "Action" ;
+ rdfs:comment "Captures the current action for the channel: Refresh Now" ;
+ nrl:maxCardinality 1 ;
+ rdfs:domain mfo:FeedChannel ;
+ rdfs:range mfo:Action .
+
+mfo:refresh-now a mfo:Action .
+
+# Feed types
+mfo:FeedType a rdfs:Class ;
+ rdfs:label "Feed fomat type " ;
+ rdfs:comment "class with a restricted set of feed types" ;
+ rdfs:subClassOf rdfs:Resource .
+
+#mfo:flickr a mfo:FeedType .
+#mfo:rss-atom a mfo:FeedType .
+
+mfo:name a rdf:Property ;
+ rdfs:label "Feed type name or plugin name" ;
+ rdfs:comment "Feed format name like rss-atom,flickr,facebook" ;
+ nrl:maxCardinality 1 ;
+ rdfs:domain mfo:FeedType ;
+ rdfs:range xsd:string .
+
+mfo:type a rdf:Property ;
+ rdfs:label "Feed formats type" ;
+ rdfs:comment " Feeds format type which is mapped to plugin used in engine: flickr,rss-atom " ;
+ nrl:maxCardinality 1;
+ rdfs:domain mfo:FeedChannel ;
+ rdfs:range mfo:FeedType .
+
+
+
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]