summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Trueg <trueg@kde.org>2010-05-04 13:51:11 +0000
committerSebastian Trueg <trueg@kde.org>2010-05-04 13:51:11 +0000
commitbf22352fbb210a1c39b3075d40c66684a7b83de6 (patch)
tree6287aa722f4b6e4494810ede1f38b82cc0d5b9a3
parentefe46962811753041ab03efbd02306e4b9f2b1b0 (diff)
Moved NUAO and NDO out of drafts into ontologies and added the necessary build system constructs and files.
-rw-r--r--CMakeLists.txt4
-rw-r--r--ChangeLog8
-rw-r--r--ndo/ndo.ontology.in8
-rw-r--r--ndo/ndo.trig105
-rw-r--r--nuao/nuao.ontology.in8
-rw-r--r--nuao/nuao.trig218
6 files changed, 350 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6b2e6a4..f0165f2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,7 +8,7 @@ project(shared-desktop-ontologies)
# ===============================================================================================
set(SHAREDDESKTOPONTOLOGIES_VERSION_MAJOR 0)
set(SHAREDDESKTOPONTOLOGIES_VERSION_MINOR 3)
-set(SHAREDDESKTOPONTOLOGIES_VERSION_RELEASE 60)
+set(SHAREDDESKTOPONTOLOGIES_VERSION_RELEASE 61)
set(SHAREDDESKTOPONTOLOGIES_VERSION "${SHAREDDESKTOPONTOLOGIES_VERSION_MAJOR}.${SHAREDDESKTOPONTOLOGIES_VERSION_MINOR}.${SHAREDDESKTOPONTOLOGIES_VERSION_RELEASE}")
@@ -70,3 +70,5 @@ install_ontology(nid3/nid3 nie)
install_ontology(pimo/pimo pimo)
install_ontology(tmo/tmo pimo)
install_ontology(nso/nso nepomuk)
+install_ontology(ndo/ndo nepomuk)
+install_ontology(nuao/nuao nepomuk)
diff --git a/ChangeLog b/ChangeLog
index 64cf920..c448114 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+0.4
+ 05/042010 - trueg:
+ Added NDO and NUAO ontologies to the distributed ontologies.
+ Both are still marked as being in the "Testing" state.
+
+ 05/042010 - trueg:
+ Fixed syntax error in nid3.trig
+
0.3
03/08/2010 - phreedom:
Added nrl:DiscardableInstanceBase
diff --git a/ndo/ndo.ontology.in b/ndo/ndo.ontology.in
new file mode 100644
index 0000000..5c836b4
--- /dev/null
+++ b/ndo/ndo.ontology.in
@@ -0,0 +1,8 @@
+[Ontology]
+Version=1.0
+Name=Nepomuk Download Ontology
+Comment=The Nepomuk Download Ontology provides classes and properties to describe file downloads.
+Namespace=http://www.semanticdesktop.org/ontologies/2010/04/30/ndo#
+Path=${ONTO_INSTALL_DIR}/ndo.trig
+MimeType=application/x-trig
+Type=Data
diff --git a/ndo/ndo.trig b/ndo/ndo.trig
new file mode 100644
index 0000000..da4881a
--- /dev/null
+++ b/ndo/ndo.trig
@@ -0,0 +1,105 @@
+#
+# Copyright (c) 2010 Evgeny Egorochkin <phreedom.stdin@gmail.com>
+# All rights reserved, licensed under either CC-BY or BSD.
+#
+# You are free:
+# * to Share - to copy, distribute and transmit the work
+# * to Remix - to adapt the work
+# Under the following conditions:
+# * Attribution - You must attribute the work in the manner specified by the author
+# or licensor (but not in any way that suggests that they endorse you or your use
+# of the work).
+#
+# Redistribution and use in source and binary forms, with or without modification,
+# are permitted provided that the following conditions are met:
+# * Redistributions of source code must retain the above copyright notice, this
+# list of conditions and the following disclaimer.
+# * Redistributions in binary form must reproduce the above copyright notice, this
+# list of conditions and the following disclaimer in the documentation and/or
+# other materials provided with the distribution.
+# * Neither the names of the authors nor the names of contributors may
+# be used to endorse or promote products derived from this ontology without
+# specific prior written permission.
+#
+# THIS ONTOLOGY IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+# THIS ONTOLOGY, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix ndo: <http://www.semanticdesktop.org/ontologies/2010/04/30/ndo#> .
+@prefix nrl: <http://www.semanticdesktop.org/ontologies/2007/08/15/nrl#> .
+@prefix nuao: <http://www.semanticdesktop.org/ontologies/2010/01/25/nuao#> .
+@prefix nao: <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#> .
+@prefix nmo: <http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#> .
+@prefix nco: <http://www.semanticdesktop.org/ontologies/2007/03/22/nco#> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@prefix nie: <http://www.semanticdesktop.org/ontologies/2007/01/19/nie#> .
+@prefix nfo: <http://www.semanticdesktop.org/ontologies/2007/03/22/nfo> .
+
+ndo: {
+
+ ndo:P2PFile
+ a rdfs:Class ;
+ rdfs:subClassOf nfo:RemoteDataObject;
+ rdfs:label "P2P file" ;
+ rdfs:comment "A file available via a peer-to-peer network" .
+
+ ndo:TorrentedFile
+ a rdfs:Class ;
+ rdfs:subClassOf ndo:P2PFile;
+ rdfs:label "torrented file" ;
+ rdfs:comment "A file available via a BitTorrent peer-to-peer network" .
+
+ ndo:Torrent
+ a rdfs:Class;
+ rdfs:subClassOf nie:InformationElement;
+ rdfs:label "torrent" ;
+ rdfs:comment "A .torrent file which contains references(ndo:TorrentedFile) to files available via BitTorrent. The references are pointed to via nie:hasLogicalPart" .
+
+ ndo:DownloadEvent
+ a rdfs:Class ;
+ rdfs:subClassOf nuao:DesktopEvent ;
+ rdfs:label "download event" ;
+ rdfs:comment "A single event (from the point of view of the user) of downloading of a file or a set of files. Use nuao:involvedInEvent to indicate the files involved. The event is assigned to downloaded copies of files. Can be assigned to multiple files." .
+
+ ndo:copiedFrom
+ a rdf:Property ;
+ rdfs:label "copied from" ;
+ rdfs:comment "Links a DataObject with its copy. This relation means that originally the Data Objects were copies but might have changed subsequentially." ;
+ rdfs:domain nie:DataObject ;
+ rdfs:range nie:DataObject .
+
+ ndo:referrer
+ a rdf:Property ;
+ rdfs:label "referrer" ;
+ rdfs:comment "Points to the Information Element that contained the link to the download source which was used in the download event." ;
+ rdfs:domain ndo:DownloadEvent ;
+ rdfs:range nie:InformationElement .
+}
+
+<http://www.semanticdesktop.org/ontologies/2010/04/30/ndo/metadata>
+{
+ <http://www.semanticdesktop.org/ontologies/2010/04/30/ndo>
+ a nrl:DocumentGraph , nrl:KnowledgeBase ;
+ nao:hasDefaultNamespace "http://www.semanticdesktop.org/ontologies/2010/04/30/ndo#" ;
+ nao:hasDefaultNamespaceAbbreviation "ndo" ;
+ nao:lastModified "2010-04-30T09:38:49Z" ;
+ nao:serializationLanguage "TriG" ;
+ nao:status "Testing" ;
+ nrl:updatable "0" ;
+ nao:version "1" .
+
+ <http://www.semanticdesktop.org/ontologies/2010/04/30/ndo/metadata>
+ a nrl:GraphMetadata , nrl:DocumentGraph ;
+ nao:serializationLanguage "TriG" ;
+ nrl:coreGraphMetadataFor <http://www.semanticdesktop.org/ontologies/2010/04/30/ndo> .
+}
diff --git a/nuao/nuao.ontology.in b/nuao/nuao.ontology.in
new file mode 100644
index 0000000..e44cbc2
--- /dev/null
+++ b/nuao/nuao.ontology.in
@@ -0,0 +1,8 @@
+[Ontology]
+Version=1.0
+Name=Nepomuk User Action Ontology
+Comment=The Nepomuk User Action Ontology provides basic classes and properties for desktop events.
+Namespace=http://www.semanticdesktop.org/ontologies/2010/01/25/nuao#
+Path=${ONTO_INSTALL_DIR}/nuao.trig
+MimeType=application/x-trig
+Type=Data
diff --git a/nuao/nuao.trig b/nuao/nuao.trig
new file mode 100644
index 0000000..0e70322
--- /dev/null
+++ b/nuao/nuao.trig
@@ -0,0 +1,218 @@
+#
+# Copyright (c) 2010 Evgeny Egorochkin <phreedom.stdin@gmail.com>
+# All rights reserved, licensed under either CC-BY or BSD.
+#
+# You are free:
+# * to Share - to copy, distribute and transmit the work
+# * to Remix - to adapt the work
+# Under the following conditions:
+# * Attribution - You must attribute the work in the manner specified by the author
+# or licensor (but not in any way that suggests that they endorse you or your use
+# of the work).
+#
+# Redistribution and use in source and binary forms, with or without modification,
+# are permitted provided that the following conditions are met:
+# * Redistributions of source code must retain the above copyright notice, this
+# list of conditions and the following disclaimer.
+# * Redistributions in binary form must reproduce the above copyright notice, this
+# list of conditions and the following disclaimer in the documentation and/or
+# other materials provided with the distribution.
+# * Neither the names of the authors nor the names of contributors may
+# be used to endorse or promote products derived from this ontology without
+# specific prior written permission.
+#
+# THIS ONTOLOGY IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+# THIS ONTOLOGY, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+
+@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 nao: <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@prefix nuao: <http://www.semanticdesktop.org/ontologies/2010/01/25/nuao#> .
+
+nuao: {
+
+ nuao:Event
+ a rdfs:Class ;
+ rdfs:comment "An event: activity that have a specific start datetime and possibly a duration" ;
+ rdfs:label "event" ;
+ rdfs:subClassOf rdfs:Resource .
+
+ nuao:start
+ a rdf:Property ;
+ rdfs:comment "The time of the start of the event" ;
+ rdfs:domain nuao:Event ;
+ rdfs:label "start" ;
+ rdfs:range xsd:dateTime ;
+ nrl:maxCardinality "1"^^xsd:nonNegativeInteger .
+
+ nuao:duration
+ a rdf:Property ;
+ rdfs:comment "Duration of the event" ;
+ rdfs:domain nuao:Event ;
+ rdfs:label "duration" ;
+ rdfs:range xsd:duration ;
+ nrl:maxCardinality "1"^^xsd:nonNegativeInteger .
+
+
+
+ nuao:DesktopEvent
+ a rdfs:Class ;
+ rdfs:comment """A desktop event: activity performed by an user. A "hook" class that should be extended by other ontologies such as desktop service ontology to specify which application or service was involved in the desktop event.""" ;
+ rdfs:label "desktop event" ;
+ rdfs:subClassOf nuao:Event .
+
+ nuao:involvedInEvent
+ a rdf:Property ;
+ rdfs:comment "Points to a detailed description of an event that involved this resource." ;
+ rdfs:domain rdfs:Resource ;
+ rdfs:label "involved in event" ;
+ rdfs:range nuao:DesktopEvent .
+
+
+
+ nuao:firstEvent
+ a rdf:Property ;
+ rdfs:comment "The start time of the first event" ;
+ rdfs:domain rdfs:Resource ;
+ rdfs:label "first event" ;
+ rdfs:range xsd:dateTime ;
+ nrl:maxCardinality "1"^^xsd:nonNegativeInteger .
+
+ nuao:lastEvent
+ a rdf:Property ;
+ rdfs:comment "The start time of the last event" ;
+ rdfs:domain rdfs:Resource ;
+ rdfs:label "last event" ;
+ rdfs:range xsd:dateTime ;
+ nrl:maxCardinality "1"^^xsd:nonNegativeInteger .
+
+ nuao:eventCount
+ a rdf:Property ;
+ rdfs:comment "The total number of events" ;
+ rdfs:domain rdfs:Resource ;
+ rdfs:label "event count" ;
+ rdfs:range xsd:nonNegativeInteger ;
+ nrl:maxCardinality "1"^^xsd:nonNegativeInteger .
+
+ nuao:totalEventDuration
+ a rdf:Property ;
+ rdfs:comment "The total duration of all events" ;
+ rdfs:domain rdfs:Resource ;
+ rdfs:label "event count" ;
+ rdfs:range xsd:duration ;
+ nrl:maxCardinality "1"^^xsd:nonNegativeInteger .
+
+
+
+ nuao:UsageEvent
+ a rdfs:Class ;
+ rdfs:comment "An event of primary or intended use of the resource by the user. Primary or intended use is defined as the use by the consumer of the resource, such as watching a movie or listening to a song. Not to be confused with a low-level read on a file." ;
+ rdfs:label "desktop event" ;
+ rdfs:subClassOf nuao:DesktopEvent .
+
+ nuao:firstUsage
+ a rdf:Property ;
+ rdfs:subPropertyOf nuao:firstEvent ;
+ rdfs:comment "The start time of the first usage" ;
+ rdfs:domain rdfs:Resource ;
+ rdfs:label "first usage" ;
+ rdfs:range xsd:dateTime ;
+ nrl:maxCardinality "1"^^xsd:nonNegativeInteger .
+
+ nuao:lastUsage
+ a rdf:Property ;
+ rdfs:subPropertyOf nuao:lastEvent ;
+ rdfs:comment "The start time of the last usage" ;
+ rdfs:domain rdfs:Resource ;
+ rdfs:label "last usage" ;
+ rdfs:range xsd:dateTime ;
+ nrl:maxCardinality "1"^^xsd:nonNegativeInteger .
+
+ nuao:usageCount
+ a rdf:Property ;
+ rdfs:subPropertyOf nuao:eventCount ;
+ rdfs:comment "The total number of usages" ;
+ rdfs:domain rdfs:Resource ;
+ rdfs:label "usage count" ;
+ rdfs:range xsd:nonNegativeInteger ;
+ nrl:maxCardinality "1"^^xsd:nonNegativeInteger .
+
+ nuao:totalUsageDuration
+ a rdf:Property ;
+ rdfs:subPropertyOf nuao:totalEventDuration ;
+ rdfs:comment "The total duration of all usages" ;
+ rdfs:domain rdfs:Resource ;
+ rdfs:label "usage count" ;
+ rdfs:range xsd:duration ;
+ nrl:maxCardinality "1"^^xsd:nonNegativeInteger .
+
+
+
+ nuao:ModificationEvent
+ a rdfs:Class ;
+ rdfs:comment "An event that lead to changes of the resource that are meaningful to the user" ;
+ rdfs:label "desktop event" ;
+ rdfs:subClassOf nuao:DesktopEvent .
+
+ nuao:firstModification
+ a rdf:Property ;
+ rdfs:comment "The start time of the first modification" ;
+ rdfs:domain rdfs:Resource ;
+ rdfs:label "first modification event" ;
+ rdfs:range xsd:dateTime ;
+ nrl:maxCardinality "1"^^xsd:nonNegativeInteger .
+
+ nuao:lastModification
+ a rdf:Property ;
+ rdfs:comment "The start time of the last modification" ;
+ rdfs:domain rdfs:Resource ;
+ rdfs:label "last modification" ;
+ rdfs:range xsd:dateTime ;
+ nrl:maxCardinality "1"^^xsd:nonNegativeInteger .
+
+ nuao:modificationCount
+ a rdf:Property ;
+ rdfs:comment "The total number of modifications" ;
+ rdfs:domain rdfs:Resource ;
+ rdfs:label "modification count" ;
+ rdfs:range xsd:nonNegativeInteger ;
+ nrl:maxCardinality "1"^^xsd:nonNegativeInteger .
+
+ nuao:totalModificationDuration
+ a rdf:Property ;
+ rdfs:comment "The total duration of all modifications" ;
+ rdfs:domain rdfs:Resource ;
+ rdfs:label "modification count" ;
+ rdfs:range xsd:duration ;
+ nrl:maxCardinality "1"^^xsd:nonNegativeInteger .
+
+}
+
+<http://www.semanticdesktop.org/ontologies/2010/01/25/nuao/metadata>
+{
+ nuao:
+ a nrl:DocumentGraph , nrl:KnowledgeBase ;
+ nao:hasDefaultNamespace "http://www.semanticdesktop.org/ontologies/2010/01/25/nuao#" ;
+ nao:hasDefaultNamespaceAbbreviation "nuao" ;
+ nao:lastModified "2010-01-25T16:56:36" ;
+ nao:serializationLanguage "TriG" ;
+ nao:status "Testing" ;
+ nrl:updatable "0" ;
+ nao:version "1" .
+
+ <http://www.semanticdesktop.org/ontologies/2010/01/25/nuao/metadata>
+ a nrl:GraphMetadata , nrl:DocumentGraph ;
+ nao:serializationLanguage "TriG" ;
+ nrl:coreGraphMetadataFor nuao: .
+}