154
public KeyValuePair<string, string> Search(string manifestation)
154
public NameUri Search(string manifestation)
156
if(string.Equals(_cal_data_obj.Value, manifestation))
156
if(string.Equals(_cal_data_obj.Uri, manifestation))
157
157
return _cal_data_obj;
159
KeyValuePair<string, string> event_manifestation = _event_manifestation.Search(manifestation);
160
if(event_manifestation.Key != null)
159
NameUri event_manifestation = _event_manifestation.Search(manifestation);
160
if(event_manifestation.Name != null)
161
161
return event_manifestation;
163
KeyValuePair<string, string> file_data_obj = _file_data_obj.Search(manifestation);
164
if(file_data_obj.Key != null)
163
NameUri file_data_obj = _file_data_obj.Search(manifestation);
164
if(file_data_obj.Name != null)
165
165
return file_data_obj;
167
if(string.Equals(_hd_partition.Value, manifestation))
167
if(string.Equals(_hd_partition.Uri, manifestation))
168
168
return _hd_partition;
170
if(string.Equals(_mailbox_data_obj.Value, manifestation))
170
if(string.Equals(_mailbox_data_obj.Uri, manifestation))
171
171
return _mailbox_data_obj;
173
if(string.Equals(_media_stream.Value, manifestation))
173
if(string.Equals(_media_stream.Uri, manifestation))
174
174
return _media_stream;
176
if(string.Equals(_remote_port_addr.Value, manifestation))
176
if(string.Equals(_remote_port_addr.Uri, manifestation))
177
177
return _remote_port_addr;
179
if(string.Equals(_sw_item.Value, manifestation))
179
if(string.Equals(_sw_item.Uri, manifestation))
182
if(string.Equals(_sw_service.Value, manifestation))
182
if(string.Equals(_sw_service.Uri, manifestation))
183
183
return _sw_service;
185
return new KeyValuePair<string, string>();
185
return new NameUri();
188
188
#region Private Fields
190
190
private static Manifestation _singleton_obj = new Manifestation();
192
private KeyValuePair<string, string> _cal_data_obj = new KeyValuePair<string, string>("CalendarDataObject", "http://www.semanticdesktop.org/ontologies/2007/04/02/ncal#CalendarDataObject");
192
private NameUri _cal_data_obj = new NameUri("CalendarDataObject", "http://www.semanticdesktop.org/ontologies/2007/04/02/ncal#CalendarDataObject");
194
194
private EventManifestationType _event_manifestation = new EventManifestationType();
196
196
private FileDataObjectType _file_data_obj = new FileDataObjectType();
198
private KeyValuePair<string, string> _hd_partition = new KeyValuePair<string, string>("HardDiskPartition", "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#HardDiskPartition");
200
private KeyValuePair<string, string> _mailbox_data_obj = new KeyValuePair<string, string>("MailboxDataObject", "http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#MailboxDataObject");
202
private KeyValuePair<string, string> _media_stream = new KeyValuePair<string, string>("MediaStream", "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#MediaStream");
204
private KeyValuePair<string, string> _remote_port_addr = new KeyValuePair<string, string>("RemotePortAddress", "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#RemotePortAddress");
206
private KeyValuePair<string, string> _sw_item = new KeyValuePair<string, string>("SoftwareItem", "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#SoftwareItem");
208
private KeyValuePair<string, string> _sw_service = new KeyValuePair<string, string>("SoftwareService", "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#SoftwareService");
198
private NameUri _hd_partition = new NameUri("HardDiskPartition", "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#HardDiskPartition");
200
private NameUri _mailbox_data_obj = new NameUri("MailboxDataObject", "http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#MailboxDataObject");
202
private NameUri _media_stream = new NameUri("MediaStream", "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#MediaStream");
204
private NameUri _remote_port_addr = new NameUri("RemotePortAddress", "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#RemotePortAddress");
206
private NameUri _sw_item = new NameUri("SoftwareItem", "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#SoftwareItem");
208
private NameUri _sw_service = new NameUri("SoftwareService", "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#SoftwareService");
299
public KeyValuePair<string, string> Search(string manifestation)
299
public NameUri Search(string manifestation)
301
if(string.Equals(_evnt_manifest.Value, manifestation))
301
if(string.Equals(_evnt_manifest.Uri, manifestation))
302
302
return _evnt_manifest;
304
if(string.Equals(_heur_activity.Value, manifestation))
304
if(string.Equals(_heur_activity.Uri, manifestation))
305
305
return _heur_activity;
307
if(string.Equals(_schld_activity.Value, manifestation))
307
if(string.Equals(_schld_activity.Uri, manifestation))
308
308
return _schld_activity;
310
if(string.Equals(_sys_notification.Value, manifestation))
310
if(string.Equals(_sys_notification.Uri, manifestation))
311
311
return _sys_notification;
313
if(string.Equals(_user_activity.Value, manifestation))
313
if(string.Equals(_user_activity.Uri, manifestation))
314
314
return _user_activity;
316
if(string.Equals(_world_activity.Value, manifestation))
316
if(string.Equals(_world_activity.Uri, manifestation))
317
317
return _world_activity;
319
return new KeyValuePair<string, string>();
319
return new NameUri();
322
322
#region Private Fields
324
private KeyValuePair<string, string> _evnt_manifest = new KeyValuePair<string, string>("EventManifestation", "http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#EventManifestation");
326
private KeyValuePair<string, string> _heur_activity = new KeyValuePair<string, string>("HeuristicActivity", "http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#HeuristicActivity");
328
private KeyValuePair<string, string> _schld_activity = new KeyValuePair<string, string>("ScheduledActivity", "http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#ScheduledActivity");
330
private KeyValuePair<string, string> _sys_notification = new KeyValuePair<string, string>("SystemNotification", "http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#SystemNotification");
332
private KeyValuePair<string, string> _user_activity = new KeyValuePair<string, string>("UserActivity", "http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#UserActivity");
334
private KeyValuePair<string, string> _world_activity = new KeyValuePair<string, string>("WorldActivity", "http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#WorldActivity");
324
private NameUri _evnt_manifest = new NameUri("EventManifestation", "http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#EventManifestation");
326
private NameUri _heur_activity = new NameUri("HeuristicActivity", "http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#HeuristicActivity");
328
private NameUri _schld_activity = new NameUri("ScheduledActivity", "http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#ScheduledActivity");
330
private NameUri _sys_notification = new NameUri("SystemNotification", "http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#SystemNotification");
332
private NameUri _user_activity = new NameUri("UserActivity", "http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#UserActivity");
334
private NameUri _world_activity = new NameUri("WorldActivity", "http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#WorldActivity");
397
public KeyValuePair<string, string> Search(string manifestation)
397
public NameUri Search(string manifestation)
399
if(string.Equals(_file_data_obj.Value, manifestation))
399
if(string.Equals(_file_data_obj.Uri, manifestation))
400
400
return _file_data_obj;
402
if(string.Equals(_deleted_resc.Value, manifestation))
402
if(string.Equals(_deleted_resc.Uri, manifestation))
403
403
return _deleted_resc;
405
KeyValuePair<string, string> embedded_file_data_obj = _embedded_file_data_obj.Search(manifestation);
406
if(embedded_file_data_obj.Key != null)
405
NameUri embedded_file_data_obj = _embedded_file_data_obj.Search(manifestation);
406
if(embedded_file_data_obj.Name != null)
407
407
return embedded_file_data_obj;
409
if(string.Equals(_remote_data_obj.Value, manifestation))
409
if(string.Equals(_remote_data_obj.Uri, manifestation))
410
410
return _remote_data_obj;
412
return new KeyValuePair<string, string>();
412
return new NameUri();
415
415
#region Private Fields
417
private KeyValuePair<string, string> _file_data_obj = new KeyValuePair<string, string>("FileDataObject", "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#FileDataObject");
417
private NameUri _file_data_obj = new NameUri("FileDataObject", "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#FileDataObject");
419
private KeyValuePair<string, string> _deleted_resc = new KeyValuePair<string, string>("DeletedResource", "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#DeletedResource");
419
private NameUri _deleted_resc = new NameUri("DeletedResource", "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#DeletedResource");
421
421
private EmbeddedFileDataObjectType _embedded_file_data_obj = new EmbeddedFileDataObjectType();
423
private KeyValuePair<string, string> _remote_data_obj = new KeyValuePair<string, string>("RemoteDataObject", "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#RemoteDataObject");
423
private NameUri _remote_data_obj = new NameUri("RemoteDataObject", "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#RemoteDataObject");
472
public KeyValuePair<string, string> Search(string manifestation)
472
public NameUri Search(string manifestation)
474
if(string.Equals(_embedded_file_data_obj.Value, manifestation))
474
if(string.Equals(_embedded_file_data_obj.Uri, manifestation))
475
475
return _embedded_file_data_obj;
477
if(string.Equals(_archive_item.Value, manifestation))
477
if(string.Equals(_archive_item.Uri, manifestation))
478
478
return _archive_item;
480
if(string.Equals(_attachment.Value, manifestation))
480
if(string.Equals(_attachment.Uri, manifestation))
481
481
return _attachment;
483
return new KeyValuePair<string, string>();
483
return new NameUri();
486
486
#region Private Fields
488
private KeyValuePair<string, string> _embedded_file_data_obj = new KeyValuePair<string, string>("EmbeddedFileDataObject", "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#EmbeddedFileDataObject");
490
private KeyValuePair<string, string> _archive_item = new KeyValuePair<string, string>("ArchiveItem", "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#ArchiveItem");
492
private KeyValuePair<string, string> _attachment = new KeyValuePair<string, string>("Attachment", "http://www.semanticdesktop.org/ontologies/2007/04/02/ncal#Attachment");
488
private NameUri _embedded_file_data_obj = new NameUri("EmbeddedFileDataObject", "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#EmbeddedFileDataObject");
490
private NameUri _archive_item = new NameUri("ArchiveItem", "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#ArchiveItem");
492
private NameUri _attachment = new NameUri("Attachment", "http://www.semanticdesktop.org/ontologies/2007/04/02/ncal#Attachment");