reinstating patch by Hasso Tepper that was once reverted for BIC problems,
[kdelibs.git] / kmetadata / ontology.rdf
blob01c3c777455a74186a9700c8aa1492f21ad6a834
1 <?xml version="1.0" encoding="UTF-8"?>
2 <rdf:RDF
3 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
4 xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
5 xmlns:nrl="http://semanticdesktop.org/ontology/nrl-20061204#"
6 xmlns:nkde="http://nepomuk-kde.semanticdesktop.org/ontology/nkde-0.1#"
7 xmlns:dc="http://purl.org/dc/elements/1.1/">
9 <rdf:Description rdf:about="nkde:Thing">
10 <rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/>
11 <rdfs:comment xml:lang="en-US">Thing is the base class of nearly everyThing. It represents all user-accessible resources. It has been introduced to ease certain processes and allow a simpler future extension.</rdfs:comment>
12 </rdf:Description>
14 <rdf:Description rdf:about="nkde:Tag">
15 <rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/>
16 <rdfs:comment xml:lang="en-US">A Tag can be assigned to any Thing. This allows simple grouping of resources. Each Tag is identifed by its name which should be unique.</rdfs:comment>
17 </rdf:Description>
19 <rdf:Property rdf:about="nkde:isRelatedTo">
20 <rdfs:domain rdf:resource="nkde:Thing" />
21 <rdfs:range rdf:resource="nkde:Thing" />
22 <rdfs:comment xml:lang="en-US">isRelatedTo represents the basis for all relation between resources of any kind. Whenever another relation type is defined (for example hasAuthor which might relate some text resource to a person resource) it should be based on this relation.</rdfs:comment>
23 </rdf:Property>
25 <rdf:Property rdf:about="nkde:hasIdentifier">
26 <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/>
27 <rdfs:comment xml:lang="en-US">Each resource has a unique arbitrary URI which can be autogenerated or chosen by some algorithm. The URI of a resource, however, in general has no relation to for example the path or URL of a file or the UID of an email. This is where the hasIdentifier properly comes in: it allows to relate a resource with other (even application-specific) identifiers to have easy access to the resource. Once typical example is the path of a local file (see also hasLocation which is a sub-property of hasIdentifier).</rdfs:comment>
28 </rdf:Property>
30 <rdf:Property rdf:about="nkde:hasTag">
31 <rdfs:range rdf:resource="nkde:Tag"/>
32 <rdfs:domain rdf:resource="nkde:Thing" />
33 </rdf:Property>
35 <rdf:Property rdf:about="nkde:hasAnnotation">
36 <rdfs:subPropertyOf rdf:resource="rdfs:comment" />
37 <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/>
38 <nrl:maxCardinality>1</nrl:maxCardinality>
39 <rdfs:domain rdf:resource="nkde:Thing" />
40 <rdfs:comment xml:lang="en-US">EveryThing can be annotated with a simple string comment.</rdfs:comment>
41 </rdf:Property>
43 <rdf:Property rdf:about="nkde:hasTagLabel">
44 <rdfs:subPropertyOf rdf:resource="rdfs:label" />
45 <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/>
46 <nrl:cardinality>1</nrl:cardinality>
47 <rdfs:domain rdf:resource="nkde:Tag" />
48 <rdfs:comment xml:lang="en-US">A Tag is basicly a string value representing the Tag. This label should be unique.</rdfs:comment>
49 </rdf:Property>
51 <rdf:Description rdf:about="nkde:EMail">
52 <rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/>
53 <rdfs:subClassOf rdf:resource="nkde:Thing" />
54 </rdf:Description>
56 <rdf:Description rdf:about="nkde:File">
57 <rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/>
58 <rdfs:subClassOf rdf:resource="nkde:Thing" />
59 </rdf:Description>
61 <rdf:Property rdf:about="nkde:hasLocation">
62 <rdfs:subPropertyOf rdf:resource="nkde:hasIdentifier" />
63 <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/>
64 <nrl:cardinality>1</nrl:cardinality>
65 <rdfs:domain rdf:resource="nkde:File" />
66 <rdfs:comment xml:lang="en-US">The location of a File is it's URL or path.</rdfs:comment>
67 </rdf:Property>
69 <rdf:Property rdf:about="nkde:hasRating">
70 <rdfs:range rdf:resource="xs:nonNegativeInteger" />
71 <rdfs:domain rdf:resource="nkde:Thing" />
72 <nrl:cardinality>1</nrl:cardinality>
73 <rdfs:comment xml:lang="en-US">Everything can be rated. FIXME: can we define max and min values? Maybe using XML Schema?</rdfs:comment>
74 </rdf:Property>
76 <rdf:Property rdf:about="nkde:hasIcon">
77 <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal" />
78 <rdfs:domain rdf:resource="nkde:Thing" />
79 <rdfs:comment xml:lang="en-US">Everything can have an associated icon. On XDG aware desktop systems the value will in most cases be an icon name. It is also possible to specify the full path to a pixmap file that is to be used.</rdfs:comment>
80 </rdf:Property>
82 <rdf:Property rdf:about="nkde:hasCreationDate">
83 <rdfs:subPropertyOf rdf:resource="dc:date" />
84 <rdfs:domain rdf:resource="nrl:Graph" />
85 <rdfs:comment xml:lang="en-US">NIO uses named graphs to state metadata about triples. This property refers to the creation date of each triple in one named graph. Dublin core is not used directly to be more flexible in terms of future changes or extensions.</rdfs:comment>
86 </rdf:Property>
88 <rdf:Property rdf:about="nkde:hasCreator">
89 <rdfs:subPropertyOf rdf:resource="dc:creator" />
90 <rdfs:domain rdf:resource="nrl:Graph" />
91 <rdfs:comment xml:lang="en-US">NIO uses named graphs to state metadata about triples. This property refers to the creator, i.e. the user that added this graph, of each triple in one named graph. Dublin core is not used directly to be more flexible in terms of future changes or extensions.</rdfs:comment>
92 </rdf:Property>
94 <rdf:Property rdf:about="nkde:hasMimetype">
95 <rdfs:domain rdf:resource="nkde:File" />
96 <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal" />
97 <rdfs:comment xml:lang="en-US">The mimetype of a file, for example image/jpeg or application/pdf.</rdfs:comment>
98 </rdf:Property>
100 <rdf:Property rdf:about="nkde:hasSize">
101 <rdfs:domain rdf:resource="nkde:File" />
102 <rdfs:range rdf:resource="xs:unsignedLong" />
103 <rdfs:comment xml:lang="en-US">The size of a file in bytes.</rdfs:comment>
104 </rdf:Property>
106 <rdf:Property rdf:about="nkde:hasFileCreationDate">
107 <rdfs:subPropertyOf rdf:resource="dc:date" />
108 <rdfs:domain rdf:resource="nkde:File" />
109 <rdfs:comment xml:lang="en-US">The creation date of a file.</rdfs:comment>
110 </rdf:Property>
112 <rdf:Property rdf:about="nkde:hasFileModificationDate">
113 <rdfs:subPropertyOf rdf:resource="dc:date" />
114 <rdfs:domain rdf:resource="nkde:File" />
115 <rdfs:comment xml:lang="en-US">The date a file was last modified.</rdfs:comment>
116 </rdf:Property>
118 <rdf:Property rdf:about="nkde:hasOwner">
119 <rdfs:domain rdf:resource="nkde:File" />
120 <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal" />
121 <rdfs:comment xml:lang="en-US">The owner of a file, i.e. the name of the user id owning the file.</rdfs:comment>
122 </rdf:Property>
124 <rdf:Property rdf:about="nkde:hasGroup">
125 <rdfs:domain rdf:resource="nkde:File" />
126 <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal" />
127 <rdfs:comment xml:lang="en-US">The group the file belongs to, i.e. the name of the group id.</rdfs:comment>
128 </rdf:Property>
130 </rdf:RDF>