├── Citation.cff
├── Evaluation
├── Precision Recall
│ ├── OntoSeer Information (Responses).xlsx
│ ├── Use Case1
│ │ ├── OnlineGamingowlfiles
│ │ │ ├── DUL.owl
│ │ │ ├── ore_ont_15331.owl
│ │ │ ├── ore_ont_524.owl
│ │ │ ├── ore_ont_541.owl
│ │ │ └── ore_ont_544.owl
│ │ └── _Opening an Online Gaming Account_.pdf
│ └── Use Case2
│ │ ├── Book and Article Citation.pdf
│ │ └── BookOwlfiles
│ │ ├── books.owl
│ │ ├── ore_ont_2936.owl
│ │ ├── ore_ont_412.owl
│ │ ├── ore_ont_420.owl
│ │ ├── ore_ont_7639.owl
│ │ └── ore_ont_9805.owl
└── User Study
│ ├── OntoSeer_ User Study ISWC2021 (Responses).xlsx
│ └── User Study Questions.txt
├── Images
├── Axiom123.png
├── Axiom2111.png
├── Class.png
├── InitialModel.png
├── Naming36.png
├── Naming39.png
├── Naming52.png
├── Nmaing53.png
├── ODP211.png
├── ODP_1.png
├── Onto1.png
├── Onto133.png
├── Onto2.png
├── Onto3.png
├── Onto4.png
├── Onto5.png
├── Onto6.png
├── OntoSeer11.png
├── OntoSeer3.png
├── OntoSeer4.png
├── Onto_up1.png
├── Onto_up3.png
├── Onto_up4.png
├── Onto_up6.png
├── Onto_up_5.png
├── Onto_up_7.png
├── Onto_up_8.png
├── Onto_up_9.png
├── Ontoseer.png
├── Ontoseer1.png
├── Ontoseer10.png
├── Ontoseer2.png
├── Ontoseer5.png
├── Ontoseer6.png
├── Ontoseer7.png
├── Ontoseer9.png
├── Ontoseer_up.png
├── Ontosser8.png
├── Ontoup2.png
├── T1.png
├── Vocab1.png
├── Vocab211.png
├── about_protedge.png
├── axiom.png
├── axiom_name.png
├── class_heirarchy.png
├── class_heirarchy_name.png
├── class_naming.png
├── class_naming_name.png
├── github_assests.png
├── github_release.png
├── java_version.png
├── odp.png
├── odp_college.png
├── ontoseer_mac_folder.png
├── ontoseer_view.png
├── ontoseer_window_help.png
├── plugin_folder.png
├── property_naming.png
├── property_naming_name.png
├── vocab.png
└── vocab_name.png
├── ImagesOntoSeer
├── Assets.png
├── Axiom.png
├── Axiom11.png
├── Axiom12.png
├── Axiom2.png
├── ClassHierarchy2.png
├── ClassNami11.png
├── ClassNami12.png
├── Classhierarchy.png
├── Commandprompt3.png
├── Commandprompt4.png
├── Image commadprompt2.png
├── ImageCommandLine1.png
├── Index command prompt3.png
├── Namin2.png
├── Naming1.png
├── ODP.png
├── ODP11.png
├── ODP12.png
├── ODP2.png
├── OntoSEER67.png
├── OntoSeer2.png
├── OntoSeer_plugin.png
├── Opening shot.png
├── Property1.png
├── Property2.png
├── PropertyNami12.png
├── Vocab1.png
├── Vocab11.png
├── Vocab12.png
└── Vocab2.png
├── Indexing
├── AxiomRecommendation.ipynb
├── axiom.txt
└── inverted_demo_vocab.txt
├── LICENSE
├── OntoSeer
├── .classpath
├── .gitignore
├── .project
├── .settings
│ ├── org.eclipse.core.resources.prefs
│ ├── org.eclipse.jdt.core.prefs
│ └── org.eclipse.m2e.core.prefs
├── pom.xml
├── src
│ ├── bin
│ │ └── edu
│ │ │ └── stanford
│ │ │ └── bmir
│ │ │ └── protege
│ │ │ └── examples
│ │ │ ├── menu
│ │ │ ├── ToolsMenu1.class
│ │ │ ├── ToolsMenu2.class
│ │ │ ├── ToolsMenu3.class
│ │ │ └── UnderSubMenu.class
│ │ │ ├── tab
│ │ │ └── ExampleWorkspaceTab2.class
│ │ │ └── view
│ │ │ ├── ExampleViewComponent.class
│ │ │ └── Metrics.class
│ └── main
│ │ ├── java
│ │ └── edu
│ │ │ └── stanford
│ │ │ └── bmir
│ │ │ └── protege
│ │ │ └── examples
│ │ │ ├── menu
│ │ │ ├── ToolsMenu1.java
│ │ │ ├── ToolsMenu2.java
│ │ │ ├── ToolsMenu3.java
│ │ │ └── UnderSubMenu.java
│ │ │ ├── tab
│ │ │ └── ExampleWorkspaceTab2.java
│ │ │ └── view
│ │ │ ├── AxiomTriples.java
│ │ │ ├── Axiomrecommendationfilechooser.java
│ │ │ ├── ExampleViewComponent.java
│ │ │ ├── InvertedIndex$Tuple.class
│ │ │ ├── InvertedIndex.class
│ │ │ ├── InvertedIndex.java
│ │ │ ├── Metrics.java
│ │ │ ├── Metrics1.java
│ │ │ ├── Metrics2.java
│ │ │ ├── Metrics3.java
│ │ │ ├── ReadResourceFile.java
│ │ │ ├── StringEqualityPercentCheckUsingJaroWinklerDistance.java
│ │ │ ├── chatbotpanel.java
│ │ │ ├── index.sh
│ │ │ ├── indices.java
│ │ │ ├── jpanel.java
│ │ │ ├── naming_conventions.java
│ │ │ ├── naming_panel.java
│ │ │ ├── namingconventionprop.java
│ │ │ ├── odpdescription.java
│ │ │ ├── odpelements.java
│ │ │ ├── retrieval.java
│ │ │ └── vocabelements.java
│ │ └── resources
│ │ ├── axiom.txt
│ │ ├── config.properties
│ │ ├── index.txt
│ │ ├── odpdescription.txt
│ │ ├── odpelements.txt
│ │ ├── odpnames.txt
│ │ ├── odpuri.txt
│ │ ├── plugin.xml
│ │ ├── urii.txt
│ │ ├── viewconfig-exampletab.xml
│ │ ├── viewconfig-exampletab2.xml
│ │ ├── vocabdescription.txt
│ │ ├── vocabelements.txt
│ │ └── vocabnames.txt
└── target
│ ├── classes
│ ├── META-INF
│ │ └── MANIFEST.MF
│ ├── config.properties
│ ├── edu
│ │ └── stanford
│ │ │ └── bmir
│ │ │ └── protege
│ │ │ └── examples
│ │ │ ├── menu
│ │ │ ├── ToolsMenu1.class
│ │ │ ├── ToolsMenu2.class
│ │ │ ├── ToolsMenu3.class
│ │ │ └── UnderSubMenu.class
│ │ │ ├── tab
│ │ │ └── ExampleWorkspaceTab2.class
│ │ │ └── view
│ │ │ ├── AxiomTriples.class
│ │ │ ├── Axiomrecommendationfilechooser$1.class
│ │ │ ├── Axiomrecommendationfilechooser.class
│ │ │ ├── ExampleViewComponent.class
│ │ │ ├── InvertedIndex$Tuple.class
│ │ │ ├── InvertedIndex.class
│ │ │ ├── Metrics.class
│ │ │ ├── Metrics1.class
│ │ │ ├── Metrics2.class
│ │ │ ├── Metrics3.class
│ │ │ ├── StringEqualityPercentCheckUsingJaroWinklerDistance.class
│ │ │ ├── chatbotpanel$1.class
│ │ │ ├── chatbotpanel.class
│ │ │ ├── indices.class
│ │ │ ├── jpanel$1.class
│ │ │ ├── jpanel.class
│ │ │ ├── naming_conventions.class
│ │ │ ├── naming_panel$1.class
│ │ │ ├── naming_panel.class
│ │ │ ├── namingconventionprop.class
│ │ │ ├── odpdescription.class
│ │ │ ├── odpelements.class
│ │ │ ├── retrieval.class
│ │ │ └── vocabelements.class
│ ├── plugin.xml
│ ├── viewconfig-exampletab.xml
│ └── viewconfig-exampletab2.xml
│ └── maven-status
│ └── maven-compiler-plugin
│ └── compile
│ └── default-compile
│ ├── createdFiles.lst
│ └── inputFiles.lst
├── OntoSeer_Manual.pdf
├── README.md
└── WordNet-3.0.zip
/Citation.cff:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Evaluation/Precision Recall/OntoSeer Information (Responses).xlsx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Evaluation/Precision Recall/OntoSeer Information (Responses).xlsx
--------------------------------------------------------------------------------
/Evaluation/Precision Recall/Use Case1/_Opening an Online Gaming Account_.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Evaluation/Precision Recall/Use Case1/_Opening an Online Gaming Account_.pdf
--------------------------------------------------------------------------------
/Evaluation/Precision Recall/Use Case2/Book and Article Citation.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Evaluation/Precision Recall/Use Case2/Book and Article Citation.pdf
--------------------------------------------------------------------------------
/Evaluation/Precision Recall/Use Case2/BookOwlfiles/books.owl:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 | ]>
10 |
15 |
16 |
17 |
20 | An ontology containing information about books
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 |
205 |
206 |
207 |
208 |
209 |
210 |
211 |
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 |
220 |
221 |
222 |
223 |
224 |
225 |
226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 |
234 |
235 |
236 |
237 |
238 |
239 |
240 |
241 |
242 |
243 |
244 |
245 |
246 |
247 |
248 |
249 |
250 |
251 |
252 |
253 |
254 |
255 |
256 |
257 |
258 |
259 |
260 |
261 |
262 |
263 |
264 |
265 |
266 |
267 |
268 |
269 |
270 |
271 |
272 |
273 |
274 |
275 |
276 |
277 |
278 |
279 |
280 |
281 |
282 |
283 |
284 |
285 |
286 |
287 |
288 |
289 |
290 |
291 |
292 |
293 |
294 |
295 |
296 |
297 |
298 |
299 |
300 |
301 |
302 |
303 |
304 |
305 |
306 |
307 |
308 |
309 |
310 |
311 |
312 |
313 |
314 |
315 |
316 |
317 |
318 |
319 |
320 |
321 |
322 |
323 |
324 |
325 |
326 |
327 |
328 |
329 |
330 |
331 |
332 |
333 |
334 |
335 |
336 |
337 | A reservation has been made by a person for a book.
339 |
340 |
341 |
342 | The given book is available in the library.
344 |
345 |
346 |
--------------------------------------------------------------------------------
/Evaluation/Precision Recall/Use Case2/BookOwlfiles/ore_ont_9805.owl:
--------------------------------------------------------------------------------
1 | Prefix(owl:=)
2 | Prefix(rdf:=)
3 | Prefix(xml:=)
4 | Prefix(xsd:=)
5 | Prefix(rdfs:=)
6 |
7 |
8 | Ontology(
9 |
10 | Declaration(Class())
11 | Declaration(Class())
12 | Declaration(Class())
13 | Declaration(Class())
14 | Declaration(Class())
15 | Declaration(Class())
16 | Declaration(Class())
17 | Declaration(Class())
18 | Declaration(Class())
19 | Declaration(Class())
20 | Declaration(Class())
21 | Declaration(Class())
22 | Declaration(Class())
23 | Declaration(Class())
24 | Declaration(Class())
25 | Declaration(Class())
26 | Declaration(Class())
27 | Declaration(Class())
28 | Declaration(Class())
29 | Declaration(Class())
30 | Declaration(Class())
31 | Declaration(Class())
32 | Declaration(Class())
33 | Declaration(Class())
34 | Declaration(Class())
35 | Declaration(Class())
36 | Declaration(Class())
37 | Declaration(Class())
38 | Declaration(Class())
39 | Declaration(Class())
40 | Declaration(Class())
41 | Declaration(Class())
42 | Declaration(Class())
43 | Declaration(Class())
44 | Declaration(Class())
45 | Declaration(Class())
46 | Declaration(Class())
47 | Declaration(Class())
48 | Declaration(Class())
49 | Declaration(Class())
50 | Declaration(Class())
51 | Declaration(Class())
52 | Declaration(Class())
53 | Declaration(ObjectProperty())
54 | Declaration(ObjectProperty())
55 | Declaration(ObjectProperty())
56 | Declaration(ObjectProperty())
57 | Declaration(ObjectProperty())
58 | Declaration(ObjectProperty())
59 | Declaration(ObjectProperty())
60 | Declaration(ObjectProperty())
61 | Declaration(ObjectProperty())
62 | Declaration(ObjectProperty())
63 | Declaration(ObjectProperty())
64 | Declaration(ObjectProperty())
65 | Declaration(ObjectProperty())
66 | Declaration(ObjectProperty())
67 | Declaration(ObjectProperty())
68 | Declaration(ObjectProperty())
69 | Declaration(ObjectProperty())
70 | Declaration(ObjectProperty())
71 | Declaration(ObjectProperty())
72 | Declaration(ObjectProperty())
73 | Declaration(ObjectProperty())
74 | Declaration(ObjectProperty())
75 | Declaration(ObjectProperty())
76 | Declaration(ObjectProperty())
77 | Declaration(ObjectProperty())
78 | Declaration(ObjectProperty())
79 | Declaration(ObjectProperty())
80 | Declaration(ObjectProperty())
81 | Declaration(ObjectProperty())
82 | Declaration(ObjectProperty())
83 | Declaration(ObjectProperty())
84 | Declaration(ObjectProperty())
85 | SubClassOf( )
86 | SubClassOf( )
87 | SubClassOf( )
88 | SubClassOf( )
89 | SubClassOf( )
90 | SubClassOf( )
91 | SubClassOf( )
92 | SubClassOf( )
93 | SubClassOf( )
94 | SubClassOf( )
95 | SubClassOf( )
96 | SubClassOf( )
97 | SubClassOf( )
98 | SubClassOf( )
99 | SubClassOf( )
100 | SubClassOf( )
101 | SubClassOf( )
102 | SubClassOf( )
103 | SubClassOf( )
104 | SubClassOf( )
105 | SubClassOf( )
106 | SubClassOf( )
107 | SubClassOf( )
108 | SubClassOf( )
109 | SubClassOf( )
110 | SubClassOf(owl:Thing )
111 | SubClassOf(owl:Thing )
112 | SubClassOf(owl:Thing )
113 | SubClassOf(owl:Thing )
114 | SubClassOf(owl:Thing )
115 | SubClassOf(ObjectSomeValuesFrom( owl:Thing) )
116 | SubClassOf(ObjectSomeValuesFrom( owl:Thing) )
117 | SubClassOf(ObjectSomeValuesFrom( owl:Thing) )
118 | SubClassOf(ObjectSomeValuesFrom( owl:Thing) )
119 | SubClassOf(ObjectSomeValuesFrom( owl:Thing) )
120 | SubClassOf(ObjectSomeValuesFrom( owl:Thing) )
121 | SubClassOf(ObjectSomeValuesFrom( owl:Thing) )
122 | SubClassOf(ObjectSomeValuesFrom( owl:Thing) )
123 | SubClassOf(ObjectSomeValuesFrom( owl:Thing) )
124 | SubClassOf(ObjectSomeValuesFrom( owl:Thing) )
125 | SubClassOf(ObjectSomeValuesFrom( owl:Thing) )
126 | SubClassOf(ObjectSomeValuesFrom( owl:Thing) )
127 | SubClassOf(ObjectSomeValuesFrom( owl:Thing) )
128 | SubClassOf(ObjectSomeValuesFrom( owl:Thing) )
129 | SubClassOf(ObjectSomeValuesFrom( owl:Thing) )
130 | SubClassOf(ObjectSomeValuesFrom( owl:Thing) )
131 | SubClassOf(ObjectSomeValuesFrom( owl:Thing) )
132 | SubClassOf(ObjectSomeValuesFrom( owl:Thing) )
133 | SubClassOf(ObjectSomeValuesFrom( owl:Thing) )
134 | SubClassOf(ObjectSomeValuesFrom( owl:Thing) )
135 | SubClassOf(ObjectSomeValuesFrom( owl:Thing) )
136 | SubClassOf(ObjectSomeValuesFrom( owl:Thing) )
137 | SubClassOf(ObjectSomeValuesFrom( owl:Thing) )
138 | SubClassOf(ObjectSomeValuesFrom( owl:Thing) )
139 | SubClassOf(ObjectSomeValuesFrom( owl:Thing) )
140 | SubClassOf(ObjectSomeValuesFrom( owl:Thing) )
141 | SubClassOf(ObjectSomeValuesFrom( owl:Thing) )
142 | SubClassOf(ObjectSomeValuesFrom( owl:Thing) )
143 | SubClassOf(ObjectSomeValuesFrom( owl:Thing) )
144 | SubClassOf(ObjectSomeValuesFrom( owl:Thing) )
145 | SubClassOf(ObjectSomeValuesFrom( owl:Thing) )
146 | SubClassOf(ObjectSomeValuesFrom( owl:Thing) )
147 | )
--------------------------------------------------------------------------------
/Evaluation/User Study/OntoSeer_ User Study ISWC2021 (Responses).xlsx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Evaluation/User Study/OntoSeer_ User Study ISWC2021 (Responses).xlsx
--------------------------------------------------------------------------------
/Evaluation/User Study/User Study Questions.txt:
--------------------------------------------------------------------------------
1 | * How experienced are you with ontology modelling?
2 | * How experienced are you with using Protege?
3 | * Do you know about LOV and ontology repositories such as BioPortal?
4 | * If Yes, please specify how often do you reuse classes and properties from LOV and ontology repositories?
5 |
6 | * Do you use Ontology Design Patterns (ODPs)?
7 | * If Yes, please specify how often do you use ODPs?
8 |
9 |
10 | #This section should be answered only if competency questions have been provided to OntoSeer.
11 |
12 |
13 | * How useful are the class and property recommendations?
14 | * How useful are the ontology vocabulary recommendations?
15 | * How useful are the ODP recommendations?
16 | * How useful are the axiom recommendations?
17 |
18 |
19 |
20 | #This section should be answered only if competency questions are not provided to OntoSeer.
21 |
22 | * How useful are the Ontology vocabulary recommendations?
23 | * How useful are the ODP recommendations?
24 | * How useful are the axiom recommendations?
25 |
26 |
27 | #Other Questions
28 |
29 | * How useful is the naming convention checker?
30 | * How happy are you with the class hierarchy validation?
31 | * How was the installation process?
32 | * How was your experience of modelling an ontology without OntoSeer?
33 | * How was your experience of modelling an ontology with OntoSeer?
34 | * Does Ontoseer help in saving modelling time?
35 | * Do you have any suggestions for improving the user experience?
36 |
--------------------------------------------------------------------------------
/Images/Axiom123.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Axiom123.png
--------------------------------------------------------------------------------
/Images/Axiom2111.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Axiom2111.png
--------------------------------------------------------------------------------
/Images/Class.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Class.png
--------------------------------------------------------------------------------
/Images/InitialModel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/InitialModel.png
--------------------------------------------------------------------------------
/Images/Naming36.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Naming36.png
--------------------------------------------------------------------------------
/Images/Naming39.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Naming39.png
--------------------------------------------------------------------------------
/Images/Naming52.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Naming52.png
--------------------------------------------------------------------------------
/Images/Nmaing53.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Nmaing53.png
--------------------------------------------------------------------------------
/Images/ODP211.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/ODP211.png
--------------------------------------------------------------------------------
/Images/ODP_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/ODP_1.png
--------------------------------------------------------------------------------
/Images/Onto1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Onto1.png
--------------------------------------------------------------------------------
/Images/Onto133.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Onto133.png
--------------------------------------------------------------------------------
/Images/Onto2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Onto2.png
--------------------------------------------------------------------------------
/Images/Onto3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Onto3.png
--------------------------------------------------------------------------------
/Images/Onto4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Onto4.png
--------------------------------------------------------------------------------
/Images/Onto5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Onto5.png
--------------------------------------------------------------------------------
/Images/Onto6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Onto6.png
--------------------------------------------------------------------------------
/Images/OntoSeer11.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/OntoSeer11.png
--------------------------------------------------------------------------------
/Images/OntoSeer3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/OntoSeer3.png
--------------------------------------------------------------------------------
/Images/OntoSeer4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/OntoSeer4.png
--------------------------------------------------------------------------------
/Images/Onto_up1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Onto_up1.png
--------------------------------------------------------------------------------
/Images/Onto_up3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Onto_up3.png
--------------------------------------------------------------------------------
/Images/Onto_up4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Onto_up4.png
--------------------------------------------------------------------------------
/Images/Onto_up6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Onto_up6.png
--------------------------------------------------------------------------------
/Images/Onto_up_5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Onto_up_5.png
--------------------------------------------------------------------------------
/Images/Onto_up_7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Onto_up_7.png
--------------------------------------------------------------------------------
/Images/Onto_up_8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Onto_up_8.png
--------------------------------------------------------------------------------
/Images/Onto_up_9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Onto_up_9.png
--------------------------------------------------------------------------------
/Images/Ontoseer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Ontoseer.png
--------------------------------------------------------------------------------
/Images/Ontoseer1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Ontoseer1.png
--------------------------------------------------------------------------------
/Images/Ontoseer10.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Ontoseer10.png
--------------------------------------------------------------------------------
/Images/Ontoseer2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Ontoseer2.png
--------------------------------------------------------------------------------
/Images/Ontoseer5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Ontoseer5.png
--------------------------------------------------------------------------------
/Images/Ontoseer6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Ontoseer6.png
--------------------------------------------------------------------------------
/Images/Ontoseer7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Ontoseer7.png
--------------------------------------------------------------------------------
/Images/Ontoseer9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Ontoseer9.png
--------------------------------------------------------------------------------
/Images/Ontoseer_up.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Ontoseer_up.png
--------------------------------------------------------------------------------
/Images/Ontosser8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Ontosser8.png
--------------------------------------------------------------------------------
/Images/Ontoup2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Ontoup2.png
--------------------------------------------------------------------------------
/Images/T1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/T1.png
--------------------------------------------------------------------------------
/Images/Vocab1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Vocab1.png
--------------------------------------------------------------------------------
/Images/Vocab211.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/Vocab211.png
--------------------------------------------------------------------------------
/Images/about_protedge.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/about_protedge.png
--------------------------------------------------------------------------------
/Images/axiom.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/axiom.png
--------------------------------------------------------------------------------
/Images/axiom_name.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/axiom_name.png
--------------------------------------------------------------------------------
/Images/class_heirarchy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/class_heirarchy.png
--------------------------------------------------------------------------------
/Images/class_heirarchy_name.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/class_heirarchy_name.png
--------------------------------------------------------------------------------
/Images/class_naming.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/class_naming.png
--------------------------------------------------------------------------------
/Images/class_naming_name.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/class_naming_name.png
--------------------------------------------------------------------------------
/Images/github_assests.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/github_assests.png
--------------------------------------------------------------------------------
/Images/github_release.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/github_release.png
--------------------------------------------------------------------------------
/Images/java_version.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/java_version.png
--------------------------------------------------------------------------------
/Images/odp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/odp.png
--------------------------------------------------------------------------------
/Images/odp_college.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/odp_college.png
--------------------------------------------------------------------------------
/Images/ontoseer_mac_folder.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/ontoseer_mac_folder.png
--------------------------------------------------------------------------------
/Images/ontoseer_view.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/ontoseer_view.png
--------------------------------------------------------------------------------
/Images/ontoseer_window_help.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/ontoseer_window_help.png
--------------------------------------------------------------------------------
/Images/plugin_folder.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/plugin_folder.png
--------------------------------------------------------------------------------
/Images/property_naming.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/property_naming.png
--------------------------------------------------------------------------------
/Images/property_naming_name.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/property_naming_name.png
--------------------------------------------------------------------------------
/Images/vocab.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/vocab.png
--------------------------------------------------------------------------------
/Images/vocab_name.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/Images/vocab_name.png
--------------------------------------------------------------------------------
/ImagesOntoSeer/Assets.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/ImagesOntoSeer/Assets.png
--------------------------------------------------------------------------------
/ImagesOntoSeer/Axiom.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/ImagesOntoSeer/Axiom.png
--------------------------------------------------------------------------------
/ImagesOntoSeer/Axiom11.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/ImagesOntoSeer/Axiom11.png
--------------------------------------------------------------------------------
/ImagesOntoSeer/Axiom12.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/ImagesOntoSeer/Axiom12.png
--------------------------------------------------------------------------------
/ImagesOntoSeer/Axiom2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/ImagesOntoSeer/Axiom2.png
--------------------------------------------------------------------------------
/ImagesOntoSeer/ClassHierarchy2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/ImagesOntoSeer/ClassHierarchy2.png
--------------------------------------------------------------------------------
/ImagesOntoSeer/ClassNami11.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/ImagesOntoSeer/ClassNami11.png
--------------------------------------------------------------------------------
/ImagesOntoSeer/ClassNami12.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/ImagesOntoSeer/ClassNami12.png
--------------------------------------------------------------------------------
/ImagesOntoSeer/Classhierarchy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/ImagesOntoSeer/Classhierarchy.png
--------------------------------------------------------------------------------
/ImagesOntoSeer/Commandprompt3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/ImagesOntoSeer/Commandprompt3.png
--------------------------------------------------------------------------------
/ImagesOntoSeer/Commandprompt4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/ImagesOntoSeer/Commandprompt4.png
--------------------------------------------------------------------------------
/ImagesOntoSeer/Image commadprompt2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/ImagesOntoSeer/Image commadprompt2.png
--------------------------------------------------------------------------------
/ImagesOntoSeer/ImageCommandLine1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/ImagesOntoSeer/ImageCommandLine1.png
--------------------------------------------------------------------------------
/ImagesOntoSeer/Index command prompt3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/ImagesOntoSeer/Index command prompt3.png
--------------------------------------------------------------------------------
/ImagesOntoSeer/Namin2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/ImagesOntoSeer/Namin2.png
--------------------------------------------------------------------------------
/ImagesOntoSeer/Naming1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/ImagesOntoSeer/Naming1.png
--------------------------------------------------------------------------------
/ImagesOntoSeer/ODP.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/ImagesOntoSeer/ODP.png
--------------------------------------------------------------------------------
/ImagesOntoSeer/ODP11.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/ImagesOntoSeer/ODP11.png
--------------------------------------------------------------------------------
/ImagesOntoSeer/ODP12.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/ImagesOntoSeer/ODP12.png
--------------------------------------------------------------------------------
/ImagesOntoSeer/ODP2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/ImagesOntoSeer/ODP2.png
--------------------------------------------------------------------------------
/ImagesOntoSeer/OntoSEER67.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/ImagesOntoSeer/OntoSEER67.png
--------------------------------------------------------------------------------
/ImagesOntoSeer/OntoSeer2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/ImagesOntoSeer/OntoSeer2.png
--------------------------------------------------------------------------------
/ImagesOntoSeer/OntoSeer_plugin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/ImagesOntoSeer/OntoSeer_plugin.png
--------------------------------------------------------------------------------
/ImagesOntoSeer/Opening shot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/ImagesOntoSeer/Opening shot.png
--------------------------------------------------------------------------------
/ImagesOntoSeer/Property1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/ImagesOntoSeer/Property1.png
--------------------------------------------------------------------------------
/ImagesOntoSeer/Property2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/ImagesOntoSeer/Property2.png
--------------------------------------------------------------------------------
/ImagesOntoSeer/PropertyNami12.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/ImagesOntoSeer/PropertyNami12.png
--------------------------------------------------------------------------------
/ImagesOntoSeer/Vocab1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/ImagesOntoSeer/Vocab1.png
--------------------------------------------------------------------------------
/ImagesOntoSeer/Vocab11.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/ImagesOntoSeer/Vocab11.png
--------------------------------------------------------------------------------
/ImagesOntoSeer/Vocab12.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/ImagesOntoSeer/Vocab12.png
--------------------------------------------------------------------------------
/ImagesOntoSeer/Vocab2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/ImagesOntoSeer/Vocab2.png
--------------------------------------------------------------------------------
/Indexing/axiom.txt:
--------------------------------------------------------------------------------
1 | Action subclassof BioMaterialPackage
2 | Action subclassof BiologicalFactorCategory
3 | Age subclassof BioMaterialCharacteristics
4 | Allele subclassof IndividualGeneticCharacteristics
5 | ArrayDesignPackage subclassof MGEDCoreOntology
6 | ArrayGroup subclassof ArrayPackage
7 | ArrayPackage subclassof MGEDCoreOntology
8 | Atmosphere subclassof GrowthCondition
9 | AtomicAction subclassof Action
10 | AuditAndSecurityPackage subclassof MGEDCoreOntology
11 | BarrierFacility subclassof GrowthCondition
12 | Bedding subclassof EnvironmentalHistory
13 | BibliographicReference subclassof DescriptionPackage
14 | BioAssay subclassof BioAssayPackage
15 | BioAssayData subclassof BioAssayDataPackage
16 | BioAssayDataCluster subclassof HigherLevelAnalysisPackage
17 | BioAssayDataPackage subclassof MGEDExtendedOntology
18 | BioAssayPackage subclassof MGEDCoreOntology
19 | BioMaterial subclassof BioMaterialPackage
20 | BioMaterialCharacteristicCategory subclassof BiologicalFactorCategory
21 | BioMaterialCharacteristics subclassof BioMaterialPackage
22 | BioMaterialCharacteristics subclassof BiologicalFactorCategory
23 | BioMaterialPackage subclassof MGEDCoreOntology
24 | BioMolecularAnnotation subclassof ExperimentDesignType
25 | BioSample subclassof BioMaterial
26 | BioSampleType subclassof BioMaterialPackage
27 | BioSequence subclassof BioSequencePackage
28 | BioSequencePackage subclassof MGEDCoreOntology
29 | BioSequenceType subclassof BioSequencePackage
30 | BioSource subclassof BioMaterial
31 | BioSourceProvider subclassof BioMaterialCharacteristics
32 | BioSourceType subclassof BioMaterialCharacteristics
33 | BiologicalFactorCategory subclassof ExperimentalFactorCategory
34 | BiologicalProperty subclassof ExperimentDesignType
35 | Biometrics subclassof BioMaterialCharacteristics
36 | CellLine subclassof BioMaterialCharacteristics
37 | CellLine subclassof OntologyEntry
38 | CellLineDatabase subclassof Database
39 | CellType subclassof BioMaterialCharacteristics
40 | CellType subclassof OntologyEntry
41 | CellTypeDatabase subclassof Database
42 | ChromosomalAberration subclassof IndividualGeneticCharacteristics
43 | ChromosomalAberration subclassof OntologyEntry
44 | ChromosomalAberrationClassification subclassof BioMaterialCharacteristics
45 | ChromosomalAberrationDatabase subclassof Database
46 | ClinicalFinding subclassof OntologyEntry
47 | ClinicalHistory subclassof EnvironmentalHistory
48 | ClinicalTest subclassof BioMaterialCharacteristics
49 | ClinicalTestType subclassof BioMaterialCharacteristics
50 | ClinicalTreatment subclassof BioMaterialCharacteristics ;
51 |
--------------------------------------------------------------------------------
/OntoSeer/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/OntoSeer/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/OntoSeer/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | Onto
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.m2e.core.maven2Builder
15 |
16 |
17 |
18 |
19 |
20 | org.eclipse.jdt.core.javanature
21 | org.eclipse.m2e.core.maven2Nature
22 |
23 |
24 |
--------------------------------------------------------------------------------
/OntoSeer/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/java=UTF-8
3 | encoding//src/main/resources=UTF-8
4 | encoding/=UTF-8
5 |
--------------------------------------------------------------------------------
/OntoSeer/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
3 | org.eclipse.jdt.core.compiler.compliance=1.8
4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
7 | org.eclipse.jdt.core.compiler.release=disabled
8 | org.eclipse.jdt.core.compiler.source=1.8
9 |
--------------------------------------------------------------------------------
/OntoSeer/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/OntoSeer/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 4.0.0
4 |
5 | edu.stanford.protege
6 | protege.plugin.examples
7 | 2.0.0-SNAPSHOT
8 | bundle
9 |
10 | OntoSeer
11 | Example plug-ins for the Protege Desktop ontology editor, e.g., views, menu items, etc.
12 |
13 |
14 | UTF-8
15 |
16 |
17 |
18 |
19 | edu.stanford.protege
20 | protege-editor-owl
21 | 5.0.0
22 |
23 |
24 |
25 | org.json
26 | json
27 | 20160810
28 | compile
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 | src/main/resources
38 | true
39 |
40 |
41 |
42 |
43 |
44 | org.apache.maven.plugins
45 | maven-compiler-plugin
46 | 3.3
47 |
48 | 1.8
49 | 1.8
50 |
51 |
52 |
53 |
54 | org.apache.felix
55 | maven-bundle-plugin
56 | 3.0.0
57 | true
58 |
59 |
60 | org.protege.editor.owl.ProtegeOWL
61 | .
62 | ${project.artifactId};singleton:=true
63 | The Protege Development Team
64 |
65 | org.protege.editor.owl.*;version="5.0.0",
66 | *
67 |
68 |
69 |
70 | org.json.json.*;version="20160810",
71 | *
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 | json;scope=compile;inline=true
80 |
81 |
82 |
83 |
84 |
85 |
86 | maven-eclipse-plugin
87 | 2.9
88 |
89 | true
90 |
91 |
92 |
93 |
94 |
--------------------------------------------------------------------------------
/OntoSeer/src/bin/edu/stanford/bmir/protege/examples/menu/ToolsMenu1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/OntoSeer/src/bin/edu/stanford/bmir/protege/examples/menu/ToolsMenu1.class
--------------------------------------------------------------------------------
/OntoSeer/src/bin/edu/stanford/bmir/protege/examples/menu/ToolsMenu2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/OntoSeer/src/bin/edu/stanford/bmir/protege/examples/menu/ToolsMenu2.class
--------------------------------------------------------------------------------
/OntoSeer/src/bin/edu/stanford/bmir/protege/examples/menu/ToolsMenu3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/OntoSeer/src/bin/edu/stanford/bmir/protege/examples/menu/ToolsMenu3.class
--------------------------------------------------------------------------------
/OntoSeer/src/bin/edu/stanford/bmir/protege/examples/menu/UnderSubMenu.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/OntoSeer/src/bin/edu/stanford/bmir/protege/examples/menu/UnderSubMenu.class
--------------------------------------------------------------------------------
/OntoSeer/src/bin/edu/stanford/bmir/protege/examples/tab/ExampleWorkspaceTab2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/OntoSeer/src/bin/edu/stanford/bmir/protege/examples/tab/ExampleWorkspaceTab2.class
--------------------------------------------------------------------------------
/OntoSeer/src/bin/edu/stanford/bmir/protege/examples/view/ExampleViewComponent.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/OntoSeer/src/bin/edu/stanford/bmir/protege/examples/view/ExampleViewComponent.class
--------------------------------------------------------------------------------
/OntoSeer/src/bin/edu/stanford/bmir/protege/examples/view/Metrics.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/OntoSeer/src/bin/edu/stanford/bmir/protege/examples/view/Metrics.class
--------------------------------------------------------------------------------
/OntoSeer/src/main/java/edu/stanford/bmir/protege/examples/menu/ToolsMenu1.java:
--------------------------------------------------------------------------------
1 | package edu.stanford.bmir.protege.examples.menu;
2 |
3 | import java.awt.event.ActionEvent;
4 |
5 | import javax.swing.JOptionPane;
6 |
7 | import org.protege.editor.owl.ui.action.ProtegeOWLAction;
8 |
9 | public class ToolsMenu1 extends ProtegeOWLAction {
10 |
11 | public void initialise() throws Exception {
12 | }
13 |
14 | public void dispose() throws Exception {
15 | }
16 |
17 | public void actionPerformed(ActionEvent event) {
18 | StringBuilder message = new StringBuilder("This example menu item is under the Tools menu.\n");
19 | message.append("The currently selected class is ");
20 | message.append(getOWLWorkspace().getOWLSelectionModel().getLastSelectedClass());
21 | message.append(".");
22 | JOptionPane.showMessageDialog(getOWLWorkspace(), message.toString());
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/OntoSeer/src/main/java/edu/stanford/bmir/protege/examples/menu/ToolsMenu2.java:
--------------------------------------------------------------------------------
1 | package edu.stanford.bmir.protege.examples.menu;
2 |
3 | import java.awt.event.ActionEvent;
4 |
5 | import javax.swing.JOptionPane;
6 |
7 | import org.protege.editor.owl.ui.action.ProtegeOWLAction;
8 |
9 | public class ToolsMenu2 extends ProtegeOWLAction {
10 |
11 | public void initialise() throws Exception {
12 | }
13 |
14 | public void dispose() throws Exception {
15 | }
16 |
17 | public void actionPerformed(ActionEvent event) {
18 | StringBuilder message = new StringBuilder("This is the second example menu item under the Tools menu.\n");
19 | message.append("The active ontology has ");
20 | message.append(getOWLModelManager().getActiveOntology().getAxiomCount());
21 | message.append(" axioms.");
22 | JOptionPane.showMessageDialog(getOWLWorkspace(), message.toString());
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/OntoSeer/src/main/java/edu/stanford/bmir/protege/examples/menu/ToolsMenu3.java:
--------------------------------------------------------------------------------
1 | package edu.stanford.bmir.protege.examples.menu;
2 |
3 | import java.awt.event.ActionEvent;
4 |
5 | import javax.swing.JOptionPane;
6 |
7 | import org.protege.editor.owl.ui.action.ProtegeOWLAction;
8 |
9 | public class ToolsMenu3 extends ProtegeOWLAction {
10 |
11 | public void initialise() throws Exception {
12 | }
13 |
14 | public void dispose() throws Exception {
15 | }
16 |
17 | public void actionPerformed(ActionEvent event) {
18 | StringBuilder message = new StringBuilder(
19 | "This example menu item is under the Tools menu, but displayed in a separate category from the other example menu items.\n");
20 | message.append("The active ontology has ");
21 | message.append(getOWLModelManager().getActiveOntology().getClassesInSignature().size());
22 | message.append(" classes.");
23 | JOptionPane.showMessageDialog(getOWLWorkspace(), message.toString());
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/OntoSeer/src/main/java/edu/stanford/bmir/protege/examples/menu/UnderSubMenu.java:
--------------------------------------------------------------------------------
1 | package edu.stanford.bmir.protege.examples.menu;
2 |
3 | import java.awt.event.ActionEvent;
4 |
5 | import javax.swing.JOptionPane;
6 |
7 | import org.protege.editor.owl.ui.action.ProtegeOWLAction;
8 |
9 | public class UnderSubMenu extends ProtegeOWLAction {
10 |
11 | public void initialise() throws Exception {
12 | }
13 |
14 | public void dispose() throws Exception {
15 | }
16 |
17 | public void actionPerformed(ActionEvent arg0) {
18 | StringBuilder message = new StringBuilder("Yet another example menu item.\n");
19 | message.append("The active ontology has ");
20 | message.append(getOWLModelManager().getActiveOntology().getObjectPropertiesInSignature().size());
21 | message.append(" object properties.");
22 | JOptionPane.showMessageDialog(getOWLWorkspace(), message.toString());
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/OntoSeer/src/main/java/edu/stanford/bmir/protege/examples/tab/ExampleWorkspaceTab2.java:
--------------------------------------------------------------------------------
1 | package edu.stanford.bmir.protege.examples.tab;
2 |
3 | import org.protege.editor.owl.ui.OWLWorkspaceViewsTab;
4 | import org.slf4j.Logger;
5 | import org.slf4j.LoggerFactory;
6 |
7 | public class ExampleWorkspaceTab2 extends OWLWorkspaceViewsTab {
8 |
9 | private static final Logger log = LoggerFactory.getLogger(ExampleWorkspaceTab2.class);
10 |
11 | public ExampleWorkspaceTab2() {
12 | setToolTipText("Custom tooltip text for Example Tab (2)");
13 | }
14 |
15 | @Override
16 | public void initialise() {
17 | super.initialise();
18 | log.info("Example Workspace Tab (2) initialized");
19 | }
20 |
21 | @Override
22 | public void dispose() {
23 | super.dispose();
24 | log.info("Example Workspace Tab (2) disposed");
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/OntoSeer/src/main/java/edu/stanford/bmir/protege/examples/view/AxiomTriples.java:
--------------------------------------------------------------------------------
1 | package edu.stanford.bmir.protege.examples.view;
2 | import java.util.*;
3 | import java.io.BufferedReader;
4 | import java.io.IOException;
5 | import java.io.InputStreamReader;
6 | import java.io.UnsupportedEncodingException;
7 | public class AxiomTriples {
8 |
9 | Listaxim;
10 | public AxiomTriples() {
11 | axim=new ArrayList();
12 | }
13 | public List readFile(String fileName) {
14 | fileName="/axiom.txt";
15 | try {
16 | //System.out.println("Enter try"+fileName);
17 |
18 | BufferedReader br = new BufferedReader(new InputStreamReader(
19 | this.getClass().getResourceAsStream( fileName), "UTF-8"));
20 | //System.out.println(fileName);
21 | String line = null;
22 |
23 | while ((line = br.readLine()) != null) {
24 | //System.out.println("Inside while");
25 | axim.add(line) ;
26 | }
27 | // System.out.println(axim.size());
28 | return axim;
29 | } catch (UnsupportedEncodingException e) {
30 | e.printStackTrace();
31 | return axim;
32 | } catch (IOException e) {
33 | e.printStackTrace();
34 | return axim;
35 | }
36 | }
37 | public List axioms() {
38 |
39 | AxiomTriples a=new AxiomTriples();
40 | axim=a.readFile("/axiom.txt");
41 | //System.out.println(axim.size());
42 | for(int i=0;iAxiom();
35 | public Axiomrecommendationfilechooser () {
36 | super("JPanel Demo Program");
37 | JPanel newPanel = new JPanel(new GridBagLayout());
38 |
39 | fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
40 | // fileChooser.setCurrentDirectory(new File(System.getProperty("user.home")));
41 | int result = fileChooser.showOpenDialog(this);
42 | if (result == JFileChooser.APPROVE_OPTION) {
43 | selectedFile = fileChooser.getSelectedFile();
44 | System.out.println("Selected file: " + selectedFile.getAbsolutePath());
45 | }
46 | GridBagConstraints constraints = new GridBagConstraints();
47 | constraints.anchor = GridBagConstraints.WEST;
48 | constraints.insets = new Insets(10, 10, 10, 10);
49 |
50 | // add components to the panel
51 | constraints.gridx = 0;
52 | constraints.gridy = 0;
53 | newPanel.add(labelEnterdescription, constraints);
54 | constraints.gridx = 1;
55 | newPanel.add(textDescription, constraints);
56 |
57 | constraints.gridx = 0;
58 | constraints.gridy = 4;
59 | constraints.gridwidth = 2;
60 | constraints.anchor = GridBagConstraints.CENTER;
61 | newPanel.add(buttonLogin, constraints);
62 | newPanel.add(buttonLogin, constraints);
63 | buttonLogin.addActionListener(refreshAction);
64 |
65 |
66 |
67 |
68 | // set border for the panel
69 | newPanel.setBorder(BorderFactory.createTitledBorder(
70 | BorderFactory.createEtchedBorder(), "Axiom Recommendation panel"));
71 |
72 |
73 |
74 |
75 | // add the panel to this frame
76 | add(newPanel);
77 |
78 | pack();
79 | setLocationRelativeTo(null);
80 | }
81 |
82 | public void Axiom() {
83 | Listls=new ArrayList();
84 |
85 | retrieval r=new retrieval();
86 |
87 | String s=selectedFile.getAbsolutePath();
88 | String s1=null;
89 | s1=textDescription.getText();
90 |
91 |
92 | System.out.println(s1);
93 |
94 | //ls.addAll(r.re(s1,s));
95 |
96 | //return s;
97 | }
98 | public void dispose() {
99 |
100 | buttonLogin.removeActionListener(refreshAction);
101 |
102 |
103 | }
104 | public void result() {
105 | try {
106 | UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
107 | } catch (Exception ex) {
108 | ex.printStackTrace();
109 | }
110 |
111 | SwingUtilities.invokeLater(new Runnable() {
112 | @Override
113 | public void run() {
114 | new Axiomrecommendationfilechooser().setVisible(true);
115 | }
116 | });
117 |
118 | }
119 | public static void main(String[] args) {
120 | // set look and feel to the system look and feel
121 | Axiomrecommendationfilechooser a= new Axiomrecommendationfilechooser();
122 | a.result();
123 |
124 | }
125 |
126 |
127 | }
128 |
--------------------------------------------------------------------------------
/OntoSeer/src/main/java/edu/stanford/bmir/protege/examples/view/ExampleViewComponent.java:
--------------------------------------------------------------------------------
1 | package edu.stanford.bmir.protege.examples.view;
2 |
3 | import java.awt.BorderLayout;
4 | import org.protege.editor.owl.ui.view.AbstractOWLViewComponent;
5 | import org.slf4j.Logger;
6 | import org.slf4j.LoggerFactory;
7 |
8 | public class ExampleViewComponent extends AbstractOWLViewComponent {
9 |
10 | private static final Logger log = LoggerFactory.getLogger(ExampleViewComponent.class);
11 |
12 | private Metrics metricsComponent;
13 |
14 | @Override
15 | protected void initialiseOWLView() throws Exception {
16 | setLayout(new BorderLayout());
17 | metricsComponent = new Metrics(getOWLModelManager());
18 | add(metricsComponent, BorderLayout.CENTER);
19 | log.info("OntoSeer View Component initialized");
20 | }
21 |
22 | @Override
23 | protected void disposeOWLView() {
24 | metricsComponent.dispose();
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/OntoSeer/src/main/java/edu/stanford/bmir/protege/examples/view/InvertedIndex$Tuple.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/OntoSeer/src/main/java/edu/stanford/bmir/protege/examples/view/InvertedIndex$Tuple.class
--------------------------------------------------------------------------------
/OntoSeer/src/main/java/edu/stanford/bmir/protege/examples/view/InvertedIndex.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kracr/ontoseer/c248febbce39453fb33a827df110bc434cd88fdc/OntoSeer/src/main/java/edu/stanford/bmir/protege/examples/view/InvertedIndex.class
--------------------------------------------------------------------------------
/OntoSeer/src/main/java/edu/stanford/bmir/protege/examples/view/InvertedIndex.java:
--------------------------------------------------------------------------------
1 | package edu.stanford.bmir.protege.examples.view;
2 | import java.io.BufferedReader;
3 | import java.io.BufferedWriter;
4 | import java.io.File;
5 | import java.io.FileReader;
6 | import java.io.FileWriter;
7 | import java.io.IOException;
8 | import java.io.InputStreamReader;
9 | import java.io.UnsupportedEncodingException;
10 | import java.util.ArrayList;
11 | import java.util.Arrays;
12 | import java.util.HashMap;
13 | import java.util.HashSet;
14 | import java.util.LinkedList;
15 | import java.util.List;
16 | import java.util.Map;
17 | import java.util.Set;
18 | import java.util.*;
19 |
20 | public class InvertedIndex {
21 |
22 | List stopwords = Arrays.asList("https://","IRI","Class","Declaration","subclassof","subpropertiesof");
23 |
24 | Map> index = new HashMap>();
25 | List files = new ArrayList();
26 | //Creating index for folder of owl files
27 | public void indexFile(File file) throws IOException {
28 | int fileno = files.indexOf(file.getPath());
29 | if (fileno == -1) {
30 | files.add(file.getPath());
31 | fileno = files.size() - 1;
32 | }
33 |
34 | int pos = 0;
35 |
36 | BufferedReader reader = new BufferedReader(new FileReader(file));
37 | for (String line = reader.readLine(); line != null; line = reader
38 | .readLine()) {
39 | for (String _word : line.split("\\W+")) {
40 | String word = _word.toLowerCase();
41 | pos++;
42 | if (stopwords.contains(word))
43 | continue;
44 | List idx = index.get(word);
45 | if (idx == null) {
46 | idx = new LinkedList();
47 | index.put(word, idx);
48 | //System.out.println(word+"idx"+idx.toString());
49 | }
50 | idx.add(new Tuple(fileno, pos));
51 | Tuple t=new Tuple(fileno,pos);
52 | System.out.println("word "+word+"FileNo"+t.getfileno()+"Position"+t.getposition());
53 | try {
54 | String str = word+","+t.getfileno();
55 | int n=t.getfileno();
56 |
57 | BufferedWriter writer = new BufferedWriter(new FileWriter("/home/pramit79/index.txt", true));
58 | writer.append('\n');
59 | writer.append(str);
60 |
61 | writer.close();
62 | }
63 |
64 |
65 |
66 |
67 | catch (IOException e) {
68 | System.out.println("An error occurred.");
69 | e.printStackTrace();
70 | }
71 |
72 |
73 |
74 |
75 | }
76 |
77 | }
78 |
79 |
80 | }
81 | //Searching the index
82 | public List search(String word) {
83 | List myList= new ArrayList();
84 | List myList1= new ArrayList();
85 | List indexretrieval= new ArrayList();
86 | String fileName="/index.txt";
87 | StringEqualityPercentCheckUsingJaroWinklerDistance c=new StringEqualityPercentCheckUsingJaroWinklerDistance();
88 | try {
89 | int count=0;
90 |
91 | BufferedReader br = new BufferedReader(new InputStreamReader(
92 | this.getClass().getResourceAsStream(fileName), "UTF-8"));
93 |
94 | String line = null;
95 |
96 | while ((line = br.readLine()) != null) {
97 | count++;
98 | String arr[]=null;
99 | arr = line.split(",");
100 | myList.add(arr[0]);
101 | myList1.add(arr[1]);
102 | if(myList.indexOf(word)!=-1) {
103 |
104 | indexretrieval.add(arr[1]);
105 |
106 | }
107 | else {
108 | double d=c.similarity(arr[0],word );
109 | if(d>=0.75) {
110 | indexretrieval.add(arr[1]);
111 | }
112 | }
113 |
114 | }
115 | System.out.println(indexretrieval.toString());
116 | return indexretrieval;
117 | } catch (UnsupportedEncodingException e) {
118 | e.printStackTrace();
119 | return indexretrieval;
120 | } catch (IOException e) {
121 | e.printStackTrace();
122 | return indexretrieval;
123 | }
124 |
125 | /*
126 | for (String _word : words) {
127 | Set answer = new HashSet();
128 | String word = _word.toLowerCase();
129 | List idx = index.get(word);
130 | if (idx != null) {
131 | for (Tuple t : idx) {
132 | answer.add(files.get(t.fileno));
133 | }
134 | }
135 | System.out.print(word);
136 | for (String f : answer) {
137 | System.out.print(" " + f);
138 | }
139 | System.out.println("");
140 | }
141 | */
142 | }
143 |
144 | public void index(String st) {
145 | try {
146 | InvertedIndex idx = new InvertedIndex();
147 | Scanner sc=new Scanner(System.in);
148 | System.out.println("Enter file path to index");
149 | String trial=sc.nextLine();
150 | Listfiles=new ArrayList<>();
151 | File dir = new File(trial);
152 | File[] directoryListing = dir.listFiles();
153 | if (directoryListing != null) {
154 | for (File file : directoryListing) {
155 |
156 | //System.out.println(file.toString());
157 | idx.indexFile(file);
158 |
159 | //System.out.println("Done indexing");
160 |
161 | }
162 | }
163 |
164 |
165 | // idx.search(st);
166 |
167 |
168 | } catch (Exception e) {
169 | e.printStackTrace();
170 | }
171 | }
172 |
173 | public static void main(String[] args) {
174 | try {
175 | InvertedIndex idx = new InvertedIndex();
176 |
177 | /*generate index over folder*/
178 | idx.index("resource");
179 | /*searching for terms in index*/
180 | idx.search("resour");
181 | }
182 | catch (Exception e) {
183 | e.printStackTrace();
184 | }
185 | }
186 |
187 | class Tuple {
188 | int fileno;
189 | int position;
190 |
191 | public Tuple(int fileno, int position) {
192 | this.fileno = fileno;
193 | this.position = position;
194 | }
195 | public int getfileno() {
196 | return this.fileno;
197 | }
198 | public int getposition() {
199 | return this.position;
200 | }
201 | }
202 |
203 | }
204 |
--------------------------------------------------------------------------------
/OntoSeer/src/main/java/edu/stanford/bmir/protege/examples/view/Metrics1.java:
--------------------------------------------------------------------------------
1 | package edu.stanford.bmir.protege.examples.view;
2 |
3 | import javax.swing.*;
4 | import javax.net.ssl.HttpsURLConnection;
5 | import javax.net.ssl.SSLContext;
6 | import javax.net.ssl.TrustManager;
7 | import javax.net.ssl.X509TrustManager;
8 | import java.io.OutputStream;
9 |
10 | import javax.swing.text.*;
11 |
12 | import java.awt.Color;
13 | import java.awt.FlowLayout;
14 | import java.awt.Font;
15 |
16 |
17 | import java.awt.event.*;
18 |
19 | import java.util.*;
20 |
21 |
22 | import org.protege.editor.owl.model.OWLModelManager;
23 | import org.protege.editor.owl.model.event.EventType;
24 | import org.protege.editor.owl.model.event.OWLModelManagerListener;
25 | import org.semanticweb.owlapi.model.OWLClass;
26 | import org.semanticweb.owlapi.model.OWLClassExpression;
27 | import org.semanticweb.owlapi.model.OWLIndividual;
28 |
29 | public class Metrics1 extends JPanel implements ItemListener {
30 |
31 |
32 | private JButton refreshButton = new JButton("Naming");
33 | private JButton refreshButton1 = new JButton("ODP");
34 | private JButton refreshButton2 = new JButton("VocabSuggestion");
35 | private JButton refreshButton3 = new JButton("Axiom Recommendation");
36 | private JButton refreshButton4 = new JButton("Naming Convention");
37 |
38 | private JLabel textComponent = new JLabel();
39 | private JLabel textComponent1 = new JLabel();
40 | private JLabel textComponent2 = new JLabel();
41 |
42 | public JTextPane textPane = new JTextPane();
43 | public JTextArea textArea = new JTextArea(20,20);
44 | public JTextArea textArea1 = new JTextArea(50,50);
45 | public JTextArea textArea2 = new JTextArea(20,20);
46 | JScrollPane scrollPane = new JScrollPane();
47 |
48 | static JFrame f;
49 |
50 | // label
51 | static JLabel l, l2,l1, l3, l4,l5,l6,l7,l8,l9,l10,l11,l12,l13,l14,l15,l16,l17,l18,l19,l20;
52 |
53 | // combobox
54 | static JComboBox c1, c2;
55 | private OWLModelManager modelManager;
56 |
57 |
58 | // private ActionListener refreshAction = e -> recalculate();
59 |
60 |
61 |
62 | private OWLModelManagerListener modelListener = event -> {
63 | if (event.getType() == EventType.ACTIVE_ONTOLOGY_CHANGED) {
64 | Metrics m=new Metrics(modelManager);
65 | }
66 | };
67 |
68 | public Metrics1(OWLModelManager modelManager) {
69 |
70 | this.modelManager = modelManager;
71 | // recalculate();
72 |
73 | modelManager.addListener(modelListener);
74 |
75 | // refreshButton.addActionListener(refreshAction);
76 | // refreshButton1.addActionListener(refreshAction);
77 | //refreshButton2.addActionListener(refreshAction);
78 |
79 | // refreshButton3.addActionListener(refreshAction4);
80 |
81 |
82 |
83 | add(refreshButton1);
84 | add(refreshButton1);
85 | add(refreshButton2);
86 | add(refreshButton3);
87 | // add(textArea1);
88 | //textArea1.setEditable(true);
89 | // add(refreshButton1);
90 | // add(refreshButton2);
91 | // add(refreshButton3);
92 |
93 |
94 |
95 | Font font = new Font("Serif",Font.PLAIN, 14);
96 |
97 |
98 | Font font1 = new Font("Serif",Font.PLAIN, 14);
99 |
100 |
101 | }
102 |
103 | public void dispose() {
104 | modelManager.removeListener(modelListener);
105 |
106 |
107 | //refreshButton2.removeActionListener(refreshAction);
108 | /*
109 | refreshButton2.removeActionListener(refreshAction2);
110 | refreshButton3.removeActionListener(refreshAction3);
111 | refreshButton4.removeActionListener(refreshAction4);
112 | */
113 | }
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 | public void main(String args[]) {
125 | Metrics1 m=new Metrics1(modelManager);
126 | }
127 | public void detect(Lists_run) {
128 | try {
129 | f = new JFrame("Class Naming Recommendation");
130 |
131 | // create a object
132 | Metrics1 s = new Metrics1(modelManager);
133 |
134 | // array of string contating cities
135 | String s1[] = new String[s_run.size()];
136 | s_run.toArray(s1);
137 |
138 |
139 | // create checkbox
140 | c1 = new JComboBox(s1);
141 | // c2 = new JComboBox(s2);
142 |
143 | // set Kolakata and male as selected items
144 | // using setSelectedIndex
145 | c1.setSelectedIndex(0);
146 | // c2.setSelectedIndex(0);
147 |
148 | // add ItemListener
149 | c1.addItemListener(s);
150 | // c2.addItemListener(s);
151 |
152 | // set the checkbox as editable
153 | c1.setEditable(true);
154 | // c2.setEditable(true);
155 |
156 | // create labels
157 | l = new JLabel("Select Class ");
158 | l1 = new JLabel(c1.getSelectedItem().toString()+" class selected");
159 |
160 | l2=new JLabel(" Please select or make a class ");
161 | l3=new JLabel(" ");
162 | l4=new JLabel(" ");
163 | l5=new JLabel(" ");
164 | l6=new JLabel(" ");
165 | l7=new JLabel(" ");
166 | l8=new JLabel(" ");
167 | l9=new JLabel(" ");
168 | l10=new JLabel(" ");
169 | l11=new JLabel(" ");
170 | l12=new JLabel(" ");
171 | l13=new JLabel(" ");
172 | l14=new JLabel(" ");
173 | l15=new JLabel(" ");
174 | l16=new JLabel(" ");
175 | l17=new JLabel(" ");
176 | l18=new JLabel(" ");
177 | l19=new JLabel(" ");
178 | l20=new JLabel(" ");
179 |
180 |
181 |
182 | JScrollPane scroll = new JScrollPane(
183 |
184 | ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
185 | ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS
186 | );
187 |
188 | // set color of text
189 | l.setForeground(Color.BLACK);
190 | l1.setForeground(Color.BLACK);
191 | l2.setForeground(Color.BLACK);
192 |
193 |
194 |
195 | // create a new panel
196 | JPanel p = new JPanel();
197 |
198 |
199 |
200 |
201 |
202 | p.add(l7);
203 |
204 |
205 |
206 | p.add(l);
207 |
208 |
209 |
210 | p.add(c1);
211 |
212 |
213 |
214 |
215 |
216 | p.add(l11);
217 |
218 |
219 | p.add(l2);
220 | l2.setFont(new Font("Serif", Font.PLAIN, 16));
221 | l.setFont(new Font("Serif", Font.PLAIN, 16));
222 | // p.add(textArea);
223 |
224 | // p.add(l1);
225 | //p.add(scroll);
226 |
227 |
228 | // set a layout for panel
229 | p.setLayout(new FlowLayout());
230 |
231 | // add panel to frame
232 | f.add(p);
233 |
234 | // set the size of frame
235 | f.setSize(500, 500);
236 |
237 | f.show();
238 | }
239 | catch(Exception e) {
240 | e.printStackTrace();
241 | }
242 | }
243 | public void itemStateChanged(ItemEvent e)
244 | {
245 | try {
246 |
247 | // if the state combobox 1is changed
248 | if (e.getSource() == c1) {
249 |
250 | l1.setText(c1.getSelectedItem().toString() + " selected");
251 | String value= c1.getSelectedItem().toString();
252 | if(value.equalsIgnoreCase("--select--")) {
253 | l2.setText("Please select or make a class");
254 | }
255 | else {
256 | Listls=new ArrayList();
257 |
258 | naming_conventions s=new naming_conventions();
259 | ls.addAll(s.recom(c1.getSelectedItem().toString()));
260 | String labelText ="1. "+ls.get(0);
261 | l2.setText(labelText);
262 | }
263 | }
264 |
265 |
266 | // if state of combobox 2 is changed
267 |
268 | //l4.setText(c2.getSelectedItem() + " selected");
269 | }
270 | catch(Exception E) {
271 | E.printStackTrace();
272 | }
273 | }
274 | }
275 |
--------------------------------------------------------------------------------
/OntoSeer/src/main/java/edu/stanford/bmir/protege/examples/view/Metrics2.java:
--------------------------------------------------------------------------------
1 | package edu.stanford.bmir.protege.examples.view;
2 |
3 | import javax.swing.*;
4 | import javax.net.ssl.HttpsURLConnection;
5 | import javax.net.ssl.SSLContext;
6 | import javax.net.ssl.TrustManager;
7 | import javax.net.ssl.X509TrustManager;
8 | import java.io.OutputStream;
9 |
10 | import javax.swing.text.*;
11 |
12 | import java.awt.Color;
13 | import java.awt.FlowLayout;
14 | import java.awt.Font;
15 |
16 |
17 | import java.awt.event.*;
18 |
19 | import java.util.*;
20 |
21 |
22 | import org.protege.editor.owl.model.OWLModelManager;
23 | import org.protege.editor.owl.model.event.EventType;
24 | import org.protege.editor.owl.model.event.OWLModelManagerListener;
25 | import org.semanticweb.owlapi.model.OWLClass;
26 | import org.semanticweb.owlapi.model.OWLClassExpression;
27 | import org.semanticweb.owlapi.model.OWLIndividual;
28 |
29 | public class Metrics2 extends JPanel implements ItemListener {
30 |
31 |
32 | private JButton refreshButton = new JButton("Naming");
33 | private JButton refreshButton1 = new JButton("ODP");
34 | private JButton refreshButton2 = new JButton("VocabSuggestion");
35 | private JButton refreshButton3 = new JButton("Axiom Recommendation");
36 | private JButton refreshButton4 = new JButton("Naming Convention");
37 |
38 | private JLabel textComponent = new JLabel();
39 | private JLabel textComponent1 = new JLabel();
40 | private JLabel textComponent2 = new JLabel();
41 |
42 | public JTextPane textPane = new JTextPane();
43 | public JTextArea textArea = new JTextArea(20,20);
44 | public JTextArea textArea1 = new JTextArea(50,50);
45 | public JTextArea textArea2 = new JTextArea(20,20);
46 | JScrollPane scrollPane = new JScrollPane();
47 |
48 | static JFrame f;
49 |
50 | // label
51 | static JLabel l, l2,l1, l3, l4,l5,l6,l7,l8,l9,l10,l11,l12,l13,l14,l15,l16,l17,l18,l19,l20;
52 |
53 | // combobox
54 | static JComboBox c1, c2;
55 | private OWLModelManager modelManager;
56 |
57 |
58 | // private ActionListener refreshAction = e -> recalculate();
59 |
60 |
61 |
62 | private OWLModelManagerListener modelListener = event -> {
63 | if (event.getType() == EventType.ACTIVE_ONTOLOGY_CHANGED) {
64 | Metrics m=new Metrics(modelManager);
65 | }
66 | };
67 |
68 | public Metrics2(OWLModelManager modelManager) {
69 |
70 | this.modelManager = modelManager;
71 | // recalculate();
72 |
73 | modelManager.addListener(modelListener);
74 |
75 | // refreshButton.addActionListener(refreshAction);
76 | // refreshButton1.addActionListener(refreshAction);
77 | //refreshButton2.addActionListener(refreshAction);
78 |
79 | // refreshButton3.addActionListener(refreshAction4);
80 |
81 |
82 |
83 | add(refreshButton1);
84 | add(refreshButton1);
85 | add(refreshButton2);
86 | add(refreshButton3);
87 | // add(textArea1);
88 | //textArea1.setEditable(true);
89 | // add(refreshButton1);
90 | // add(refreshButton2);
91 | // add(refreshButton3);
92 |
93 |
94 |
95 | Font font = new Font("Serif",Font.PLAIN, 14);
96 |
97 |
98 | Font font1 = new Font("Serif",Font.PLAIN, 14);
99 |
100 |
101 | }
102 |
103 | public void dispose() {
104 | modelManager.removeListener(modelListener);
105 |
106 |
107 | //refreshButton2.removeActionListener(refreshAction);
108 | /*
109 | refreshButton2.removeActionListener(refreshAction2);
110 | refreshButton3.removeActionListener(refreshAction3);
111 | refreshButton4.removeActionListener(refreshAction4);
112 | */
113 | }
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 | public void main(String args[]) {
125 | Metrics1 m=new Metrics1(modelManager);
126 | }
127 | public void detect(Lists_run) {
128 | try {
129 | f = new JFrame("Axiom Recommendation");
130 |
131 | // create a object
132 | Metrics2 s = new Metrics2(modelManager);
133 |
134 | // array of string contating cities
135 | String s1[] = new String[s_run.size()];
136 | s_run.toArray(s1);
137 | // String s2[] = { "male", "female", "others" };
138 |
139 | // create checkbox
140 | c1 = new JComboBox(s1);
141 | // c2 = new JComboBox(s2);
142 |
143 | // set Kolakata and male as selected items
144 | // using setSelectedIndex
145 | c1.setSelectedIndex(0);
146 | // c2.setSelectedIndex(0);
147 |
148 | // add ItemListener
149 | c1.addItemListener(s);
150 | // c2.addItemListener(s);
151 |
152 | // set the checkbox as editable
153 | c1.setEditable(true);
154 |
155 | // create labels
156 | l = new JLabel("Select Class or property ");
157 | l1 = new JLabel(c1.getSelectedItem().toString()+" class selected");
158 |
159 | l5=new JLabel(" ");
160 | l3=new JLabel(" Please select or make a class or a property ");
161 | l4=new JLabel(" ");
162 | l6=new JLabel(" ");
163 | l7=new JLabel(" ");
164 | l8=new JLabel(" ");
165 | l9=new JLabel(" ");
166 | l10=new JLabel(" ");
167 | l11=new JLabel(" ");
168 | l12=new JLabel(" ");
169 | l13=new JLabel(" ");
170 | l14=new JLabel(" ");
171 | l15=new JLabel(" ");
172 | l16=new JLabel(" ");
173 | l17=new JLabel(" ");
174 | l18=new JLabel(" ");
175 | l19=new JLabel(" ");
176 | l20=new JLabel(" ");
177 | //textArea.setText(ls.toString());
178 |
179 | JScrollPane scroll = new JScrollPane(
180 |
181 | ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
182 | ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS
183 | );
184 |
185 | // set color of text
186 | l.setForeground(Color.BLACK);
187 | l1.setForeground(Color.BLACK);
188 | //l2.setForeground(Color.BLACK);
189 |
190 | l3.setForeground(Color.BLACK);
191 | l4.setForeground(Color.BLACK);
192 | l5.setForeground(Color.BLACK);
193 | // create a new panel
194 | JPanel p = new JPanel();
195 |
196 | p.add(l);
197 |
198 | // p.add(l2);
199 |
200 | //p.add(l);
201 | p.add(c1);
202 | //p.add(l5);
203 | p.add(l6);
204 | p.add(l7);
205 | p.add(l8);
206 | p.add(l9);
207 | p.add(l10);
208 | p.add(l11);
209 | p.add(l12);
210 | p.add(l13);
211 | p.add(l14);
212 | p.add(l15);
213 | p.add(l16);
214 | p.add(l17);
215 | p.add(l18);
216 | p.add(l19);
217 | p.add(l20);
218 |
219 | p.add(l3);
220 | p.add(l4);
221 |
222 | // p.add(l1);
223 | //p.add(scroll);
224 |
225 | l3.setFont(new Font("Serif", Font.PLAIN, 16));
226 | l.setFont(new Font("Serif", Font.PLAIN, 16));
227 | // set a layout for panel
228 | p.setLayout(new FlowLayout());
229 |
230 | // add panel to frame
231 | f.add(p);
232 |
233 | // set the size of frame
234 | f.setSize(500, 500);
235 |
236 | f.show();
237 | }
238 | catch(Exception e) {
239 | e.printStackTrace();
240 | }
241 | }
242 | public void itemStateChanged(ItemEvent e)
243 | {
244 | List hash_Set = new ArrayList();
245 | try {
246 |
247 | // if the state combobox 1is changed
248 | if (e.getSource() == c1) {
249 |
250 | l1.setText(c1.getSelectedItem().toString() + " selected");
251 | String value= c1.getSelectedItem().toString();
252 | Listls=new ArrayList();
253 | String x="/home/pramit67/Downloads/owl2_rl_benchmark_corpus/";
254 |
255 | System.out.println(value);
256 | retrieval r= new retrieval();
257 | //value=value.substring(0,value.length()-);
258 | // String value= c1.getSelectedItem().toString();
259 | if(value.equalsIgnoreCase("--select--")) {
260 | l3.setText("Please select a class or property");
261 | }
262 | else {
263 |
264 | hash_Set=r.filtering(value);
265 | if(hash_Set.size()==0) {
266 | l3.setText("No Recommendations Found");
267 | l4.setText("");
268 | }
269 | else if(hash_Set.size()==1) {
270 | l3.setText("1. "+hash_Set.get(0));
271 | l4.setText("");
272 | }
273 | else {
274 | String labelText ="1. "+hash_Set.get(0)+"
"+"
2. "+hash_Set.get(1)+"";
275 | l3.setText(labelText);
276 | l4.setText("");
277 |
278 |
279 |
280 | }
281 | }
282 | }
283 | // if state of combobox 2 is changed
284 |
285 | //l4.setText(c2.getSelectedItem() + " selected");
286 | }
287 | catch(Exception E) {
288 | E.printStackTrace();
289 | }
290 | }
291 | }
292 |
--------------------------------------------------------------------------------
/OntoSeer/src/main/java/edu/stanford/bmir/protege/examples/view/Metrics3.java:
--------------------------------------------------------------------------------
1 | package edu.stanford.bmir.protege.examples.view;
2 |
3 | import javax.swing.*;
4 | import javax.net.ssl.HttpsURLConnection;
5 | import javax.net.ssl.SSLContext;
6 | import javax.net.ssl.TrustManager;
7 | import javax.net.ssl.X509TrustManager;
8 | import java.io.OutputStream;
9 |
10 | import javax.swing.text.*;
11 |
12 | import java.awt.Color;
13 | import java.awt.FlowLayout;
14 | import java.awt.Font;
15 |
16 |
17 | import java.awt.event.*;
18 |
19 | import java.util.*;
20 |
21 |
22 | import org.protege.editor.owl.model.OWLModelManager;
23 | import org.protege.editor.owl.model.event.EventType;
24 | import org.protege.editor.owl.model.event.OWLModelManagerListener;
25 | import org.semanticweb.owlapi.model.OWLClass;
26 | import org.semanticweb.owlapi.model.OWLClassExpression;
27 | import org.semanticweb.owlapi.model.OWLIndividual;
28 |
29 | public class Metrics3 extends JPanel implements ItemListener {
30 |
31 |
32 | private JButton refreshButton = new JButton("Naming");
33 | private JButton refreshButton1 = new JButton("ODP");
34 | private JButton refreshButton2 = new JButton("VocabSuggestion");
35 | private JButton refreshButton3 = new JButton("Axiom Recommendation");
36 | private JButton refreshButton4 = new JButton("Naming Convention");
37 |
38 | private JLabel textComponent = new JLabel();
39 | private JLabel textComponent1 = new JLabel();
40 | private JLabel textComponent2 = new JLabel();
41 |
42 | public JTextPane textPane = new JTextPane();
43 | public JTextArea textArea = new JTextArea(20,20);
44 | public JTextArea textArea1 = new JTextArea(50,50);
45 | public JTextArea textArea2 = new JTextArea(20,20);
46 | JScrollPane scrollPane = new JScrollPane();
47 |
48 | static JFrame f;
49 |
50 | // label
51 | static JLabel l, l2,l1, l3, l4,l5,l6,l7,l8,l9,l10,l11,l12,l13,l14,l15,l16,l17,l18,l19,l20;
52 |
53 | // combobox
54 | static JComboBox c1, c2;
55 | private OWLModelManager modelManager;
56 |
57 |
58 | // private ActionListener refreshAction = e -> recalculate();
59 |
60 |
61 |
62 | private OWLModelManagerListener modelListener = event -> {
63 | if (event.getType() == EventType.ACTIVE_ONTOLOGY_CHANGED) {
64 | Metrics m=new Metrics(modelManager);
65 | }
66 | };
67 |
68 | public Metrics3(OWLModelManager modelManager) {
69 |
70 | this.modelManager = modelManager;
71 | // recalculate();
72 |
73 | modelManager.addListener(modelListener);
74 |
75 | // refreshButton.addActionListener(refreshAction);
76 | // refreshButton1.addActionListener(refreshAction);
77 | //refreshButton2.addActionListener(refreshAction);
78 |
79 | // refreshButton3.addActionListener(refreshAction4);
80 |
81 |
82 |
83 | add(refreshButton1);
84 | add(refreshButton1);
85 | add(refreshButton2);
86 | add(refreshButton3);
87 | // add(textArea1);
88 | //textArea1.setEditable(true);
89 | // add(refreshButton1);
90 | // add(refreshButton2);
91 | // add(refreshButton3);
92 |
93 |
94 |
95 | Font font = new Font("Serif",Font.PLAIN, 14);
96 |
97 |
98 | Font font1 = new Font("Serif",Font.PLAIN, 14);
99 |
100 |
101 | }
102 |
103 | public void dispose() {
104 | modelManager.removeListener(modelListener);
105 |
106 |
107 | //refreshButton2.removeActionListener(refreshAction);
108 | /*
109 | refreshButton2.removeActionListener(refreshAction2);
110 | refreshButton3.removeActionListener(refreshAction3);
111 | refreshButton4.removeActionListener(refreshAction4);
112 | */
113 | }
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 | public void main(String args[]) {
125 | Metrics1 m=new Metrics1(modelManager);
126 | }
127 | public void detect(Lists_run) {
128 | try {
129 | f = new JFrame("Property Naming Recommendation");
130 |
131 | // create a object
132 | Metrics3 s = new Metrics3(modelManager);
133 |
134 | // array of string contating cities
135 | String s1[] = new String[s_run.size()];
136 | s_run.toArray(s1);
137 |
138 | // String s2[] = { "male", "female", "others" };
139 |
140 | // create checkbox
141 | c1 = new JComboBox(s1);
142 |
143 |
144 | // set Kolakata and male as selected items
145 | // using setSelectedIndex
146 | c1.setSelectedIndex(0);
147 |
148 |
149 | // add ItemListener
150 | c1.addItemListener(s);
151 |
152 | // set the checkbox as editable
153 | c1.setEditable(true);
154 |
155 | // create labels
156 | l = new JLabel("Select Property ");
157 | l1 = new JLabel(c1.getSelectedItem().toString()+" Property selected");
158 |
159 | l2=new JLabel(" Please select or make a property ");
160 | l3=new JLabel(" ");
161 | l4=new JLabel(" ");
162 | l5=new JLabel(" ");
163 | l6=new JLabel(" ");
164 | l7=new JLabel(" ");
165 | l8=new JLabel(" ");
166 | l9=new JLabel(" ");
167 | l10=new JLabel(" ");
168 | l11=new JLabel(" ");
169 | l12=new JLabel(" ");
170 | l13=new JLabel(" ");
171 | l14=new JLabel(" ");
172 | l15=new JLabel(" ");
173 | l16=new JLabel(" ");
174 | l17=new JLabel(" ");
175 | l18=new JLabel(" ");
176 | l19=new JLabel(" ");
177 | l20=new JLabel(" ");
178 |
179 |
180 |
181 |
182 | JScrollPane scroll = new JScrollPane(
183 |
184 | ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
185 | ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS
186 | );
187 |
188 | // set color of text
189 | l.setForeground(Color.BLACK);
190 | l1.setForeground(Color.BLACK);
191 | l2.setForeground(Color.BLACK);
192 |
193 |
194 |
195 | // create a new panel
196 | JPanel p = new JPanel();
197 |
198 | p.add(l7);
199 |
200 |
201 |
202 | p.add(l);
203 |
204 |
205 |
206 | p.add(c1);
207 |
208 |
209 |
210 |
211 |
212 | p.add(l11);
213 |
214 |
215 | p.add(l2);
216 | //p.add(scroll);
217 |
218 | l2.setFont(new Font("Serif", Font.PLAIN, 16));
219 | l.setFont(new Font("Serif", Font.PLAIN, 16));
220 | // set a layout for panel
221 | p.setLayout(new FlowLayout());
222 |
223 | // add panel to frame
224 | f.add(p);
225 |
226 | // set the size of frame
227 | f.setSize(500, 500);
228 |
229 | f.show();
230 | }
231 | catch(Exception e) {
232 | e.printStackTrace();
233 | }
234 | }
235 | public void itemStateChanged(ItemEvent e)
236 | {
237 | try {
238 |
239 |
240 |
241 | if (e.getSource() == c1) {
242 | Listls1=new ArrayList();
243 | l3.setText(c1.getSelectedItem().toString() + " selected");
244 | namingconventionprop s=new namingconventionprop();
245 | String value= c1.getSelectedItem().toString();
246 | if(value.equalsIgnoreCase("--select--")) {
247 | l2.setText("Please select or make a property");
248 | }
249 | else {
250 | ls1.addAll(s.recomproperties(c1.getSelectedItem().toString()));
251 | System.out.print(ls1.toString());
252 | System.out.print(c1.getSelectedItem().toString());
253 |
254 | //textArea = new JTextArea(20,20);
255 |
256 | String labelText ="1. "+ls1.get(0);
257 | l2.setText(labelText);
258 | //l7.setText(ls.get(1));
259 | }
260 |
261 |
262 | }
263 |
264 | // if state of combobox 2 is changed
265 |
266 | //l4.setText(c2.getSelectedItem() + " selected");
267 | }
268 | catch(Exception E) {
269 | E.printStackTrace();
270 | }
271 | }
272 | }
273 |
--------------------------------------------------------------------------------
/OntoSeer/src/main/java/edu/stanford/bmir/protege/examples/view/ReadResourceFile.java:
--------------------------------------------------------------------------------
1 | package edu.stanford.bmir.protege.examples.view;
2 |
3 | import java.io.BufferedReader;
4 | import java.io.IOException;
5 | import java.io.InputStreamReader;
6 | import java.io.UnsupportedEncodingException;
7 |
8 | public class ReadResourceFile {
9 |
10 | public void readFile(String fileName) {
11 | try {
12 | System.out.println("Enter try"+fileName);
13 | // the slash '/' is required
14 | BufferedReader br = new BufferedReader(new InputStreamReader(
15 | this.getClass().getResourceAsStream( fileName), "UTF-8"));
16 | System.out.println(fileName);
17 | String line = null;
18 |
19 | while ((line = br.readLine()) != null) {
20 | System.out.println(line);
21 | }
22 | } catch (UnsupportedEncodingException e) {
23 | e.printStackTrace();
24 | } catch (IOException e) {
25 | e.printStackTrace();
26 | }
27 | }
28 |
29 | public static void main(String[] args) {
30 | ReadResourceFile readResouceFile = new ReadResourceFile();
31 | readResouceFile.readFile("/axiom.txt");
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/OntoSeer/src/main/java/edu/stanford/bmir/protege/examples/view/StringEqualityPercentCheckUsingJaroWinklerDistance.java:
--------------------------------------------------------------------------------
1 | package edu.stanford.bmir.protege.examples.view;
2 | import java.util.*;
3 | public class StringEqualityPercentCheckUsingJaroWinklerDistance {
4 | public static void main(String args[]) {
5 | printSimilarity("", "");
6 | printSimilarity("", "a");
7 | printSimilarity("aaapppp", "");
8 | printSimilarity("frog", "fog");
9 | printSimilarity("fly", "ant");
10 | printSimilarity("elephant", "hippo");
11 | printSimilarity("hippo", "elephant");
12 | printSimilarity("hippo", "zzzzzzzz");
13 | printSimilarity("hello", "hallo");
14 | printSimilarity("ABC Corporation", "ABC Corp");
15 | printSimilarity("D N H Enterprises Inc", "D & H Enterprises, Inc.");
16 | printSimilarity("My Gym Children's Fitness Center", "My Gym. Childrens Fitness");
17 | printSimilarity("PENNSYLVANIA", "PENNCISYLVNIA");
18 | printSimilarity("The quick fox brown jumped", "The quick brown fox");
19 | }
20 | public static void printSimilarity(String s, String t) {
21 | System.out.println(String.format("%.3f is the similarity between \"%s\" and \"%s\"", similarity(s, t), s, t));
22 | }
23 |
24 | /**
25 | * JaroWinklerDistance
26 | * Copied from https://commons.apache.org/sandbox/commons-text/jacoco/org.apache.commons.text.similarity/JaroWinklerDistance.java.html
27 | * apply method changed to similarity
28 | */
29 | public static Double similarity(final CharSequence left, final CharSequence right) {
30 | final double defaultScalingFactor = 0.1;
31 | final double percentageRoundValue = 100.0;
32 |
33 | if (left == null || right == null) {
34 | throw new IllegalArgumentException("Strings must not be null");
35 | }
36 |
37 | int[] mtp = matches(left, right);
38 | double m = mtp[0];
39 | if (m == 0) {
40 | return 0D;
41 | }
42 | double j = ((m / left.length() + m / right.length() + (m - mtp[1]) / m)) / 3;
43 | double jw = j < 0.7D ? j : j + Math.min(defaultScalingFactor, 1D / mtp[3]) * mtp[2] * (1D - j);
44 | return Math.round(jw * percentageRoundValue) / percentageRoundValue;
45 | }
46 | protected static int[] matches(final CharSequence first, final CharSequence second) {
47 | CharSequence max, min;
48 | if (first.length() > second.length()) {
49 | max = first;
50 | min = second;
51 | } else {
52 | max = second;
53 | min = first;
54 | }
55 | int range = Math.max(max.length() / 2 - 1, 0);
56 | int[] matchIndexes = new int[min.length()];
57 | Arrays.fill(matchIndexes, -1);
58 | boolean[] matchFlags = new boolean[max.length()];
59 | int matches = 0;
60 | for (int mi = 0; mi < min.length(); mi++) {
61 | char c1 = min.charAt(mi);
62 | for (int xi = Math.max(mi - range, 0), xn = Math.min(mi + range + 1, max.length()); xi < xn; xi++) {
63 | if (!matchFlags[xi] && c1 == max.charAt(xi)) {
64 | matchIndexes[mi] = xi;
65 | matchFlags[xi] = true;
66 | matches++;
67 | break;
68 | }
69 | }
70 | }
71 | char[] ms1 = new char[matches];
72 | char[] ms2 = new char[matches];
73 | for (int i = 0, si = 0; i < min.length(); i++) {
74 | if (matchIndexes[i] != -1) {
75 | ms1[si] = min.charAt(i);
76 | si++;
77 | }
78 | }
79 | for (int i = 0, si = 0; i < max.length(); i++) {
80 | if (matchFlags[i]) {
81 | ms2[si] = max.charAt(i);
82 | si++;
83 | }
84 | }
85 | int transpositions = 0;
86 | for (int mi = 0; mi < ms1.length; mi++) {
87 | if (ms1[mi] != ms2[mi]) {
88 | transpositions++;
89 | }
90 | }
91 | int prefix = 0;
92 | for (int mi = 0; mi < min.length(); mi++) {
93 | if (first.charAt(mi) == second.charAt(mi)) {
94 | prefix++;
95 | } else {
96 | break;
97 | }
98 | }
99 | return new int[] { matches, transpositions / 2, prefix, max.length() };
100 | }
101 | }
102 |
--------------------------------------------------------------------------------
/OntoSeer/src/main/java/edu/stanford/bmir/protege/examples/view/chatbotpanel.java:
--------------------------------------------------------------------------------
1 | package edu.stanford.bmir.protege.examples.view;
2 |
3 | import java.awt.Font;
4 | import java.awt.GridBagConstraints;
5 | import java.awt.GridBagLayout;
6 | import java.awt.Insets;
7 | import java.awt.event.ActionListener;
8 | import java.util.ArrayList;
9 | import java.util.List;
10 |
11 | import javax.swing.BorderFactory;
12 | import javax.swing.JButton;
13 | import javax.swing.JFileChooser;
14 | import javax.swing.JFrame;
15 | import javax.swing.JLabel;
16 | import javax.swing.JPanel;
17 | import javax.swing.JScrollPane;
18 | import javax.swing.JTable;
19 | import javax.swing.JTextArea;
20 | import javax.swing.JTextField;
21 | import javax.swing.ScrollPaneConstants;
22 | import javax.swing.SwingUtilities;
23 | import javax.swing.UIManager;
24 |
25 |
26 | public class chatbotpanel extends JFrame {
27 | JFileChooser fileChooser = new JFileChooser();
28 | private JLabel labelEnterdescription = new JLabel("Do the properties of superclass cease to exist in the future (temporal dependency)? (Y/N)");
29 | private JLabel labelEnterdescription1 = new JLabel("Do the properties of the sub class cease to exist in the future? (temporal dependency)? (Y/N)");
30 | private JLabel labelEnterDomain1 = new JLabel("Are the properties of super-class and subclass identical? (Y/N)");
31 | private JLabel labelelements1 = new JLabel("Are the properties of subclass part of the properties whole class? (Y/N)");
32 |
33 |
34 | // private JLabel labelPassword = new JLabel("Enter password: ");
35 | private JTextField textDescription = new JTextField(20);
36 | private JTextField textdomain = new JTextField(20);
37 | private JTextField textclass = new JTextField(20);
38 | private JTextField textDescription1 = new JTextField(20);
39 | private JTextField textdomain1 = new JTextField(20);
40 | private JTextField textclass1 = new JTextField(20);
41 |
42 | private JLabel textarea= new JLabel("Hierarchy Validation\n");
43 | private JLabel text123=new JLabel("\n");
44 | private JTextArea textarea1= new JTextArea("");
45 | private JLabel comment=new JLabel("Please answer the following questions for each subclass and superclass in the ontology");
46 | private JLabel comment1=new JLabel("All the below inputs are mandatory");
47 | private JLabel comment2=new JLabel("Hover over label to get more information");
48 |
49 | //private JPasswordField fieldPassword = new JPasswordField(20);
50 | private JButton buttonLogin = new JButton("Class Hierarchy Validation");
51 | private JButton close = new JButton("Close the panel");
52 | private ActionListener refreshAction = e ->ODP();
53 | private String data[][]={ {"Rule","SuperPositive","SuperNegative"},{"Identity","Positive","Negative"},
54 | {"Rigidity","Positive","Negative"},
55 | {"Unity","Positive","Negative"}};
56 | private String column[]={"Rule","Superclass-Positive","SuperClass-Negative"};
57 | JTable jt=new JTable(data,column);
58 |
59 | public chatbotpanel() {
60 | super("Class Hierarchy Validation");
61 |
62 | labelEnterdescription.setToolTipText("For example,
Person will always be a person, but Student can cease to exist to be a Student after a time lapse.
Person is a superclass of student so Person class property will cease to exist in future
If the property of superclass cease to exist in future then type Y otherwise N
");
63 | labelEnterdescription1.setToolTipText("For example,
Person will always be a person, but Student can cease to exist to be a Student after a time lapse, as Student will have its class, subject, grades etc.
Subject is a subclass of student so Subject class property will not cease to exist in future
If the property of subclass cease to exist in future then type Y otherwise N
");
64 | labelEnterDomain1.setToolTipText("For example:
two one-hour duration time intervals are identical, but an hour interval on Wednesday is not identical to an hour interval on Friday.
If the properties is similar then type Y otherwise N");
65 | labelelements1.setToolTipText("For example:
A lump of clay is part of \"amount of matter\", but \"amount of matter\" is not part of a lump of clay.
If the property of subclass is related or part of superclass then type Y otherwise N");
66 |
67 | // create a new panel with GridBagLayout manager
68 | JPanel newPanel = new JPanel(new GridBagLayout());
69 |
70 | GridBagConstraints constraints = new GridBagConstraints();
71 |
72 | constraints.insets = new Insets(15, 15, 15, 15);
73 |
74 | constraints.anchor = GridBagConstraints.WEST;
75 | constraints.gridx = 0;
76 | constraints.gridy = 0;
77 | newPanel.add(comment, constraints);
78 | comment.setFont(comment.getFont().deriveFont(Font.BOLD, comment.getFont().getSize()));
79 |
80 | constraints.gridx = 0;
81 | constraints.gridy = 1;
82 | newPanel.add(comment1, constraints);
83 | comment1.setFont(comment1.getFont().deriveFont(comment.getFont().getSize()-1));
84 |
85 | constraints.gridx = 0;
86 | constraints.gridy = 2;
87 | newPanel.add(comment2, constraints);
88 | comment2.setFont(comment2.getFont().deriveFont(comment.getFont().getSize()-1));
89 |
90 | constraints.gridx = 0;
91 | constraints.gridy = 3;
92 | newPanel.add(labelEnterdescription, constraints);
93 | constraints.gridx = 1;
94 | newPanel.add(textDescription, constraints);
95 |
96 | constraints.gridx = 0;
97 | constraints.gridy = 4;
98 | newPanel.add(labelEnterdescription1, constraints);
99 | constraints.gridx = 1;
100 | newPanel.add(textDescription1, constraints);
101 |
102 | constraints.gridx = 0;
103 | constraints.gridy = 5;
104 | newPanel.add( labelEnterDomain1, constraints);
105 | constraints.gridx = 1;
106 | newPanel.add(textdomain1, constraints);
107 |
108 | constraints.gridx = 0;
109 | constraints.gridy = 6;
110 | newPanel.add(labelelements1, constraints);
111 | constraints.gridx = 1;
112 | newPanel.add(textclass1, constraints);
113 |
114 |
115 | constraints.gridx = 0;
116 | constraints.gridy = 9;
117 | newPanel.add(textarea, constraints);
118 | textarea.setFont(textarea.getFont().deriveFont(Font.BOLD, textarea.getFont().getSize()));
119 |
120 | JScrollPane scroll = new JScrollPane(textarea);
121 | scroll.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
122 |
123 | constraints.gridx = 0;
124 | constraints.gridy = 11;
125 | newPanel.add(text123, constraints);
126 |
127 | constraints.gridx = 0;
128 | constraints.gridy = 12;
129 | newPanel.add(textarea1, constraints);
130 | textarea1.setEditable(false);
131 | textarea1.setFont(textarea1.getFont().deriveFont(textarea.getFont().getSize()));
132 |
133 | constraints.gridx = 0;
134 | constraints.gridy = 13;
135 | constraints.gridwidth = 2;
136 | constraints.anchor = GridBagConstraints.CENTER;
137 | newPanel.add(buttonLogin, constraints);
138 | buttonLogin.addActionListener(refreshAction);
139 |
140 | // set border for the panel
141 | newPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Class Hierarchy Validation"));
142 |
143 | // add the panel to this frame
144 | add(newPanel);
145 | pack();
146 |
147 | setLocationRelativeTo(null);
148 | }
149 |
150 | public List ODP() {
151 | odpdescription o=new odpdescription();
152 | Listls=new ArrayList();
153 | String s;
154 | String S1=textDescription.getText();
155 | String S2=textdomain.getText();
156 | String S3=textclass.getText();
157 | String S4=textDescription1.getText();
158 | String S5=textdomain1.getText();
159 | String S6=textclass1.getText();
160 | if(S1.equalsIgnoreCase("")||S4.equalsIgnoreCase("")||S5.equalsIgnoreCase("")||S6.equalsIgnoreCase("")) {
161 | textarea1.append("All mandatory fields are not filled");
162 | }
163 | else {
164 | s=S1+S2+S3;
165 | //System.out.println(s);
166 | if(S1.equalsIgnoreCase("y")) {
167 | if(S4.equalsIgnoreCase("y")||S4.equalsIgnoreCase("N")) {
168 | textarea1.append("Rigidity is correctly maintained.\n");
169 | }
170 |
171 | }
172 | else if(S1.equalsIgnoreCase("N")) {
173 | if(S4.equalsIgnoreCase("N")) {
174 | textarea1.append("Rigidity is correctly maintained.\n");
175 | }
176 | else if(S4.equalsIgnoreCase("Y")) {
177 | textarea1.append("Rigidity is not correctly maintained. Subclass hierarchy is not correct.\n");
178 | }
179 | }
180 |
181 | if(S5.equalsIgnoreCase("y")) {
182 |
183 | textarea1.append("Identity is correctly maintained.\n");
184 |
185 |
186 | }
187 | else if(S5.equalsIgnoreCase("N")) {
188 | textarea1.append("Identity is not correctly maintained. Subclass hierarchy is not correct.\n");
189 |
190 | }
191 |
192 | if(S6.equalsIgnoreCase("y")) {
193 |
194 | textarea1.append("Unity is correctly maintained.\n");
195 |
196 |
197 | }
198 | else if(S6.equalsIgnoreCase("N")) {
199 |
200 |
201 | textarea1.append("Unity is not correctly maintained. Subclass hierarchy is not correct.\n");
202 |
203 | }
204 |
205 | }
206 |
207 | //ls.addAll(o.findsimilarity(s));
208 | //System.out.println("Ls is"+ls);
209 | //textarea.setText("Final ODP Output is: "+ls.toString());
210 | buttonLogin.setEnabled(false);
211 |
212 | return ls;
213 |
214 | }
215 |
216 | public void dispose() {
217 |
218 |
219 | buttonLogin.removeActionListener(refreshAction);
220 |
221 |
222 | }
223 | public void result() {
224 | try {
225 | UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
226 | } catch (Exception ex) {
227 | ex.printStackTrace();
228 | }
229 |
230 | SwingUtilities.invokeLater(new Runnable() {
231 | @Override
232 | public void run() {
233 | new chatbotpanel().setVisible(true);
234 | }
235 | });
236 | }
237 | public static void main(String[] args) {
238 | // set look and feel to the system look and feel
239 | chatbotpanel j=new chatbotpanel();
240 | j.result();
241 | }
242 | }
243 |
244 |
--------------------------------------------------------------------------------
/OntoSeer/src/main/java/edu/stanford/bmir/protege/examples/view/index.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | java /OntoSeer/src/main/java/edu/stanford/bmir/protege/examples/view/indices.java
3 | mvn clean install
4 | java -jar -OntoSeer.awt.UIElement="true" target/OntoSeer.jar -h
5 |
--------------------------------------------------------------------------------
/OntoSeer/src/main/java/edu/stanford/bmir/protege/examples/view/indices.java:
--------------------------------------------------------------------------------
1 | package edu.stanford.bmir.protege.examples.view;
2 |
3 | import java.util.Scanner;
4 |
5 | public class indices {
6 | public void indexing(String sc) {
7 |
8 | System.out.println(sc+"Files indexed. Please use OntoSeer.");
9 | }
10 |
11 | public static void main(String[] args) {
12 | String str=null;
13 | InvertedIndex i= new InvertedIndex();
14 | i.main(args);
15 |
16 | }
17 |
18 | }
19 |
--------------------------------------------------------------------------------
/OntoSeer/src/main/java/edu/stanford/bmir/protege/examples/view/jpanel.java:
--------------------------------------------------------------------------------
1 | package edu.stanford.bmir.protege.examples.view;
2 |
3 | import java.awt.Font;
4 | import java.awt.GridBagConstraints;
5 | import java.awt.GridBagLayout;
6 | import java.awt.Insets;
7 | import java.awt.event.ActionListener;
8 | import java.util.ArrayList;
9 | import java.util.HashSet;
10 | import java.util.List;
11 | import java.util.Set;
12 |
13 | import javax.swing.BorderFactory;
14 | import javax.swing.JButton;
15 | import javax.swing.JFileChooser;
16 | import javax.swing.JFrame;
17 | import javax.swing.JLabel;
18 | import javax.swing.JPanel;
19 | import javax.swing.JTextArea;
20 | import javax.swing.JTextField;
21 | import javax.swing.SwingUtilities;
22 | import javax.swing.UIManager;
23 | import org.protege.editor.owl.model.OWLModelManager;
24 | import org.protege.editor.owl.model.event.EventType;
25 | import org.protege.editor.owl.model.event.OWLModelManagerListener;
26 | import org.semanticweb.owlapi.model.OWLClass;
27 |
28 | public class jpanel extends JFrame {
29 | JFileChooser fileChooser = new JFileChooser();
30 | private JLabel labelEnterdescription = new JLabel("Please enter the description of the ontology.");
31 | private JLabel labelEnterDomain = new JLabel("Please enter the domain of ontology.");
32 | private JLabel labelcqs = new JLabel("Please enter the competency questions.");
33 |
34 | // private JLabel labelPassword = new JLabel("Enter password: ");
35 | private JTextField textDescription = new JTextField(20);
36 | private JTextField textdomain = new JTextField(20);
37 | private JTextField textclass = new JTextField(20);
38 | private JTextField textcqs = new JTextField(20);
39 | private JTextField textadd = new JTextField(20);
40 | private JTextField textfinal = new JTextField(20);
41 | private JTextArea textarea= new JTextArea("ODP Recommendation");
42 |
43 | private JLabel comment=new JLabel("The class and properties will be considered for ODP recommendation. Without any class or property ODP recommendation will not be shown.");
44 | private JLabel commentq=new JLabel("Along with that the following can also be provided for ODP recommendation but they are optional.");
45 | private JLabel comment2=new JLabel("Hover over label to get more information.");
46 |
47 |
48 |
49 | //private JPasswordField fieldPassword = new JPasswordField(20);
50 | private JButton buttonLogin = new JButton("ODP Recommendation");
51 | private JButton close = new JButton("Close the panel");
52 | private ActionListener refreshAction = e ->ODP();
53 | private OWLModelManager modelManager;
54 | private OWLModelManagerListener modelListener = event -> {
55 | if (event.getType() == EventType.ACTIVE_ONTOLOGY_CHANGED) {
56 | Metrics m=new Metrics(modelManager);
57 | }
58 | };
59 | public Listct1;
60 | String ct2[]=new String[50000];
61 | public List classname() {
62 |
63 | try {
64 |
65 | int count = modelManager.getActiveOntology().getClassesInSignature().size();
66 | int count2= modelManager.getActiveOntology().getLogicalAxiomCount();
67 | Setxt34=new HashSet();
68 | Listls2=new ArrayList();
69 |
70 | String s1[]=new String[500];
71 |
72 | Listiri=new ArrayList<>();
73 | Listclassname=new ArrayList<>();
74 | List map3 = new ArrayList();
75 |
76 |
77 | Set xt= modelManager.getActiveOntology().getClassesInSignature();
78 | // Vocabsuggesstionpanel v=new Vocabsuggesstionpanel();
79 | naming_panel p=new naming_panel();
80 |
81 | for(OWLClass c:xt) {
82 | String xt1=c.toString();
83 | System.out.println(xt1);
84 | xt34.add(xt1);
85 |
86 | }
87 | if (count == 0) {
88 | count = 1;
89 | }
90 | if(count2==0) {
91 | count2=1;
92 | }
93 | for(String s:xt34) {
94 | s1=s.split("#",2);
95 | s1[1]=s1[1].substring(0,s1[1].length()-1);
96 | iri.add(s1[0]);
97 | classname.add(s1[1]);
98 |
99 |
100 | }
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 | return classname;
109 |
110 |
111 | }catch(Exception e) {
112 | e.printStackTrace();
113 | return null;
114 | }
115 |
116 |
117 | }
118 |
119 | public jpanel(String ct[]) {
120 |
121 | super("ODP Recommendation");
122 | ct1=new ArrayList<>();
123 | ct2=ct;
124 |
125 | labelEnterdescription.setToolTipText("Provide key value related to description of ontology
For example :-
If you want to know about the ontology of college with professor, teacher, students etc then type \"college\"
If you want to know about the ontology related to wine then type \"wine\"");
126 | labelEnterDomain.setToolTipText("Provide key value related to domain of ontology
For example :-
If you want to know about the ontology of teacher but in the domain of college then type \"college\" in the domain and \"teacher\" in the description
If you want to know about the ontology related to color in the domain of wine ontology then type \"color\" in the domain and \"wine\" in the description");
127 | labelcqs.setToolTipText("Provide key value related to competency questions
For example :-
If you want CQ as \"No of teachers in college\" then type \"Teacher in the CQ\", \"college\" in the domain and \"teacher\" in the description
If you want CQ as \"All Color of wine in Asia\" then type \"color\" in the CQ, \"color\" in the domain and \"wine\" in the description");
128 |
129 | // create a new panel with GridBagLayout manager
130 | JPanel newPanel = new JPanel(new GridBagLayout());
131 | GridBagConstraints constraints = new GridBagConstraints();
132 | Insets insets = new Insets(10,10,10,10);
133 | constraints.insets = insets;
134 |
135 | constraints.anchor = GridBagConstraints.WEST;
136 | constraints = new GridBagConstraints(0, 0, 1, 2, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, insets, 0, 0);
137 | newPanel.add(comment, constraints);
138 | comment.setFont(comment.getFont().deriveFont(Font.BOLD, comment.getFont().getSize()));
139 |
140 | constraints = new GridBagConstraints(0, 3, 1, 2, 0.5, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, insets, 0, 0);
141 | newPanel.add(commentq, constraints);
142 | commentq.setFont(commentq.getFont().deriveFont(commentq.getFont().getSize()-1));
143 |
144 | constraints = new GridBagConstraints(0, 5, 1, 1, 0.5, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, insets, 0, 0);
145 | newPanel.add(comment2, constraints);
146 | comment2.setFont(comment2.getFont().deriveFont(comment2.getFont().getSize()-1));
147 |
148 | constraints = new GridBagConstraints(0, 7, 1, 1, 0.5, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, insets, 0, 0);
149 | newPanel.add(labelEnterdescription, constraints);
150 | constraints = new GridBagConstraints(1, 7, 1, 1, 0.5, 0.5, GridBagConstraints.CENTER, GridBagConstraints.BOTH, insets, 0, 0);
151 | newPanel.add(textDescription, constraints);
152 |
153 | constraints = new GridBagConstraints(0, 8, 1, 1, 0.5, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, insets, 0, 0);
154 | newPanel.add( labelEnterDomain, constraints);
155 | constraints = new GridBagConstraints(1, 8, 1, 1, 0.5, 0.5, GridBagConstraints.CENTER, GridBagConstraints.BOTH, insets, 0, 0);
156 | newPanel.add(textdomain, constraints);
157 |
158 | constraints = new GridBagConstraints(0, 9, 1, 1, 0.5, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, insets, 0, 0);
159 | newPanel.add(labelcqs, constraints);
160 | constraints = new GridBagConstraints(1, 9, 1, 1, 0.5, 0.5, GridBagConstraints.CENTER, GridBagConstraints.BOTH, insets, 0, 0);
161 | newPanel.add(textcqs, constraints);
162 |
163 | constraints = new GridBagConstraints(0, 10, 1, 1, 4, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, insets, 0, 0);
164 | newPanel.add(textarea, constraints);
165 | textarea.setEditable(false);
166 | textarea.setFont(textarea.getFont().deriveFont(textarea.getFont().getSize()));
167 |
168 | constraints.anchor = GridBagConstraints.CENTER;
169 | constraints = new GridBagConstraints(0, 16, 1, 1, 1, 0.6, GridBagConstraints.CENTER, GridBagConstraints.CENTER, insets, 0, 0);
170 | newPanel.add(buttonLogin, constraints);
171 | buttonLogin.addActionListener(refreshAction);
172 |
173 |
174 | // set border for the panel
175 | newPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "ODP Recommendation panel"));
176 |
177 |
178 | // add the panel to this frame
179 | add(newPanel);
180 |
181 | pack();
182 | setLocationRelativeTo(null);
183 | }
184 |
185 | public List ODP() {
186 | Listls=new ArrayList();
187 | //ls.addAll(ct1);
188 | Listls1=new ArrayList();
189 | List