View Javadoc
1   /*
2    * @author Giorgos Anestis, TUC/MUSIC
3    *  
4    * @version 2.0
5    */
6   package org.dbe.studio.tools.ontologyviewer.metamodels.odm;
7   
8   /***
9    * An ontology property relates ontologies to other ontologies.
10   * Instances of this class must be associated with specific ontologies
11   * (instances of the class ontology). Examples of ontology intances are
12   * the properties "imports", "priorVersion", "backwardCompatibleWith" and
13   * "incompatibleWith" that define specific relationships between ontologies
14   * 
15   */
16  public class OdmOntologyHeader {
17  	
18  	String name;
19  	String id;
20  	
21  	/***
22  	 * An owl:imports statement references another OWL ontology containing 
23  	 * definitions, whose meaning is considered to be part of the meaning of
24  	 * the importing ontology. Each reference consists of a URI specifying
25  	 * from where the ontology is to be imported
26  	 */
27  	String imports;  //list of imported ontologies
28  	
29  	/***
30  	 * An owl:versionInfo statement generally has as its object a string giving
31  	 * information about this version, for example RCS/CVS keywords. This
32  	 * statement does not contribute to the logical meaning of the ontology
33  	 * other than that given by the RDF(S) model theory
34  	 */
35  	String versionInfo;
36  	
37  	/***
38  	 * An owl:priorVersion statement contains a reference to another ontology.
39  	 * This identifies the specified ontology as a prior version of the
40  	 * containing ontology. This has no meaning in the model-theoretic semantics
41  	 * other than that given by the RDF(S) model theory. However, it may be used
42  	 * by software to organize ontologies by versions.
43  	 */
44  	
45  	String priorVersion;
46  	
47  	/***
48  	 * An owl:backwardCompatibleWith statement contains a reference to another
49  	 * ontology. This identifies the specified ontology as a prior version of
50  	 * the containing ontology, and further indicates that it is backward
51  	 * compatible with it
52  	 */
53  	
54  	String backwardCompatibleWith;
55  	
56  	/***
57  	 * An owl:incompatibleWith statement contains a reference to another ontology.
58  	 * This indicates that the containing ontology is a later version of the
59  	 * referenced ontology, but is not backward compatible with it
60  	 */
61  	
62  	String incompatibleWith;	
63  	
64  	/***
65  	 * 
66  	 */
67  	public OdmOntologyHeader() {
68  		
69  	}
70  
71  	public OdmOntologyHeader(String name, String id, String imports, String verInfo,
72  						  String priorVer, String backwardCompWith, String incompatibleWith) {
73  		super();
74  		this.name = name;
75  		this.id   = id;
76  		this.imports = imports;  
77  		this.versionInfo = verInfo;
78  		this.priorVersion = priorVer;
79  		this.backwardCompatibleWith = backwardCompWith;
80  		this.incompatibleWith = incompatibleWith;
81  	}
82  			
83  	public void setName(String name) {
84  		this.name = name;
85  	}
86  	
87  	public void setId(String id) {
88  		this.id = id;
89  	}
90  	
91  	public void setImports(String imports) {
92  		this.imports = imports;
93  	}
94  	
95  	public void setPriorVersion(String priorVersion) {
96  		this.priorVersion = priorVersion;
97  	}
98  	
99  	public void setBackwardCompatibleWith(String backwardCompatibleWith) {
100 		this.backwardCompatibleWith = backwardCompatibleWith;
101 	}
102 	
103 	public void setIncompatibleWith(String incompatibleWith) {
104 		this.incompatibleWith = incompatibleWith;
105 	}
106 		
107 	public String getName() {
108 		return name;
109 	}
110 	
111 	public String getId() {
112 		return id;
113 	}
114 	
115 	public String getImports() {
116 		return imports;
117 	}
118 	
119 	public String getPriorVersion() {
120 		return priorVersion;
121 	}
122 	
123 	public String getBackwardCompatibleWith() {
124 		return backwardCompatibleWith;
125 	}
126 	
127 	public String getIncompatibleWith() {
128 		return incompatibleWith;
129 	}
130 }