Changes between Version 4 and Version 5 of GritsTutorial_OntologyGritsSampleEditor
- Timestamp:
- 03/24/2017 06:14:45 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GritsTutorial_OntologyGritsSampleEditor
v4 v5 3 3 4 4 == General Information == 5 Currently there are two ontologies for sample plugins 5 GRITS has a ''sample'' entry. This entry provides tools for management of sample related information. This entry is contributed and managed by [https://svn.grits-toolbox.org/trunk/eclipse/org.grits.toolbox.entry.sample Sample Plugin]. The Sample plugin defines the properties of ''sample entry'' and its related information. This plugin also adds an editor for sample entry to display or modify sample information. The object representing a sample is stored in a ''.xml'' file. Read [wiki:GritsTutorial_ObjectModelGritsSampleEditor this] to learn more about Sample object. This object has a predefined model that is stored in the ontologies. 6 7 Currently there are two ontologies for sample 6 8 - Standard ontology 7 9 - stores information related to samples that is to be used by the sample plugin … … 9 11 - an additional ontology that has the same structure as the Standard ontology and has no additional information when GRITS is installed initially. When GRITS is used on a system, the information that is generated and saved is saved locally in this ontology. 10 12 11 Classes that manage ontologies in sample plugin are first supposed to look into the Standard ontology for information and if information is missing or additional information is required then it should look into the local ontology. 13 __Classes that manage ontologies in Sample plugin are first supposed to look into the Standard ontology for any information and if some information is missing or additional information is required then it should look into the Local ontology.__ 12 14 13 Currently there are two sample plugins 14 - [https://svn.grits-toolbox.org/trunk/eclipse/org.grits.toolbox.entry.sample Sample Plugin] 15 - [https://svn.grits-toolbox.org/trunk/eclipse/org.grits.toolbox.editor.sample Sample Manager Plugin] 16 15 The Sample plugin cannot modify ontologies, except for '''creating templates in the local ontology'''. There is another [https://svn.grits-toolbox.org/trunk/eclipse/org.grits.toolbox.editor.samplemanager Sample Manager Plugin] that is used for editing information stored in the ontologies. 17 16 18 17 == Ontology Structure == … … 25 24 [[BR]] 26 25 27 == Sample Plugin == 28 This plugin is the main plugin for adding a ''sample'' entry to GRITS. It defines the properties of ''sample entry'' and other related information. This plugin adds an editor for sample entry to add and modify sample information. The object model that is represented for a sample is stored in a ''.xml'' file. This object has a predefined model that is stored in the ontology shown above. This plugin cannot modify ontologies, except for 29 - creating templates in the local ontology 26 27 == Classes in Sample plugin for Ontology management == 28 Sample plugin can only read from the two ontologies. It can also '''create templates in the local ontology'''. These read and templat creation is managed by these classes : 29 - ISampleOntologyApi 30 - interface that defines the public APIs to be provided by ''SampleOntologyApi'' class 31 - SampleOntologyApi 32 - implements the public methods defined in ''ISampleOntologyApi'' 33 - calls methods from ''SampleOntologyManager'' class to read/write information in ontologies 34 - SampleOntologyManager 35 - uses Jena Ontology API to read/write information in ontologies 36 - only protected and private methods 37 - used by upper layer classes in the same package 30 38 31 39 32 40 == Sample Manager Plugin == 33 This plugin is an additional plugin that can be used to edit information stored in ontologies. This plugin can modify both standard and local ontologies. It has two modes of operation :41 This Sample Manager plugin is an additional plugin that can be used to edit information stored in ontologies. This plugin can modify both standard and local ontologies. It has two modes of operation : 34 42 - '''User Mode''' 35 43 - in this mode only local ontology can be modified