Merge lp:~rainct/libzeitgeist/update-ontology-feb2012 into lp:libzeitgeist
- update-ontology-feb2012
- Merge into trunk
Proposed by
Siegfried Gevatter
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Mikkel Kamstrup Erlandsen | ||||
Approved revision: | 217 | ||||
Merged at revision: | 217 | ||||
Proposed branch: | lp:~rainct/libzeitgeist/update-ontology-feb2012 | ||||
Merge into: | lp:libzeitgeist | ||||
Diff against target: |
890 lines (+418/-113) 5 files modified
src/zeitgeist-mimetypes.c (+2/-1) src/zeitgeist-ontology-interpretations.h (+123/-7) src/zeitgeist-ontology-manifestations.h (+36/-10) src/zeitgeist-symbols.c (+253/-91) tools/zeitgeist-symbols.template (+4/-4) |
||||
To merge this branch: | bzr merge lp:~rainct/libzeitgeist/update-ontology-feb2012 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mikkel Kamstrup Erlandsen | Approve | ||
Review via email: mp+91259@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote : | # |
review:
Needs Fixing
Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote : | # |
Great!
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'src/zeitgeist-mimetypes.c' |
2 | --- src/zeitgeist-mimetypes.c 2012-01-25 13:01:17 +0000 |
3 | +++ src/zeitgeist-mimetypes.c 2012-02-02 12:43:21 +0000 |
4 | @@ -310,6 +310,7 @@ |
5 | zeitgeist_register_mimetype ("text/x-chdr", ZEITGEIST_NFO_SOURCE_CODE); |
6 | zeitgeist_register_mimetype ("application/x-gzip", ZEITGEIST_NFO_ARCHIVE); |
7 | zeitgeist_register_mimetype ("application/x-dia-diagram", ZEITGEIST_NFO_SOURCE_CODE); |
8 | + zeitgeist_register_mimetype ("image/vnd.djvu", ZEITGEIST_NFO_PAGINATED_TEXT_DOCUMENT); |
9 | zeitgeist_register_mimetype ("application/x-csh", ZEITGEIST_NFO_SOURCE_CODE); |
10 | zeitgeist_register_mimetype ("text/css", ZEITGEIST_NFO_SOURCE_CODE); |
11 | zeitgeist_register_mimetype ("text/x-csharp", ZEITGEIST_NFO_SOURCE_CODE); |
12 | @@ -325,6 +326,7 @@ |
13 | zeitgeist_register_mimetype ("application/vnd.ms-excel", ZEITGEIST_NFO_SPREADSHEET); |
14 | zeitgeist_register_mimetype ("text/x-dsrc", ZEITGEIST_NFO_SOURCE_CODE); |
15 | zeitgeist_register_mimetype ("text/x-haskell", ZEITGEIST_NFO_SOURCE_CODE); |
16 | + zeitgeist_register_mimetype ("inode/directory", ZEITGEIST_NFO_FOLDER); |
17 | zeitgeist_register_mimetype ("application/x-object", ZEITGEIST_NFO_SOURCE_CODE); |
18 | zeitgeist_register_mimetype ("text/x-c", ZEITGEIST_NFO_SOURCE_CODE); |
19 | zeitgeist_register_mimetype ("application/x-ruby", ZEITGEIST_NFO_SOURCE_CODE); |
20 | @@ -335,7 +337,6 @@ |
21 | zeitgeist_register_mimetype ("text/x-m4", ZEITGEIST_NFO_SOURCE_CODE); |
22 | zeitgeist_register_mimetype ("text/x-tcl", ZEITGEIST_NFO_SOURCE_CODE); |
23 | zeitgeist_register_mimetype ("application/ecmascript", ZEITGEIST_NFO_SOURCE_CODE); |
24 | - zeitgeist_register_mimetype ("inode/directory", ZEITGEIST_NFO_FOLDER); |
25 | zeitgeist_register_mimetype ("application/msword", ZEITGEIST_NFO_PAGINATED_TEXT_DOCUMENT); |
26 | zeitgeist_register_mimetype_regex ("application/vnd.oasis.opendocument.text.*", ZEITGEIST_NFO_PAGINATED_TEXT_DOCUMENT); |
27 | zeitgeist_register_mimetype_regex ("application/vnd.oasis.opendocument.presentation.*", ZEITGEIST_NFO_PRESENTATION); |
28 | |
29 | === modified file 'src/zeitgeist-ontology-interpretations.h' |
30 | --- src/zeitgeist-ontology-interpretations.h 2011-03-07 14:19:39 +0000 |
31 | +++ src/zeitgeist-ontology-interpretations.h 2012-02-02 12:43:21 +0000 |
32 | @@ -129,6 +129,71 @@ |
33 | #define ZEITGEIST_NCAL_TODO "http://www.semanticdesktop.org/ontologies/2007/04/02/ncal#Todo" |
34 | |
35 | /** |
36 | + * ZEITGEIST_NCO_CONTACT: |
37 | + * |
38 | + * Macro defining the interpretation type <ulink url="http://www.semanticdesktop.org/ontologies/2007/03/22/nco#Contact">http://www.semanticdesktop.org/ontologies/2007/03/22/nco#Contact</ulink> |
39 | + * |
40 | + * A Contact. A piece of data that can provide means to identify or communicate with an entity. |
41 | + * |
42 | + * Children: #ZEITGEIST_NCO_PERSON_CONTACT, #ZEITGEIST_NCO_ORGANIZATION_CONTACT |
43 | + * |
44 | + * Parents: None |
45 | + */ |
46 | +#define ZEITGEIST_NCO_CONTACT "http://www.semanticdesktop.org/ontologies/2007/03/22/nco#Contact" |
47 | + |
48 | +/** |
49 | + * ZEITGEIST_NCO_CONTACT_GROUP: |
50 | + * |
51 | + * Macro defining the interpretation type <ulink url="http://www.semanticdesktop.org/ontologies/2007/03/22/nco#ContactGroup">http://www.semanticdesktop.org/ontologies/2007/03/22/nco#ContactGroup</ulink> |
52 | + * |
53 | + * A group of Contacts. Could be used to express a group in an addressbook or on a contact list of an IM application. One contact can belong to many groups. |
54 | + * |
55 | + * Children: None |
56 | + * |
57 | + * Parents: None |
58 | + */ |
59 | +#define ZEITGEIST_NCO_CONTACT_GROUP "http://www.semanticdesktop.org/ontologies/2007/03/22/nco#ContactGroup" |
60 | + |
61 | +/** |
62 | + * ZEITGEIST_NCO_CONTACT_LIST: |
63 | + * |
64 | + * Macro defining the interpretation type <ulink url="http://www.semanticdesktop.org/ontologies/2007/03/22/nco#ContactList">http://www.semanticdesktop.org/ontologies/2007/03/22/nco#ContactList</ulink> |
65 | + * |
66 | + * A contact list, this class represents an addressbook or a contact list of an IM application. Contacts inside a contact list can belong to contact groups. |
67 | + * |
68 | + * Children: None |
69 | + * |
70 | + * Parents: None |
71 | + */ |
72 | +#define ZEITGEIST_NCO_CONTACT_LIST "http://www.semanticdesktop.org/ontologies/2007/03/22/nco#ContactList" |
73 | + |
74 | +/** |
75 | + * ZEITGEIST_NCO_ORGANIZATION_CONTACT: |
76 | + * |
77 | + * Macro defining the interpretation type <ulink url="http://www.semanticdesktop.org/ontologies/2007/03/22/nco#OrganizationContact">http://www.semanticdesktop.org/ontologies/2007/03/22/nco#OrganizationContact</ulink> |
78 | + * |
79 | + * A Contact that denotes on Organization. |
80 | + * |
81 | + * Children: None |
82 | + * |
83 | + * Parents: #ZEITGEIST_NCO_CONTACT |
84 | + */ |
85 | +#define ZEITGEIST_NCO_ORGANIZATION_CONTACT "http://www.semanticdesktop.org/ontologies/2007/03/22/nco#OrganizationContact" |
86 | + |
87 | +/** |
88 | + * ZEITGEIST_NCO_PERSON_CONTACT: |
89 | + * |
90 | + * Macro defining the interpretation type <ulink url="http://www.semanticdesktop.org/ontologies/2007/03/22/nco#PersonContact">http://www.semanticdesktop.org/ontologies/2007/03/22/nco#PersonContact</ulink> |
91 | + * |
92 | + * A Contact that denotes a Person. A person can have multiple Affiliations. |
93 | + * |
94 | + * Children: None |
95 | + * |
96 | + * Parents: #ZEITGEIST_NCO_CONTACT |
97 | + */ |
98 | +#define ZEITGEIST_NCO_PERSON_CONTACT "http://www.semanticdesktop.org/ontologies/2007/03/22/nco#PersonContact" |
99 | + |
100 | +/** |
101 | * ZEITGEIST_NFO_APPLICATION: |
102 | * |
103 | * Macro defining the interpretation type <ulink url="http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Application">http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Application</ulink> |
104 | @@ -161,7 +226,7 @@ |
105 | * |
106 | * A file containing audio content. |
107 | * |
108 | - * Children: None |
109 | + * Children: #ZEITGEIST_NMM_MUSIC_PIECE |
110 | * |
111 | * Parents: #ZEITGEIST_NFO_MEDIA |
112 | */ |
113 | @@ -250,7 +315,7 @@ |
114 | * |
115 | * Macro defining the interpretation type <ulink url="http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Filesystem">http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Filesystem</ulink> |
116 | * |
117 | - * A filesystem. Examples of filesystems include hard disk partitions, removable media, but also images thereof stored in files. |
118 | + * A filesystem. Examples of filesystems include hard disk partitions, removable media, but also images thereof stored in files such as ISO. |
119 | * |
120 | * Children: #ZEITGEIST_NFO_FILESYSTEM_IMAGE |
121 | * |
122 | @@ -263,7 +328,7 @@ |
123 | * |
124 | * Macro defining the interpretation type <ulink url="http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#FilesystemImage">http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#FilesystemImage</ulink> |
125 | * |
126 | - * An image of a filesystem. Instances of this class may include CD images, DVD images or hard disk partition images created by various pieces of software (e.g. Norton Ghost). |
127 | + * An image of a filesystem. Instances of this class may include CD images, DVD images or hard disk partition images created by various pieces of software (e.g. Norton Ghost). Deprecated in favor of nfo:Filesystem. |
128 | * |
129 | * Children: None |
130 | * |
131 | @@ -343,7 +408,7 @@ |
132 | * |
133 | * A piece of media content. This class may be used to express complex media containers with many streams of various media content (both aural and visual). |
134 | * |
135 | - * Children: #ZEITGEIST_NFO_VISUAL, #ZEITGEIST_NFO_AUDIO, #ZEITGEIST_NMM_MUSIC_PIECE |
136 | + * Children: #ZEITGEIST_NFO_VISUAL, #ZEITGEIST_NFO_AUDIO |
137 | * |
138 | * Parents: None |
139 | */ |
140 | @@ -592,7 +657,7 @@ |
141 | * |
142 | * Children: None |
143 | * |
144 | - * Parents: #ZEITGEIST_NFO_MEDIA |
145 | + * Parents: #ZEITGEIST_NFO_AUDIO |
146 | */ |
147 | #define ZEITGEIST_NMM_MUSIC_PIECE "http://www.semanticdesktop.org/ontologies/2009/02/19/nmm#MusicPiece" |
148 | |
149 | @@ -688,6 +753,19 @@ |
150 | #define ZEITGEIST_NMO_MIME_ENTITY "http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#MimeEntity" |
151 | |
152 | /** |
153 | + * ZEITGEIST_ZG_ACCEPT_EVENT: |
154 | + * |
155 | + * Macro defining the interpretation type <ulink url="http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#AcceptEvent">http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#AcceptEvent</ulink> |
156 | + * |
157 | + * Event triggered when the user accepts a request of some sort. Examples could be answering a phone call, accepting a file transfer, or accepting a friendship request over an IM protocol. See also DenyEvent for when the user denies a similar request. |
158 | + * |
159 | + * Children: None |
160 | + * |
161 | + * Parents: #ZEITGEIST_ZG_EVENT_INTERPRETATION |
162 | + */ |
163 | +#define ZEITGEIST_ZG_ACCEPT_EVENT "http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#AcceptEvent" |
164 | + |
165 | +/** |
166 | * ZEITGEIST_ZG_ACCESS_EVENT: |
167 | * |
168 | * Macro defining the interpretation type <ulink url="http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#AccessEvent">http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#AccessEvent</ulink> |
169 | @@ -727,19 +805,45 @@ |
170 | #define ZEITGEIST_ZG_DELETE_EVENT "http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#DeleteEvent" |
171 | |
172 | /** |
173 | + * ZEITGEIST_ZG_DENY_EVENT: |
174 | + * |
175 | + * Macro defining the interpretation type <ulink url="http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#DenyEvent">http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#DenyEvent</ulink> |
176 | + * |
177 | + * Event triggered when the user denies a request of some sort. Examples could be rejecting a phone call, rejecting a file transfer, or denying a friendship request over an IM protocol. See also AcceptEvent for the converse event type. |
178 | + * |
179 | + * Children: None |
180 | + * |
181 | + * Parents: #ZEITGEIST_ZG_EVENT_INTERPRETATION |
182 | + */ |
183 | +#define ZEITGEIST_ZG_DENY_EVENT "http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#DenyEvent" |
184 | + |
185 | +/** |
186 | * ZEITGEIST_ZG_EVENT_INTERPRETATION: |
187 | * |
188 | * Macro defining the interpretation type <ulink url="http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#EventInterpretation">http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#EventInterpretation</ulink> |
189 | * |
190 | * Base class for event interpretations. Please do no instantiate directly, but use one of the sub classes. The interpretation of an event describes 'what happened' - fx. 'something was created' or 'something was accessed'. |
191 | * |
192 | - * Children: #ZEITGEIST_ZG_LEAVE_EVENT, #ZEITGEIST_ZG_MODIFY_EVENT, #ZEITGEIST_ZG_CREATE_EVENT, #ZEITGEIST_ZG_SEND_EVENT, #ZEITGEIST_ZG_ACCESS_EVENT, #ZEITGEIST_ZG_DELETE_EVENT, #ZEITGEIST_ZG_RECEIVE_EVENT |
193 | + * Children: #ZEITGEIST_ZG_DENY_EVENT, #ZEITGEIST_ZG_ACCESS_EVENT, #ZEITGEIST_ZG_EXPIRE_EVENT, #ZEITGEIST_ZG_LEAVE_EVENT, #ZEITGEIST_ZG_CREATE_EVENT, #ZEITGEIST_ZG_MOVE_EVENT, #ZEITGEIST_ZG_ACCEPT_EVENT, #ZEITGEIST_ZG_SEND_EVENT, #ZEITGEIST_ZG_MODIFY_EVENT, #ZEITGEIST_ZG_DELETE_EVENT, #ZEITGEIST_ZG_RECEIVE_EVENT |
194 | * |
195 | * Parents: None |
196 | */ |
197 | #define ZEITGEIST_ZG_EVENT_INTERPRETATION "http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#EventInterpretation" |
198 | |
199 | /** |
200 | + * ZEITGEIST_ZG_EXPIRE_EVENT: |
201 | + * |
202 | + * Macro defining the interpretation type <ulink url="http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#ExpireEvent">http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#ExpireEvent</ulink> |
203 | + * |
204 | + * Event triggered when something expires or times out. These types of events are normally not triggered by the user, but by the operating system or some external party. Examples are a recurring calendar item or task deadline that expires or a when the user fails to respond to an external request such as a phone call. |
205 | + * |
206 | + * Children: None |
207 | + * |
208 | + * Parents: #ZEITGEIST_ZG_EVENT_INTERPRETATION |
209 | + */ |
210 | +#define ZEITGEIST_ZG_EXPIRE_EVENT "http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#ExpireEvent" |
211 | + |
212 | +/** |
213 | * ZEITGEIST_ZG_LEAVE_EVENT: |
214 | * |
215 | * Macro defining the interpretation type <ulink url="http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#LeaveEvent">http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#LeaveEvent</ulink> |
216 | @@ -766,6 +870,19 @@ |
217 | #define ZEITGEIST_ZG_MODIFY_EVENT "http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#ModifyEvent" |
218 | |
219 | /** |
220 | + * ZEITGEIST_ZG_MOVE_EVENT: |
221 | + * |
222 | + * Macro defining the interpretation type <ulink url="http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#MoveEvent">http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#MoveEvent</ulink> |
223 | + * |
224 | + * Event triggered when a resource has been moved from a location to another. Fx. moving a file from a folder to another. |
225 | + * |
226 | + * Children: None |
227 | + * |
228 | + * Parents: #ZEITGEIST_ZG_EVENT_INTERPRETATION |
229 | + */ |
230 | +#define ZEITGEIST_ZG_MOVE_EVENT "http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#MoveEvent" |
231 | + |
232 | +/** |
233 | * ZEITGEIST_ZG_RECEIVE_EVENT: |
234 | * |
235 | * Macro defining the interpretation type <ulink url="http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#ReceiveEvent">http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#ReceiveEvent</ulink> |
236 | @@ -792,7 +909,6 @@ |
237 | #define ZEITGEIST_ZG_SEND_EVENT "http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#SendEvent" |
238 | |
239 | |
240 | - |
241 | /* IMPORTANT: AUTO GENERATED CONTENT STOP */ |
242 | |
243 | #endif /* _ZEITGEIST_ONTOLOGY_INTERPRETATIONS_H_ */ |
244 | |
245 | === modified file 'src/zeitgeist-ontology-manifestations.h' |
246 | --- src/zeitgeist-ontology-manifestations.h 2011-03-07 14:19:39 +0000 |
247 | +++ src/zeitgeist-ontology-manifestations.h 2012-02-02 12:43:21 +0000 |
248 | @@ -59,11 +59,24 @@ |
249 | * |
250 | * Children: None |
251 | * |
252 | - * Parents: #MANIFESTATION |
253 | + * Parents: None |
254 | */ |
255 | #define ZEITGEIST_NCAL_CALENDAR_DATA_OBJECT "http://www.semanticdesktop.org/ontologies/2007/04/02/ncal#CalendarDataObject" |
256 | |
257 | /** |
258 | + * ZEITGEIST_NCO_CONTACT_LIST_DATA_OBJECT: |
259 | + * |
260 | + * Macro defining the manifestation type <ulink url="http://www.semanticdesktop.org/ontologies/2007/03/22/nco#ContactListDataObject">http://www.semanticdesktop.org/ontologies/2007/03/22/nco#ContactListDataObject</ulink> |
261 | + * |
262 | + * An entity occuring on a contact list (usually interpreted as an nco:Contact). |
263 | + * |
264 | + * Children: None |
265 | + * |
266 | + * Parents: None |
267 | + */ |
268 | +#define ZEITGEIST_NCO_CONTACT_LIST_DATA_OBJECT "http://www.semanticdesktop.org/ontologies/2007/03/22/nco#ContactListDataObject" |
269 | + |
270 | +/** |
271 | * ZEITGEIST_NFO_ARCHIVE_ITEM: |
272 | * |
273 | * Macro defining the manifestation type <ulink url="http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#ArchiveItem">http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#ArchiveItem</ulink> |
274 | @@ -124,7 +137,7 @@ |
275 | * |
276 | * Children: #ZEITGEIST_NFO_EMBEDDED_FILE_DATA_OBJECT, #ZEITGEIST_NFO_DELETED_RESOURCE, #ZEITGEIST_NFO_REMOTE_DATA_OBJECT |
277 | * |
278 | - * Parents: #MANIFESTATION |
279 | + * Parents: None |
280 | */ |
281 | #define ZEITGEIST_NFO_FILE_DATA_OBJECT "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#FileDataObject" |
282 | |
283 | @@ -137,7 +150,7 @@ |
284 | * |
285 | * Children: None |
286 | * |
287 | - * Parents: #MANIFESTATION |
288 | + * Parents: None |
289 | */ |
290 | #define ZEITGEIST_NFO_HARD_DISK_PARTITION "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#HardDiskPartition" |
291 | |
292 | @@ -150,7 +163,7 @@ |
293 | * |
294 | * Children: None |
295 | * |
296 | - * Parents: #MANIFESTATION |
297 | + * Parents: None |
298 | */ |
299 | #define ZEITGEIST_NFO_MEDIA_STREAM "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#MediaStream" |
300 | |
301 | @@ -176,7 +189,7 @@ |
302 | * |
303 | * Children: None |
304 | * |
305 | - * Parents: #MANIFESTATION |
306 | + * Parents: None |
307 | */ |
308 | #define ZEITGEIST_NFO_REMOTE_PORT_ADDRESS "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#RemotePortAddress" |
309 | |
310 | @@ -189,7 +202,7 @@ |
311 | * |
312 | * Children: None |
313 | * |
314 | - * Parents: #MANIFESTATION |
315 | + * Parents: None |
316 | */ |
317 | #define ZEITGEIST_NFO_SOFTWARE_ITEM "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#SoftwareItem" |
318 | |
319 | @@ -198,15 +211,28 @@ |
320 | * |
321 | * Macro defining the manifestation type <ulink url="http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#SoftwareService">http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#SoftwareService</ulink> |
322 | * |
323 | - * A service published by a piece of software, either by an operating system or an application. Examples of such services may include calendar, addresbook and mailbox managed by a PIM application. This category is introduced to distinguish between data available directly from the applications (Via some Interprocess Communication Mechanisms) and data available from files on a disk. In either case both DataObjects would receive a similar interpretation (e.g. a Mailbox) and wouldn't differ on the content level. |
324 | + * A service published by a piece of software, either by an operating system or an application. Examples of such services may include calendar, addressbook and mailbox managed by a PIM application. This category is introduced to distinguish between data available directly from the applications (Via some Interprocess Communication Mechanisms) and data available from files on a disk. In either case both DataObjects would receive a similar interpretation (e.g. a Mailbox) and wouldn't differ on the content level. |
325 | * |
326 | * Children: None |
327 | * |
328 | - * Parents: #MANIFESTATION |
329 | + * Parents: None |
330 | */ |
331 | #define ZEITGEIST_NFO_SOFTWARE_SERVICE "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#SoftwareService" |
332 | |
333 | /** |
334 | + * ZEITGEIST_NFO_WEB_DATA_OBJECT: |
335 | + * |
336 | + * Macro defining the manifestation type <ulink url="http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#WebDataObject">http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#WebDataObject</ulink> |
337 | + * |
338 | + * An information resources of which representations (files, streams) can be retrieved through a web server. They may be generated at retrieval time. Typical examples are pages served by PHP or AJAX or mp3 streams. |
339 | + * |
340 | + * Children: None |
341 | + * |
342 | + * Parents: None |
343 | + */ |
344 | +#define ZEITGEIST_NFO_WEB_DATA_OBJECT "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#WebDataObject" |
345 | + |
346 | +/** |
347 | * ZEITGEIST_NMO_MAILBOX_DATA_OBJECT: |
348 | * |
349 | * Macro defining the manifestation type <ulink url="http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#MailboxDataObject">http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#MailboxDataObject</ulink> |
350 | @@ -215,7 +241,7 @@ |
351 | * |
352 | * Children: None |
353 | * |
354 | - * Parents: #MANIFESTATION |
355 | + * Parents: None |
356 | */ |
357 | #define ZEITGEIST_NMO_MAILBOX_DATA_OBJECT "http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#MailboxDataObject" |
358 | |
359 | @@ -228,7 +254,7 @@ |
360 | * |
361 | * Children: #ZEITGEIST_ZG_USER_ACTIVITY, #ZEITGEIST_ZG_SYSTEM_NOTIFICATION, #ZEITGEIST_ZG_HEURISTIC_ACTIVITY, #ZEITGEIST_ZG_SCHEDULED_ACTIVITY, #ZEITGEIST_ZG_WORLD_ACTIVITY |
362 | * |
363 | - * Parents: #MANIFESTATION |
364 | + * Parents: None |
365 | */ |
366 | #define ZEITGEIST_ZG_EVENT_MANIFESTATION "http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#EventManifestation" |
367 | |
368 | |
369 | === modified file 'src/zeitgeist-symbols.c' |
370 | --- src/zeitgeist-symbols.c 2011-03-07 14:19:39 +0000 |
371 | +++ src/zeitgeist-symbols.c 2012-02-02 12:43:21 +0000 |
372 | @@ -92,7 +92,7 @@ |
373 | * |
374 | * Gets list of immediate parents of the specified symbol. |
375 | * |
376 | - * Returns: A newly allocated list of immediate parents of this symbol. |
377 | + * Returns: A newly allocated list of immediate parents of this symbol. |
378 | * The data elements of the list contain strings which you |
379 | * do not own, use g_strdup() if you intend to work with them. |
380 | * Free the list with a call to g_list_free(). |
381 | @@ -277,17 +277,14 @@ |
382 | g_free (children); |
383 | g_free (all_children); |
384 | |
385 | - uri = ZEITGEIST_NMO_MESSAGE; |
386 | - parents = g_new (char*, 1); |
387 | - parents[0] = NULL; |
388 | - children = g_new (char*, 3); |
389 | - children[0] = ZEITGEIST_NMO_EMAIL; |
390 | - children[1] = ZEITGEIST_NMO_IMMESSAGE; |
391 | - children[2] = NULL; |
392 | - all_children = g_new (char*, 3); |
393 | - all_children[0] = ZEITGEIST_NMO_EMAIL; |
394 | - all_children[1] = ZEITGEIST_NMO_IMMESSAGE; |
395 | - all_children[2] = NULL; |
396 | + uri = ZEITGEIST_NFO_CURSOR; |
397 | + parents = g_new (char*, 2); |
398 | + parents[0] = ZEITGEIST_NFO_RASTER_IMAGE; |
399 | + parents[1] = NULL; |
400 | + children = g_new (char*, 1); |
401 | + children[0] = NULL; |
402 | + all_children = g_new (char*, 1); |
403 | + all_children[0] = NULL; |
404 | info = symbol_info_new (uri, parents, children, all_children); |
405 | zeitgeist_register_symbol (info); |
406 | g_free (parents); |
407 | @@ -379,6 +376,20 @@ |
408 | g_free (children); |
409 | g_free (all_children); |
410 | |
411 | + uri = ZEITGEIST_NCO_PERSON_CONTACT; |
412 | + parents = g_new (char*, 2); |
413 | + parents[0] = ZEITGEIST_NCO_CONTACT; |
414 | + parents[1] = NULL; |
415 | + children = g_new (char*, 1); |
416 | + children[0] = NULL; |
417 | + all_children = g_new (char*, 1); |
418 | + all_children[0] = NULL; |
419 | + info = symbol_info_new (uri, parents, children, all_children); |
420 | + zeitgeist_register_symbol (info); |
421 | + g_free (parents); |
422 | + g_free (children); |
423 | + g_free (all_children); |
424 | + |
425 | uri = ZEITGEIST_NCAL_CALENDAR; |
426 | parents = g_new (char*, 1); |
427 | parents[0] = NULL; |
428 | @@ -392,27 +403,33 @@ |
429 | g_free (children); |
430 | g_free (all_children); |
431 | |
432 | - uri = ZEITGEIST_NFO_BOOKMARK; |
433 | + uri = ZEITGEIST_NCO_CONTACT; |
434 | parents = g_new (char*, 1); |
435 | parents[0] = NULL; |
436 | - children = g_new (char*, 1); |
437 | - children[0] = NULL; |
438 | - all_children = g_new (char*, 1); |
439 | - all_children[0] = NULL; |
440 | + children = g_new (char*, 3); |
441 | + children[0] = ZEITGEIST_NCO_PERSON_CONTACT; |
442 | + children[1] = ZEITGEIST_NCO_ORGANIZATION_CONTACT; |
443 | + children[2] = NULL; |
444 | + all_children = g_new (char*, 3); |
445 | + all_children[0] = ZEITGEIST_NCO_ORGANIZATION_CONTACT; |
446 | + all_children[1] = ZEITGEIST_NCO_PERSON_CONTACT; |
447 | + all_children[2] = NULL; |
448 | info = symbol_info_new (uri, parents, children, all_children); |
449 | zeitgeist_register_symbol (info); |
450 | g_free (parents); |
451 | g_free (children); |
452 | g_free (all_children); |
453 | |
454 | - uri = ZEITGEIST_NMO_IMMESSAGE; |
455 | + uri = ZEITGEIST_NFO_RASTER_IMAGE; |
456 | parents = g_new (char*, 2); |
457 | - parents[0] = ZEITGEIST_NMO_MESSAGE; |
458 | + parents[0] = ZEITGEIST_NFO_IMAGE; |
459 | parents[1] = NULL; |
460 | - children = g_new (char*, 1); |
461 | - children[0] = NULL; |
462 | - all_children = g_new (char*, 1); |
463 | - all_children[0] = NULL; |
464 | + children = g_new (char*, 2); |
465 | + children[0] = ZEITGEIST_NFO_CURSOR; |
466 | + children[1] = NULL; |
467 | + all_children = g_new (char*, 2); |
468 | + all_children[0] = ZEITGEIST_NFO_CURSOR; |
469 | + all_children[1] = NULL; |
470 | info = symbol_info_new (uri, parents, children, all_children); |
471 | zeitgeist_register_symbol (info); |
472 | g_free (parents); |
473 | @@ -488,9 +505,23 @@ |
474 | g_free (children); |
475 | g_free (all_children); |
476 | |
477 | - uri = ZEITGEIST_NFO_CURSOR; |
478 | - parents = g_new (char*, 2); |
479 | - parents[0] = ZEITGEIST_NFO_RASTER_IMAGE; |
480 | + uri = ZEITGEIST_NMO_IMMESSAGE; |
481 | + parents = g_new (char*, 2); |
482 | + parents[0] = ZEITGEIST_NMO_MESSAGE; |
483 | + parents[1] = NULL; |
484 | + children = g_new (char*, 1); |
485 | + children[0] = NULL; |
486 | + all_children = g_new (char*, 1); |
487 | + all_children[0] = NULL; |
488 | + info = symbol_info_new (uri, parents, children, all_children); |
489 | + zeitgeist_register_symbol (info); |
490 | + g_free (parents); |
491 | + g_free (children); |
492 | + g_free (all_children); |
493 | + |
494 | + uri = ZEITGEIST_NFO_HTML_DOCUMENT; |
495 | + parents = g_new (char*, 2); |
496 | + parents[0] = ZEITGEIST_NFO_PLAIN_TEXT_DOCUMENT; |
497 | parents[1] = NULL; |
498 | children = g_new (char*, 1); |
499 | children[0] = NULL; |
500 | @@ -533,32 +564,41 @@ |
501 | g_free (children); |
502 | g_free (all_children); |
503 | |
504 | - uri = ZEITGEIST_NFO_HTML_DOCUMENT; |
505 | - parents = g_new (char*, 2); |
506 | - parents[0] = ZEITGEIST_NFO_PLAIN_TEXT_DOCUMENT; |
507 | - parents[1] = NULL; |
508 | - children = g_new (char*, 1); |
509 | - children[0] = NULL; |
510 | - all_children = g_new (char*, 1); |
511 | - all_children[0] = NULL; |
512 | - info = symbol_info_new (uri, parents, children, all_children); |
513 | - zeitgeist_register_symbol (info); |
514 | - g_free (parents); |
515 | - g_free (children); |
516 | - g_free (all_children); |
517 | - |
518 | - uri = ZEITGEIST_NFO_PLAIN_TEXT_DOCUMENT; |
519 | - parents = g_new (char*, 2); |
520 | - parents[0] = ZEITGEIST_NFO_TEXT_DOCUMENT; |
521 | - parents[1] = NULL; |
522 | - children = g_new (char*, 3); |
523 | - children[0] = ZEITGEIST_NFO_SOURCE_CODE; |
524 | - children[1] = ZEITGEIST_NFO_HTML_DOCUMENT; |
525 | - children[2] = NULL; |
526 | - all_children = g_new (char*, 3); |
527 | - all_children[0] = ZEITGEIST_NFO_SOURCE_CODE; |
528 | - all_children[1] = ZEITGEIST_NFO_HTML_DOCUMENT; |
529 | - all_children[2] = NULL; |
530 | + uri = ZEITGEIST_ZG_ACCEPT_EVENT; |
531 | + parents = g_new (char*, 2); |
532 | + parents[0] = ZEITGEIST_ZG_EVENT_INTERPRETATION; |
533 | + parents[1] = NULL; |
534 | + children = g_new (char*, 1); |
535 | + children[0] = NULL; |
536 | + all_children = g_new (char*, 1); |
537 | + all_children[0] = NULL; |
538 | + info = symbol_info_new (uri, parents, children, all_children); |
539 | + zeitgeist_register_symbol (info); |
540 | + g_free (parents); |
541 | + g_free (children); |
542 | + g_free (all_children); |
543 | + |
544 | + uri = ZEITGEIST_NFO_BOOKMARK; |
545 | + parents = g_new (char*, 1); |
546 | + parents[0] = NULL; |
547 | + children = g_new (char*, 1); |
548 | + children[0] = NULL; |
549 | + all_children = g_new (char*, 1); |
550 | + all_children[0] = NULL; |
551 | + info = symbol_info_new (uri, parents, children, all_children); |
552 | + zeitgeist_register_symbol (info); |
553 | + g_free (parents); |
554 | + g_free (children); |
555 | + g_free (all_children); |
556 | + |
557 | + uri = ZEITGEIST_ZG_EXPIRE_EVENT; |
558 | + parents = g_new (char*, 2); |
559 | + parents[0] = ZEITGEIST_ZG_EVENT_INTERPRETATION; |
560 | + parents[1] = NULL; |
561 | + children = g_new (char*, 1); |
562 | + children[0] = NULL; |
563 | + all_children = g_new (char*, 1); |
564 | + all_children[0] = NULL; |
565 | info = symbol_info_new (uri, parents, children, all_children); |
566 | zeitgeist_register_symbol (info); |
567 | g_free (parents); |
568 | @@ -600,22 +640,6 @@ |
569 | g_free (children); |
570 | g_free (all_children); |
571 | |
572 | - uri = ZEITGEIST_NFO_RASTER_IMAGE; |
573 | - parents = g_new (char*, 2); |
574 | - parents[0] = ZEITGEIST_NFO_IMAGE; |
575 | - parents[1] = NULL; |
576 | - children = g_new (char*, 2); |
577 | - children[0] = ZEITGEIST_NFO_CURSOR; |
578 | - children[1] = NULL; |
579 | - all_children = g_new (char*, 2); |
580 | - all_children[0] = ZEITGEIST_NFO_CURSOR; |
581 | - all_children[1] = NULL; |
582 | - info = symbol_info_new (uri, parents, children, all_children); |
583 | - zeitgeist_register_symbol (info); |
584 | - g_free (parents); |
585 | - g_free (children); |
586 | - g_free (all_children); |
587 | - |
588 | uri = ZEITGEIST_NFO_IMAGE; |
589 | parents = g_new (char*, 2); |
590 | parents[0] = ZEITGEIST_NFO_VISUAL; |
591 | @@ -637,27 +661,53 @@ |
592 | g_free (children); |
593 | g_free (all_children); |
594 | |
595 | + uri = ZEITGEIST_NFO_PLAIN_TEXT_DOCUMENT; |
596 | + parents = g_new (char*, 2); |
597 | + parents[0] = ZEITGEIST_NFO_TEXT_DOCUMENT; |
598 | + parents[1] = NULL; |
599 | + children = g_new (char*, 3); |
600 | + children[0] = ZEITGEIST_NFO_SOURCE_CODE; |
601 | + children[1] = ZEITGEIST_NFO_HTML_DOCUMENT; |
602 | + children[2] = NULL; |
603 | + all_children = g_new (char*, 3); |
604 | + all_children[0] = ZEITGEIST_NFO_SOURCE_CODE; |
605 | + all_children[1] = ZEITGEIST_NFO_HTML_DOCUMENT; |
606 | + all_children[2] = NULL; |
607 | + info = symbol_info_new (uri, parents, children, all_children); |
608 | + zeitgeist_register_symbol (info); |
609 | + g_free (parents); |
610 | + g_free (children); |
611 | + g_free (all_children); |
612 | + |
613 | uri = ZEITGEIST_ZG_EVENT_INTERPRETATION; |
614 | parents = g_new (char*, 1); |
615 | parents[0] = NULL; |
616 | - children = g_new (char*, 8); |
617 | - children[0] = ZEITGEIST_ZG_LEAVE_EVENT; |
618 | - children[1] = ZEITGEIST_ZG_MODIFY_EVENT; |
619 | - children[2] = ZEITGEIST_ZG_CREATE_EVENT; |
620 | - children[3] = ZEITGEIST_ZG_SEND_EVENT; |
621 | - children[4] = ZEITGEIST_ZG_ACCESS_EVENT; |
622 | - children[5] = ZEITGEIST_ZG_DELETE_EVENT; |
623 | - children[6] = ZEITGEIST_ZG_RECEIVE_EVENT; |
624 | - children[7] = NULL; |
625 | - all_children = g_new (char*, 8); |
626 | - all_children[0] = ZEITGEIST_ZG_LEAVE_EVENT; |
627 | + children = g_new (char*, 12); |
628 | + children[0] = ZEITGEIST_ZG_DENY_EVENT; |
629 | + children[1] = ZEITGEIST_ZG_ACCESS_EVENT; |
630 | + children[2] = ZEITGEIST_ZG_EXPIRE_EVENT; |
631 | + children[3] = ZEITGEIST_ZG_LEAVE_EVENT; |
632 | + children[4] = ZEITGEIST_ZG_CREATE_EVENT; |
633 | + children[5] = ZEITGEIST_ZG_MOVE_EVENT; |
634 | + children[6] = ZEITGEIST_ZG_ACCEPT_EVENT; |
635 | + children[7] = ZEITGEIST_ZG_SEND_EVENT; |
636 | + children[8] = ZEITGEIST_ZG_MODIFY_EVENT; |
637 | + children[9] = ZEITGEIST_ZG_DELETE_EVENT; |
638 | + children[10] = ZEITGEIST_ZG_RECEIVE_EVENT; |
639 | + children[11] = NULL; |
640 | + all_children = g_new (char*, 12); |
641 | + all_children[0] = ZEITGEIST_ZG_DENY_EVENT; |
642 | all_children[1] = ZEITGEIST_ZG_MODIFY_EVENT; |
643 | - all_children[2] = ZEITGEIST_ZG_CREATE_EVENT; |
644 | - all_children[3] = ZEITGEIST_ZG_SEND_EVENT; |
645 | - all_children[4] = ZEITGEIST_ZG_ACCESS_EVENT; |
646 | - all_children[5] = ZEITGEIST_ZG_DELETE_EVENT; |
647 | - all_children[6] = ZEITGEIST_ZG_RECEIVE_EVENT; |
648 | - all_children[7] = NULL; |
649 | + all_children[2] = ZEITGEIST_ZG_EXPIRE_EVENT; |
650 | + all_children[3] = ZEITGEIST_ZG_LEAVE_EVENT; |
651 | + all_children[4] = ZEITGEIST_ZG_CREATE_EVENT; |
652 | + all_children[5] = ZEITGEIST_ZG_MOVE_EVENT; |
653 | + all_children[6] = ZEITGEIST_ZG_ACCEPT_EVENT; |
654 | + all_children[7] = ZEITGEIST_ZG_SEND_EVENT; |
655 | + all_children[8] = ZEITGEIST_ZG_ACCESS_EVENT; |
656 | + all_children[9] = ZEITGEIST_ZG_DELETE_EVENT; |
657 | + all_children[10] = ZEITGEIST_ZG_RECEIVE_EVENT; |
658 | + all_children[11] = NULL; |
659 | info = symbol_info_new (uri, parents, children, all_children); |
660 | zeitgeist_register_symbol (info); |
661 | g_free (parents); |
662 | @@ -719,7 +769,7 @@ |
663 | |
664 | uri = ZEITGEIST_NMM_MUSIC_PIECE; |
665 | parents = g_new (char*, 2); |
666 | - parents[0] = ZEITGEIST_NFO_MEDIA; |
667 | + parents[0] = ZEITGEIST_NFO_AUDIO; |
668 | parents[1] = NULL; |
669 | children = g_new (char*, 1); |
670 | children[0] = NULL; |
671 | @@ -744,6 +794,20 @@ |
672 | g_free (children); |
673 | g_free (all_children); |
674 | |
675 | + uri = ZEITGEIST_ZG_DENY_EVENT; |
676 | + parents = g_new (char*, 2); |
677 | + parents[0] = ZEITGEIST_ZG_EVENT_INTERPRETATION; |
678 | + parents[1] = NULL; |
679 | + children = g_new (char*, 1); |
680 | + children[0] = NULL; |
681 | + all_children = g_new (char*, 1); |
682 | + all_children[0] = NULL; |
683 | + info = symbol_info_new (uri, parents, children, all_children); |
684 | + zeitgeist_register_symbol (info); |
685 | + g_free (parents); |
686 | + g_free (children); |
687 | + g_free (all_children); |
688 | + |
689 | uri = ZEITGEIST_NFO_TEXT_DOCUMENT; |
690 | parents = g_new (char*, 2); |
691 | parents[0] = ZEITGEIST_NFO_DOCUMENT; |
692 | @@ -819,6 +883,20 @@ |
693 | g_free (children); |
694 | g_free (all_children); |
695 | |
696 | + uri = ZEITGEIST_NCO_ORGANIZATION_CONTACT; |
697 | + parents = g_new (char*, 2); |
698 | + parents[0] = ZEITGEIST_NCO_CONTACT; |
699 | + parents[1] = NULL; |
700 | + children = g_new (char*, 1); |
701 | + children[0] = NULL; |
702 | + all_children = g_new (char*, 1); |
703 | + all_children[0] = NULL; |
704 | + info = symbol_info_new (uri, parents, children, all_children); |
705 | + zeitgeist_register_symbol (info); |
706 | + g_free (parents); |
707 | + g_free (children); |
708 | + g_free (all_children); |
709 | + |
710 | uri = ZEITGEIST_NMM_MUSIC_ALBUM; |
711 | parents = g_new (char*, 2); |
712 | parents[0] = ZEITGEIST_NFO_MEDIA_LIST; |
713 | @@ -913,6 +991,19 @@ |
714 | g_free (children); |
715 | g_free (all_children); |
716 | |
717 | + uri = ZEITGEIST_NCO_CONTACT_LIST; |
718 | + parents = g_new (char*, 1); |
719 | + parents[0] = NULL; |
720 | + children = g_new (char*, 1); |
721 | + children[0] = NULL; |
722 | + all_children = g_new (char*, 1); |
723 | + all_children[0] = NULL; |
724 | + info = symbol_info_new (uri, parents, children, all_children); |
725 | + zeitgeist_register_symbol (info); |
726 | + g_free (parents); |
727 | + g_free (children); |
728 | + g_free (all_children); |
729 | + |
730 | uri = ZEITGEIST_NMM_TVSERIES; |
731 | parents = g_new (char*, 1); |
732 | parents[0] = NULL; |
733 | @@ -930,6 +1021,21 @@ |
734 | parents = g_new (char*, 2); |
735 | parents[0] = ZEITGEIST_NFO_MEDIA; |
736 | parents[1] = NULL; |
737 | + children = g_new (char*, 2); |
738 | + children[0] = ZEITGEIST_NMM_MUSIC_PIECE; |
739 | + children[1] = NULL; |
740 | + all_children = g_new (char*, 2); |
741 | + all_children[0] = ZEITGEIST_NMM_MUSIC_PIECE; |
742 | + all_children[1] = NULL; |
743 | + info = symbol_info_new (uri, parents, children, all_children); |
744 | + zeitgeist_register_symbol (info); |
745 | + g_free (parents); |
746 | + g_free (children); |
747 | + g_free (all_children); |
748 | + |
749 | + uri = ZEITGEIST_NCO_CONTACT_GROUP; |
750 | + parents = g_new (char*, 1); |
751 | + parents[0] = NULL; |
752 | children = g_new (char*, 1); |
753 | children[0] = NULL; |
754 | all_children = g_new (char*, 1); |
755 | @@ -985,6 +1091,37 @@ |
756 | g_free (children); |
757 | g_free (all_children); |
758 | |
759 | + uri = ZEITGEIST_NMO_MESSAGE; |
760 | + parents = g_new (char*, 1); |
761 | + parents[0] = NULL; |
762 | + children = g_new (char*, 3); |
763 | + children[0] = ZEITGEIST_NMO_EMAIL; |
764 | + children[1] = ZEITGEIST_NMO_IMMESSAGE; |
765 | + children[2] = NULL; |
766 | + all_children = g_new (char*, 3); |
767 | + all_children[0] = ZEITGEIST_NMO_EMAIL; |
768 | + all_children[1] = ZEITGEIST_NMO_IMMESSAGE; |
769 | + all_children[2] = NULL; |
770 | + info = symbol_info_new (uri, parents, children, all_children); |
771 | + zeitgeist_register_symbol (info); |
772 | + g_free (parents); |
773 | + g_free (children); |
774 | + g_free (all_children); |
775 | + |
776 | + uri = ZEITGEIST_ZG_MOVE_EVENT; |
777 | + parents = g_new (char*, 2); |
778 | + parents[0] = ZEITGEIST_ZG_EVENT_INTERPRETATION; |
779 | + parents[1] = NULL; |
780 | + children = g_new (char*, 1); |
781 | + children[0] = NULL; |
782 | + all_children = g_new (char*, 1); |
783 | + all_children[0] = NULL; |
784 | + info = symbol_info_new (uri, parents, children, all_children); |
785 | + zeitgeist_register_symbol (info); |
786 | + g_free (parents); |
787 | + g_free (children); |
788 | + g_free (all_children); |
789 | + |
790 | uri = ZEITGEIST_NCAL_TIMEZONE; |
791 | parents = g_new (char*, 1); |
792 | parents[0] = NULL; |
793 | @@ -1054,11 +1191,10 @@ |
794 | uri = ZEITGEIST_NFO_MEDIA; |
795 | parents = g_new (char*, 1); |
796 | parents[0] = NULL; |
797 | - children = g_new (char*, 4); |
798 | + children = g_new (char*, 3); |
799 | children[0] = ZEITGEIST_NFO_VISUAL; |
800 | children[1] = ZEITGEIST_NFO_AUDIO; |
801 | - children[2] = ZEITGEIST_NMM_MUSIC_PIECE; |
802 | - children[3] = NULL; |
803 | + children[2] = NULL; |
804 | all_children = g_new (char*, 12); |
805 | all_children[0] = ZEITGEIST_NMM_TVSHOW; |
806 | all_children[1] = ZEITGEIST_NMM_MUSIC_PIECE; |
807 | @@ -1266,8 +1402,8 @@ |
808 | children[5] = NULL; |
809 | all_children = g_new (char*, 6); |
810 | all_children[0] = ZEITGEIST_ZG_USER_ACTIVITY; |
811 | - all_children[1] = ZEITGEIST_ZG_WORLD_ACTIVITY; |
812 | - all_children[2] = ZEITGEIST_ZG_HEURISTIC_ACTIVITY; |
813 | + all_children[1] = ZEITGEIST_ZG_HEURISTIC_ACTIVITY; |
814 | + all_children[2] = ZEITGEIST_ZG_WORLD_ACTIVITY; |
815 | all_children[3] = ZEITGEIST_ZG_SCHEDULED_ACTIVITY; |
816 | all_children[4] = ZEITGEIST_ZG_SYSTEM_NOTIFICATION; |
817 | all_children[5] = NULL; |
818 | @@ -1303,6 +1439,32 @@ |
819 | g_free (children); |
820 | g_free (all_children); |
821 | |
822 | + uri = ZEITGEIST_NCO_CONTACT_LIST_DATA_OBJECT; |
823 | + parents = g_new (char*, 1); |
824 | + parents[0] = NULL; |
825 | + children = g_new (char*, 1); |
826 | + children[0] = NULL; |
827 | + all_children = g_new (char*, 1); |
828 | + all_children[0] = NULL; |
829 | + info = symbol_info_new (uri, parents, children, all_children); |
830 | + zeitgeist_register_symbol (info); |
831 | + g_free (parents); |
832 | + g_free (children); |
833 | + g_free (all_children); |
834 | + |
835 | + uri = ZEITGEIST_NFO_WEB_DATA_OBJECT; |
836 | + parents = g_new (char*, 1); |
837 | + parents[0] = NULL; |
838 | + children = g_new (char*, 1); |
839 | + children[0] = NULL; |
840 | + all_children = g_new (char*, 1); |
841 | + all_children[0] = NULL; |
842 | + info = symbol_info_new (uri, parents, children, all_children); |
843 | + zeitgeist_register_symbol (info); |
844 | + g_free (parents); |
845 | + g_free (children); |
846 | + g_free (all_children); |
847 | + |
848 | uri = ZEITGEIST_ZG_USER_ACTIVITY; |
849 | parents = g_new (char*, 2); |
850 | parents[0] = ZEITGEIST_ZG_EVENT_MANIFESTATION; |
851 | |
852 | === modified file 'tools/zeitgeist-symbols.template' |
853 | --- tools/zeitgeist-symbols.template 2011-03-07 14:19:39 +0000 |
854 | +++ tools/zeitgeist-symbols.template 2012-02-02 12:43:21 +0000 |
855 | @@ -92,7 +92,7 @@ |
856 | * |
857 | * Gets list of immediate parents of the specified symbol. |
858 | * |
859 | - * Returns: A newly allocated list of immedate parents of this symbol. |
860 | + * Returns: A newly allocated list of immediate parents of this symbol. |
861 | * The data elements of the list contain strings which you |
862 | * do not own, use g_strdup() if you intend to work with them. |
863 | * Free the list with a call to g_list_free(). |
864 | @@ -112,7 +112,7 @@ |
865 | for (iter = info->parents; iter; iter = iter->next) |
866 | { |
867 | result = g_list_prepend (result, |
868 | - g_quark_to_string (GPOINTER_TO_INT (iter->data))); |
869 | + (gchar*) g_quark_to_string (GPOINTER_TO_INT (iter->data))); |
870 | } |
871 | |
872 | return g_list_reverse (result); |
873 | @@ -144,7 +144,7 @@ |
874 | for (iter = info->children; iter; iter = iter->next) |
875 | { |
876 | result = g_list_prepend (result, |
877 | - g_quark_to_string (GPOINTER_TO_INT (iter->data))); |
878 | + (gchar*) g_quark_to_string (GPOINTER_TO_INT (iter->data))); |
879 | } |
880 | |
881 | return g_list_reverse (result); |
882 | @@ -177,7 +177,7 @@ |
883 | for (iter = info->all_children; iter; iter = iter->next) |
884 | { |
885 | result = g_list_prepend (result, |
886 | - g_quark_to_string (GPOINTER_TO_INT (iter->data))); |
887 | + (gchar*) g_quark_to_string (GPOINTER_TO_INT (iter->data))); |
888 | } |
889 | |
890 | return g_list_reverse (result); |
Looks good, but can you attach a bug and target it to 0.3.14?