001 /*
002 * The contents of this file are subject to the Mozilla Public License
003 * Version 1.1 (the "License"); you may not use this file except in
004 * compliance with the License. You may obtain a copy of the License at
005 * http://www.mozilla.org/MPL/
006 *
007 * Software distributed under the License is distributed on an "AS IS" basis,
008 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
009 * the specific language governing rights and limitations under the License.
010 *
011 * The Original Code is Protege-2000.
012 *
013 * The Initial Developer of the Original Code is Stanford University. Portions
014 * created by Stanford University are Copyright (C) 2007. All Rights Reserved.
015 *
016 * Protege was developed by Stanford Medical Informatics
017 * (http://www.smi.stanford.edu) at the Stanford University School of Medicine
018 * with support from the National Library of Medicine, the National Science
019 * Foundation, and the Defense Advanced Research Projects Agency. Current
020 * information about Protege can be obtained at http://protege.stanford.edu.
021 *
022 */
023
024 package edu.stanford.smi.protegex.owl.model;
025
026 import java.net.URI;
027 import java.util.Collection;
028 import java.util.List;
029 import java.util.Set;
030
031 import edu.stanford.smi.protege.event.ClsListener;
032 import edu.stanford.smi.protege.event.FacetListener;
033 import edu.stanford.smi.protege.event.FrameListener;
034 import edu.stanford.smi.protege.event.InstanceListener;
035 import edu.stanford.smi.protege.event.KnowledgeBaseListener;
036 import edu.stanford.smi.protege.event.SlotListener;
037 import edu.stanford.smi.protege.model.BrowserSlotPattern;
038 import edu.stanford.smi.protege.model.Cls;
039 import edu.stanford.smi.protege.model.CommandManager;
040 import edu.stanford.smi.protege.model.Facet;
041 import edu.stanford.smi.protege.model.Frame;
042 import edu.stanford.smi.protege.model.FrameCounts;
043 import edu.stanford.smi.protege.model.FrameFactory;
044 import edu.stanford.smi.protege.model.FrameID;
045 import edu.stanford.smi.protege.model.FrameNameValidator;
046 import edu.stanford.smi.protege.model.Instance;
047 import edu.stanford.smi.protege.model.KnowledgeBase;
048 import edu.stanford.smi.protege.model.Project;
049 import edu.stanford.smi.protege.model.SimpleInstance;
050 import edu.stanford.smi.protege.model.Slot;
051 import edu.stanford.smi.protege.model.ValueType;
052 import edu.stanford.smi.protege.model.framestore.FrameStore;
053
054 /**
055 * @author Holger Knublauch <holger@knublauch.com>
056 */
057 public interface ProtegeKnowledgeBase extends KnowledgeBase {
058
059 /**
060 * @see OWLModel#addClassListener
061 * @deprecated
062 */
063 @Deprecated
064 void addClsListener(ClsListener listener);
065
066
067 /**
068 * @see RDFSClass#addClassListener
069 * @deprecated
070 */
071 @Deprecated
072 void addClsListener(Cls cls, ClsListener listener);
073
074
075 /**
076 * @see RDFResource#addPropertyValueListener
077 * @deprecated not needed
078 */
079 @Deprecated
080 void addFrameListener(Frame frame, FrameListener listener);
081
082
083 /**
084 * @see OWLModel#addPropertyValueListener
085 * @deprecated
086 */
087 @Deprecated
088 void addFrameListener(FrameListener listener);
089
090
091 /**
092 * @see RDFResource#addResourceListener
093 * @deprecated
094 */
095 @Deprecated
096 void addInstanceListener(Instance instance, InstanceListener listener);
097
098
099 /**
100 * @see OWLModel#addResourceListener
101 * @deprecated
102 */
103 @Deprecated
104 void addInstanceListener(InstanceListener listener);
105
106
107 /**
108 * @see OWLModel#addModelListener
109 * @deprecated
110 */
111 @Deprecated
112 void addKnowledgeBaseListener(KnowledgeBaseListener listener);
113
114
115 /**
116 * @see RDFProperty#addPropertyListener
117 * @deprecated
118 */
119 @Deprecated
120 void addSlotListener(Slot slot, SlotListener listener);
121
122
123 /**
124 * @see OWLModel#addPropertyListener
125 * @deprecated
126 */
127 @Deprecated
128 void addSlotListener(SlotListener listener);
129
130
131 /**
132 * @deprecated this method is based on facets which are not supported in OWL
133 */
134 @Deprecated
135 boolean areValidOwnSlotValues(Frame frame, Slot slot, Collection values);
136
137
138 /**
139 * @deprecated not needed
140 */
141 @Deprecated
142 boolean containsFrame(String name);
143
144
145 /**
146 * @see OWLModel#createRDFSNamedClass
147 * @see OWLModel#createOWLNamedClass
148 * @deprecated
149 */
150 @Deprecated
151 Cls createCls(String name, Collection parents);
152
153
154 /**
155 * @see RDFSNamedClass#createInstance
156 * @deprecated
157 */
158 @Deprecated
159 Cls createCls(String name, Collection parents, Cls metaCls);
160
161
162 /**
163 * @deprecated not needed in OWL
164 */
165 @Deprecated
166 Cls createCls(String name, Collection parents, Cls metaCls, boolean initializeDefaults);
167
168
169 /**
170 * @deprecated not needed in OWL
171 */
172 @Deprecated
173 Cls createCls(FrameID id, Collection parents, Collection metaClses, boolean initializeDefaults);
174
175
176 /**
177 * @deprecated no OWL equivalent
178 */
179 @Deprecated
180 Facet createFacet(String name);
181
182
183 /**
184 * @param name Pass null to cause the system to generate a name
185 */
186 Facet createFacet(String name, Cls metaCls);
187
188
189 /**
190 * @deprecated no OWL equivalent
191 */
192 @Deprecated
193 Facet createFacet(String name, Cls metaCls, boolean initializeDefaults);
194
195
196 /**
197 * @see RDFSClass#createInstance
198 * @deprecated
199 */
200 @Deprecated
201 Instance createInstance(String name, Cls directType);
202
203
204 /**
205 * @deprecated not needed
206 */
207 @Deprecated
208 Instance createInstance(String name, Cls directType, boolean initializeDefaults);
209
210
211 /**
212 * @deprecated not needed
213 */
214 @Deprecated
215 Instance createInstance(FrameID id, Cls directType, boolean initializeDefaults);
216
217
218 /**
219 * @deprecated not needed
220 */
221 @Deprecated
222 Instance createInstance(FrameID id, Collection directTypes, boolean initializeDefaults);
223
224
225 /**
226 * @see RDFSClass#createInstance
227 * @deprecated
228 */
229 @Deprecated
230 SimpleInstance createSimpleInstance(FrameID id, Collection directTypes, boolean initializeDefaults);
231
232
233 /**
234 * @see OWLModel#createRDFProperty
235 * @see OWLModel#createOWLDatatypeProperty
236 * @see OWLModel#createOWLObjectProperty
237 * @deprecated
238 */
239 @Deprecated
240 Slot createSlot(String name);
241
242
243 /**
244 * @see RDFSClass#createInstance
245 * @deprecated
246 */
247 @Deprecated
248 Slot createSlot(String name, Cls metaCls);
249
250
251 /**
252 * @deprecated not needed
253 */
254 @Deprecated
255 Slot createSlot(String name, Cls metaCls, boolean initializeDefaults);
256
257
258 /**
259 * @see OWLModel#createSubproperty
260 * @deprecated
261 */
262 @Deprecated
263 Slot createSlot(String name, Cls metaCls, Collection superslots, boolean initializeDefaults);
264
265
266 /**
267 * @see RDFResource#delete
268 * @deprecated
269 */
270 @Deprecated
271 void deleteCls(Cls cls);
272
273
274 /**
275 * @deprecated not needed in OWL
276 */
277 @Deprecated
278 void deleteFacet(Facet facet);
279
280
281 /**
282 * @see RDFResource#delete
283 * @deprecated
284 */
285 @Deprecated
286 void deleteFrame(Frame frame);
287
288
289 /**
290 * @see RDFResource#delete
291 * @deprecated
292 */
293 @Deprecated
294 void deleteInstance(Instance instance);
295
296
297 /**
298 * @see RDFResource#delete
299 * @deprecated
300 */
301 @Deprecated
302 void deleteSlot(Slot slot);
303
304
305 /**
306 * @see OWLModel#getRDFSNamedClass
307 * @deprecated
308 */
309 @Deprecated
310 Cls getCls(String name);
311
312
313 /**
314 * @see OWLModel#getRDFSClassCount
315 * @deprecated
316 */
317 @Deprecated
318 int getClsCount();
319
320
321 /**
322 * @see OWLModel#getRDFSClasses
323 * @deprecated
324 */
325 @Deprecated
326 Collection getClses();
327
328
329 /**
330 * Get classes whose name matches the give string. This string allows "*" for "match any sequence" of characters.
331 * The string is not a regular expression. The matching is case-insensitive.
332 */
333 Collection getClsNameMatches(String s, int maxMatches);
334
335
336 /**
337 * @deprecated
338 */
339 @Deprecated
340 Cls getDefaultClsMetaCls();
341
342
343 /**
344 * @deprecated not supported in OWL
345 */
346 @Deprecated
347 Cls getDefaultFacetMetaCls();
348
349
350 /**
351 * @deprecated
352 */
353 @Deprecated
354 Cls getDefaultSlotMetaCls();
355
356
357 /**
358 * @deprecated not supported in OWL
359 */
360 @Deprecated
361 Facet getFacet(String name);
362
363
364 /**
365 * @deprecated not supported in OWL
366 */
367 @Deprecated
368 int getFacetCount();
369
370
371 /**
372 * @return
373 * @deprecated not supported in OWL
374 */
375 @Deprecated
376 Collection getFacets();
377
378
379 /**
380 * @see OWLModel#getRDFResource
381 * @deprecated
382 */
383 @Deprecated
384 Frame getFrame(String name);
385
386
387 /**
388 * @deprecated not needed
389 */
390 @Deprecated
391 Frame getFrame(FrameID id);
392
393
394 /**
395 * @see OWLModel#getRDFResourceCount
396 * @deprecated
397 */
398 @Deprecated
399 int getFrameCount();
400
401
402 /**
403 * @deprecated not needed
404 */
405 @Deprecated
406 String getFrameCreationTimestamp(Frame frame);
407
408
409 /**
410 * @deprecated not needed
411 */
412 @Deprecated
413 String getFrameCreator(Frame frame);
414
415
416 /**
417 * @deprecated not needed
418 */
419 @Deprecated
420 String getFrameLastModificationTimestamp(Frame frame);
421
422
423 /**
424 * @deprecated not needed
425 */
426 @Deprecated
427 String getFrameLastModifier(Frame frame);
428
429
430 /**
431 * @see OWLModel#getResourceNameMatches
432 * @deprecated
433 */
434 @Deprecated
435 Collection getFrameNameMatches(String s, int maxMatches);
436
437
438 /**
439 * @deprecated not supported in OWL
440 */
441 @Deprecated
442 String getFrameNamePrefix();
443
444
445 /**
446 * @see OWLModel#getRDFResources
447 * @deprecated
448 */
449 @Deprecated
450 Collection getFrames();
451
452
453 /**
454 * @see OWLModel#getRDFResourcesWithPropertyValue
455 * @deprecated
456 */
457 @Deprecated
458 Collection getFramesWithValue(Slot slot, Facet facet, boolean isTemplate, Object value);
459
460
461 /**
462 * @see OWLModel#getRDFResource
463 * @deprecated
464 */
465 @Deprecated
466 Instance getInstance(String fullname);
467
468
469 /**
470 * @see OWLModel#getRDFResources
471 * @deprecated
472 */
473 @Deprecated
474 Collection getInstances();
475
476
477 /**
478 * @see RDFSClass#getInstances
479 * @deprecated
480 */
481 @Deprecated
482 Collection getInstances(Cls cls);
483
484
485 /**
486 * @deprecated not supported
487 */
488 @Deprecated
489 String getInvalidOwnSlotValuesText(Frame frame, Slot slot, Collection values);
490
491
492 /**
493 * @deprecated not supported
494 */
495 @Deprecated
496 String getInvalidOwnSlotValueText(Frame frame, Slot slot, Object value);
497
498
499 /**
500 * @see OWLModel#getMatchingResources
501 * @deprecated
502 */
503 @Deprecated
504 Collection getMatchingFrames(Slot slot, Facet facet, boolean isTemplate, String matchString, int maxMatches);
505
506
507 /**
508 * @deprecated not needed
509 */
510 @Deprecated
511 String getName();
512
513
514 /**
515 * @deprecated not needed
516 */
517 @Deprecated
518 int getNextFrameNumber();
519
520
521 /**
522 * Gets the Protege project of this.
523 *
524 * @return the Protege project
525 */
526 Project getProject();
527
528
529 /**
530 * @deprecated not needed
531 */
532 @Deprecated
533 Collection getReachableSimpleInstances(Collection roots);
534
535
536 /**
537 * @deprecated
538 * @see OWLModel#listReferences
539 */
540 @Deprecated
541 Collection getReferences(Object o, int maxReferences);
542
543
544 /**
545 * @deprecated
546 */
547 @Deprecated
548 Collection getMatchingReferences(String s, int maxReferences);
549
550
551 /**
552 * @deprecated not needed
553 */
554 @Deprecated
555 Collection getRootClses();
556
557
558 /**
559 * @deprecated not needed
560 */
561 @Deprecated
562 Cls getRootClsMetaCls();
563
564
565 /**
566 * @deprecated not needed
567 */
568 @Deprecated
569 Cls getRootFacetMetaCls();
570
571
572 /**
573 * @deprecated not needed
574 */
575 @Deprecated
576 Cls getRootSlotMetaCls();
577
578
579 /**
580 * @deprecated not needed
581 */
582 @Deprecated
583 Collection getRootSlots();
584
585
586 /**
587 * @see OWLModel#getRDFProperty
588 * @deprecated
589 */
590 @Deprecated
591 Slot getSlot(String name);
592
593
594 /**
595 * @deprecated not needed
596 */
597 @Deprecated
598 int getSlotCount();
599
600
601 /**
602 * @see OWLModel#getRDFProperties
603 * @deprecated
604 */
605 @Deprecated
606 Collection getSlots();
607
608
609 /**
610 * @deprecated not needed
611 */
612 @Deprecated
613 String getSlotValueLastModificationTimestamp(Frame frame, Slot slot, boolean isTemplate);
614
615
616 /**
617 * @deprecated not needed
618 */
619 @Deprecated
620 String getSlotValueLastModifier(Frame frame, Slot slot, boolean isTemplate);
621
622
623 /**
624 * @see RDFSClass#getSubclasses
625 * @deprecated
626 */
627 @Deprecated
628 Collection getSubclasses(Cls cls);
629
630
631 /**
632 * @deprecated not needed
633 */
634 @Deprecated
635 Collection getUnreachableSimpleInstances(Collection roots);
636
637
638 /**
639 * @deprecated not needed
640 */
641 @Deprecated
642 String getUserName();
643
644
645 /**
646 * @deprecated not needed
647 */
648 @Deprecated
649 String getVersionString();
650
651
652 /**
653 * @deprecated not supported in OWL
654 */
655 @Deprecated
656 boolean isAutoUpdatingFacetValues();
657
658
659 /**
660 * @deprecated not needed
661 */
662 @Deprecated
663 boolean isClsMetaCls(Cls cls);
664
665
666 /**
667 * @deprecated not needed
668 */
669 @Deprecated
670 boolean isDefaultClsMetaCls(Cls cls);
671
672
673 /**
674 * @deprecated not needed
675 */
676 @Deprecated
677 boolean isDefaultFacetMetaCls(Cls cls);
678
679
680 /**
681 * @deprecated not needed
682 */
683 @Deprecated
684 boolean isDefaultSlotMetaCls(Cls cls);
685
686
687 /**
688 * @deprecated not needed
689 */
690 @Deprecated
691 boolean isFacetMetaCls(Cls cls);
692
693
694 /**
695 * @deprecated not needed
696 */
697 @Deprecated
698 boolean isLoading();
699
700
701 /**
702 * @deprecated not needed
703 */
704 @Deprecated
705 boolean isSlotMetaCls(Cls cls);
706
707
708 /**
709 * @deprecated not supported in OWL
710 */
711 @Deprecated
712 boolean isValidOwnSlotValue(Frame frame, Slot slot, Object value);
713
714
715 /**
716 * @see RDFSClass#removeClassListener
717 * @deprecated
718 */
719 @Deprecated
720 void removeClsListener(Cls cls, ClsListener listener);
721
722
723 /**
724 * @see OWLModel#removeClassListener
725 * @deprecated
726 */
727 @Deprecated
728 void removeClsListener(ClsListener listener);
729
730
731 /**
732 * @deprecated not needed
733 */
734 @Deprecated
735 void removeFrameListener(Frame frame, FrameListener listener);
736
737
738 /**
739 * @see OWLModel#removePropertyValueListener
740 * @deprecated
741 */
742 @Deprecated
743 void removeFrameListener(FrameListener listener);
744
745
746 /**
747 * @deprecated not needed
748 */
749 @Deprecated
750 void removeJavaLoadPackage(String path);
751
752
753 /**
754 * @see OWLModel#removeModelListener
755 * @deprecated
756 */
757 @Deprecated
758 void removeKnowledgeBaseListener(KnowledgeBaseListener listener);
759
760
761 /**
762 * @see RDFResource#removeResourceListener
763 * @deprecated
764 */
765 @Deprecated
766 void removeInstanceListener(Instance instance, InstanceListener listener);
767
768
769 /**
770 * @see OWLModel#removeResourceListener
771 * @deprecated
772 */
773 @Deprecated
774 void removeInstanceListener(InstanceListener listener);
775
776
777 /**
778 * @see RDFProperty#removePropertyListener
779 * @deprecated
780 */
781 @Deprecated
782 void removeSlotListener(Slot slot, SlotListener listener);
783
784
785 /**
786 * @see OWLModel#removePropertyListener
787 * @deprecated
788 */
789 @Deprecated
790 void removeSlotListener(SlotListener listener);
791
792
793 /**
794 * @deprecated not supported in OWL
795 */
796 @Deprecated
797 void setAutoUpdateFacetValues(boolean b);
798
799
800 /**
801 * @deprecated not needed
802 */
803 @Deprecated
804 void setBuildString(String s);
805
806
807 /**
808 * @deprecated not needed
809 */
810 @Deprecated
811 void setChanged(boolean b);
812
813
814 /**
815 * @deprecated not needed
816 */
817 @Deprecated
818 void setDefaultClsMetaCls(Cls cls);
819
820
821 /**
822 * @deprecated not needed
823 */
824 @Deprecated
825 void setDefaultFacetMetaCls(Cls cls);
826
827
828 /**
829 * @deprecated not needed
830 */
831 void setDefaultSlotMetaCls(Cls cls);
832
833
834 boolean setUndoEnabled(boolean enabled);
835
836
837 /**
838 * @deprecated not needed
839 */
840 boolean setGenerateDeletingFrameEventsEnabled(boolean enabled);
841
842
843 /**
844 * @deprecated not needed
845 */
846 void setPollForEvents(boolean enabled);
847
848
849 /**
850 * @deprecated not needed
851 */
852 boolean setJournalingEnabled(boolean enabled);
853
854
855 /**
856 * @deprecated not needed
857 */
858 boolean isJournalingEnabled();
859
860
861 /**
862 * @deprecated not needed
863 */
864 boolean setArgumentCheckingEnabled(boolean enabled);
865
866
867 /**
868 * @deprecated not needed
869 */
870 boolean setChangeMonitorEnabled(boolean enabled);
871
872
873 /**
874 * @deprecated not needed
875 */
876 boolean setCleanDispatchEnabled(boolean enabled);
877
878
879 /**
880 * @deprecated not needed
881 */
882 boolean setFacetCheckingEnabled(boolean enabled);
883
884
885 /**
886 * @deprecated not needed
887 */
888 void setFrameNamePrefix(String name);
889
890
891 /**
892 * @deprecated not needed
893 */
894 void setName(String name);
895
896
897 /**
898 * @deprecated not needed
899 */
900 void setNextFrameNumber(int i);
901
902
903 void setProject(Project project);
904
905
906 /**
907 * @deprecated not needed
908 */
909 void setValueChecking(boolean b);
910
911
912 /**
913 * @deprecated not needed
914 */
915 void setVersionString(String s);
916
917
918 /**
919 * @see RDFResource#addPropertyValue
920 * @deprecated
921 */
922 void addOwnSlotValue(Frame frame, Slot slot, Object value);
923
924
925 /**
926 * @see RDFResource#getComments
927 * @deprecated
928 */
929 Collection getDocumentation(Frame frame);
930
931
932 /**
933 * @deprecated not needed
934 */
935 String getName(Frame frame);
936
937
938 /**
939 * @deprecated not needed
940 */
941 boolean getOwnSlotAllowsMultipleValues(Frame frame, Slot slot);
942
943
944 /**
945 * @see RDFResource#getPropertyValues(RDFProperty, boolean)
946 * @deprecated
947 */
948 Collection getOwnSlotAndSubslotValues(Frame frame, Slot slot);
949
950
951 /**
952 * @deprecated not supported in OWL
953 */
954 Collection getOwnSlotDefaultValues(Frame frame, Slot slot);
955
956
957 /**
958 * @deprecated not supported in OWL
959 */
960 Collection getOwnSlotFacets(Frame frame, Slot slot);
961
962
963 /**
964 * @deprecated not supported in OWL
965 */
966 Collection getOwnSlotFacetValues(Frame frame, Slot slot, Facet facet);
967
968
969 /**
970 * @see RDFResource#getPossibleRDFProperties
971 * @deprecated
972 */
973 Collection getOwnSlots(Frame frame);
974
975
976 /**
977 * @see RDFResource#getPropertyValues
978 * @deprecated
979 */
980 Collection getOwnSlotValues(Frame frame, Slot slot);
981
982
983 /**
984 * @see RDFResource#getPropertyValue
985 * @deprecated
986 */
987 Object getDirectOwnSlotValue(Frame frame, Slot slot);
988
989
990 /**
991 * @see RDFResource#getPropertyValues
992 * @deprecated
993 */
994 List getDirectOwnSlotValues(Frame frame, Slot slot);
995
996
997 /**
998 * @see RDFResource#getPropertyValues
999 * @deprecated
1000 */
1001 Object getOwnSlotValue(Frame frame, Slot slot);
1002
1003
1004 /**
1005 * @see RDFResource#getPropertyValueCount
1006 * @deprecated
1007 */
1008 int getOwnSlotValueCount(Frame frame, Slot slot);
1009
1010
1011 /**
1012 * @deprecated not needed
1013 */
1014 ValueType getOwnSlotValueType(Frame frame, Slot slot);
1015
1016
1017 /**
1018 * @deprecated not needed (get domain of rdf:type instead)
1019 */
1020 boolean hasOwnSlot(Frame frame, Slot slot);
1021
1022
1023 /**
1024 * @see RDFResource#removePropertyValue
1025 * @deprecated
1026 */
1027 void removeOwnSlotValue(Frame frame, Slot slot, Object value);
1028
1029
1030 /**
1031 * @see RDFResource#setComment(String)
1032 * @deprecated
1033 */
1034 void setDocumentation(Frame frame, String text);
1035
1036
1037 /**
1038 * @see RDFResource#setComments
1039 * @deprecated
1040 */
1041 void setDocumentation(Frame frame, Collection text);
1042
1043
1044 /**
1045 * @see RDFResource#setPropertyValues
1046 * @deprecated
1047 */
1048 void setDirectOwnSlotValues(Frame frame, Slot slot, Collection values);
1049
1050
1051 /**
1052 * @see RDFResource#setPropertyValues
1053 * @deprecated
1054 */
1055 void setOwnSlotValues(Frame frame, Slot slot, Collection values);
1056
1057
1058 /**
1059 * @deprecated not needed
1060 */
1061 void notifyVisibilityChanged(Frame frame);
1062
1063
1064 /**
1065 * @deprecated not needed
1066 */
1067 void addFacetListener(FacetListener listener);
1068
1069
1070 /**
1071 * @deprecated not needed
1072 */
1073 void removeFacetListener(FacetListener listener);
1074
1075
1076 /**
1077 * @deprecated not needed
1078 */
1079 void addFacetListener(Facet facet, FacetListener listener);
1080
1081
1082 /**
1083 * @deprecated not needed
1084 */
1085 void removeFacetListener(Facet facet, FacetListener listener);
1086
1087
1088 /**
1089 * @deprecated not needed
1090 */
1091 Slot getAssociatedSlot(Facet facet);
1092
1093
1094 /**
1095 * @deprecated not needed
1096 */
1097 void setAssociatedSlot(Facet facet, Slot slot);
1098
1099
1100 /**
1101 * @see RDFSClass#addSuperclass
1102 * @deprecated
1103 */
1104 void addDirectSuperclass(Cls cls, Cls superclass);
1105
1106
1107 /**
1108 * @see RDFSClass#removeSuperclass
1109 * @deprecated
1110 */
1111 void removeDirectSuperclass(Cls cls, Cls superclass);
1112
1113
1114 /**
1115 * @see RDFProperty#addUnionDomainClass
1116 * @deprecated
1117 */
1118 void addDirectTemplateSlot(Cls cls, Slot slot);
1119
1120
1121 /**
1122 * @see RDFProperty#removeUnionDomainClass
1123 * @deprecated
1124 */
1125 void removeDirectTemplateSlot(Cls cls, Slot slot);
1126
1127
1128 /**
1129 * @deprecated not supported in OWL
1130 */
1131 void addTemplateFacetValue(Cls cls, Slot slot, Facet facet, Object value);
1132
1133
1134 /**
1135 * @deprecated not supported in OWL
1136 */
1137 void addTemplateSlotValue(Cls cls, Slot slot, Object value);
1138
1139
1140 /**
1141 * @deprecated not supported in OWL
1142 */
1143 Slot getNameSlot();
1144
1145
1146 /**
1147 * @see RDFSClass#getInstanceCount
1148 * @deprecated
1149 */
1150 int getDirectInstanceCount(Cls cls);
1151
1152
1153 /**
1154 * @see RDFSClass#getInstances
1155 * @deprecated
1156 */
1157 Collection getDirectInstances(Cls cls);
1158
1159
1160 /**
1161 * @see RDFSClass#getSubclassCount
1162 * @deprecated
1163 */
1164 int getDirectSubclassCount(Cls cls);
1165
1166
1167 /**
1168 * @see RDFSClass#getSubclasses
1169 * @deprecated
1170 */
1171 Collection getDirectSubclasses(Cls cls);
1172
1173
1174 /**
1175 * @see RDFSClass#getSuperclassCount
1176 * @deprecated
1177 */
1178 int getDirectSuperclassCount(Cls cls);
1179
1180
1181 /**
1182 * @see RDFSClass#getSuperclasses
1183 * @deprecated
1184 */
1185 Collection getDirectSuperclasses(Cls cls);
1186
1187
1188 /**
1189 * @deprecated not supported in OWL
1190 */
1191 List getDirectTemplateFacetValues(Cls cls, Slot slot, Facet facet);
1192
1193
1194 /**
1195 * @see RDFSClass#getUnionDomainProperties
1196 * @deprecated
1197 */
1198 Collection getDirectTemplateSlots(Cls cls);
1199
1200
1201 /**
1202 * @deprecated not supported in OWL
1203 */
1204 List getDirectTemplateSlotValues(Cls cls, Slot slot);
1205
1206
1207 /**
1208 * @see RDFSClass#getInstanceCount
1209 * @deprecated
1210 */
1211 int getInstanceCount(Cls cls);
1212
1213
1214 /**
1215 * @deprecated not needed
1216 */
1217 int getSimpleInstanceCount();
1218
1219
1220 /**
1221 * @see RDFSClass#getSuperclasses
1222 * @deprecated
1223 */
1224 Collection getSuperclasses(Cls cls);
1225
1226
1227 /**
1228 * @deprecated not supported in OWL
1229 */
1230 Collection getTemplateFacets(Cls cls, Slot slot);
1231
1232
1233 /**
1234 * @deprecated not supported in OWL
1235 */
1236 Object getTemplateFacetValue(Cls cls, Slot slot, Facet facet);
1237
1238
1239 /**
1240 * @deprecated not supported in OWL
1241 */
1242 Collection getTemplateFacetValues(Cls cls, Slot slot, Facet facet);
1243
1244
1245 /**
1246 * @deprecated not supported in OWL
1247 */
1248 Collection getTemplateSlotAllowedClses(Cls cls, Slot slot);
1249
1250
1251 /**
1252 * @deprecated not supported in OWL
1253 */
1254 Collection getTemplateSlotAllowedParents(Cls cls, Slot slot);
1255
1256
1257 /**
1258 * @deprecated not supported in OWL
1259 */
1260 Collection getTemplateSlotAllowedValues(Cls cls, Slot slot);
1261
1262
1263 /**
1264 * @deprecated not supported in OWL
1265 */
1266 boolean getTemplateSlotAllowsMultipleValues(Cls cls, Slot slot);
1267
1268
1269 /**
1270 * @deprecated not supported in OWL
1271 */
1272 Collection getTemplateSlotDefaultValues(Cls cls, Slot slot);
1273
1274
1275 /**
1276 * @deprecated not supported in OWL
1277 */
1278 Collection getTemplateSlotDocumentation(Cls cls, Slot slot);
1279
1280
1281 /**
1282 * @deprecated not supported in OWL
1283 */
1284 int getTemplateSlotMaximumCardinality(Cls cls, Slot slot);
1285
1286
1287 /**
1288 * @deprecated not supported in OWL
1289 */
1290 Number getTemplateSlotMaximumValue(Cls cls, Slot slot);
1291
1292
1293 /**
1294 * @deprecated not supported in OWL
1295 */
1296 int getTemplateSlotMinimumCardinality(Cls cls, Slot slot);
1297
1298
1299 /**
1300 * @deprecated not supported in OWL
1301 */
1302 Number getTemplateSlotMinimumValue(Cls cls, Slot slot);
1303
1304
1305 /**
1306 * @see RDFSClass#getUnionDomainProperties(boolean)
1307 * @deprecated
1308 */
1309 Collection getTemplateSlots(Cls cls);
1310
1311
1312 /**
1313 * @deprecated not supported in OWL
1314 */
1315 Object getTemplateSlotValue(Cls cls, Slot slot);
1316
1317
1318 /**
1319 * @deprecated not supported in OWL
1320 */
1321 Collection getTemplateSlotValues(Cls cls, Slot slot);
1322
1323
1324 /**
1325 * @deprecated not supported in OWL
1326 */
1327 ValueType getTemplateSlotValueType(Cls cls, Slot slot);
1328
1329
1330 /**
1331 * @deprecated not supported in OWL
1332 */
1333 boolean hasDirectlyOverriddenTemplateFacet(Cls cls, Slot slot, Facet facet);
1334
1335
1336 /**
1337 * @deprecated not supported in OWL
1338 */
1339 boolean hasDirectlyOverriddenTemplateSlot(Cls cls, Slot slot);
1340
1341
1342 /**
1343 * @deprecated not supported in OWL
1344 */
1345 Collection getDirectlyOverriddenTemplateSlots(Cls cls);
1346
1347
1348 /**
1349 * @deprecated not supported in OWL
1350 */
1351 Collection getDirectlyOverriddenTemplateFacets(Cls cls, Slot slot);
1352
1353
1354 /**
1355 * @deprecated not needed
1356 */
1357 boolean hasDirectSuperclass(Cls cls, Cls superclass);
1358
1359
1360 /**
1361 * @deprecated not needed
1362 */
1363 boolean hasDirectSuperslot(Slot slot, Slot superslot);
1364
1365
1366 /**
1367 * @deprecated not needed
1368 */
1369 boolean hasSuperslot(Slot slot, Slot superslot);
1370
1371
1372 /**
1373 * @deprecated not supported in OWL
1374 */
1375 void moveDirectSubslot(Slot slot, Slot subslot, Slot afterSlot);
1376
1377
1378 /**
1379 * @deprecated not supported in OWL
1380 */
1381 void moveDirectTemplateSlot(Cls cls, Slot slot, int toIndex);
1382
1383
1384 /**
1385 * @see RDFSClass#getUnionDomainProperties
1386 * @deprecated
1387 */
1388 boolean hasDirectTemplateSlot(Cls cls, Slot slot);
1389
1390
1391 /**
1392 * @see RDFSClass#getUnionDomainProperties
1393 * @deprecated
1394 */
1395 boolean hasInheritedTemplateSlot(Cls cls, Slot slot);
1396
1397
1398 /**
1399 * @deprecated not supported in OWL
1400 */
1401 boolean hasOverriddenTemplateSlot(Cls cls, Slot slot);
1402
1403
1404 /**
1405 * @deprecated not supported in OWL
1406 */
1407 boolean hasOverriddenTemplateFacet(Cls cls, Slot slot, Facet facet);
1408
1409
1410 /**
1411 * @see RDFSClass#hasSuperclass
1412 * @deprecated
1413 */
1414 boolean hasSuperclass(Cls cls, Cls superclass);
1415
1416
1417 /**
1418 * @deprecated
1419 */
1420 boolean hasTemplateSlot(Cls cls, Slot slot);
1421
1422
1423 /**
1424 * @deprecated not supported in OWL
1425 */
1426 boolean isAbstract(Cls cls);
1427
1428
1429 /**
1430 * @deprecated not needed
1431 */
1432 boolean isMetaCls(Cls cls);
1433
1434
1435 /**
1436 * @deprecated not supported in OWL
1437 */
1438 void moveDirectSubclass(Cls cls, Cls subclass, Cls afterclass);
1439
1440
1441 /**
1442 * @deprecated not supported in OWL
1443 */
1444 void removeTemplateFacetOverrides(Cls cls, Slot slot);
1445
1446
1447 /**
1448 * @deprecated not supported in OWL
1449 */
1450 void setAbstract(Cls cls, boolean isAbstract);
1451
1452
1453 /**
1454 * @deprecated not needed
1455 */
1456 void setDirectTypeOfSubclasses(Cls cls, Cls type);
1457
1458
1459 /**
1460 * @deprecated not supported by OWL
1461 */
1462 void setTemplateFacetValue(Cls cls, Slot slot, Facet facet, Object value);
1463
1464
1465 /**
1466 * @deprecated not supported by OWL
1467 */
1468 void setTemplateFacetValues(Cls cls, Slot slot, Facet facet, Collection values);
1469
1470
1471 /**
1472 * @deprecated not supported by OWL
1473 */
1474 void setTemplateSlotAllowedClses(Cls cls, Slot slot, Collection values);
1475
1476
1477 /**
1478 * @deprecated not supported by OWL
1479 */
1480 void setTemplateSlotAllowedParents(Cls cls, Slot slot, Collection values);
1481
1482
1483 /**
1484 * @deprecated not supported by OWL
1485 */
1486 void setTemplateSlotAllowedValues(Cls cls, Slot slot, Collection values);
1487
1488
1489 /**
1490 * @deprecated not supported by OWL
1491 */
1492 void setTemplateSlotAllowsMultipleValues(Cls cls, Slot slot, boolean allowsMultiple);
1493
1494
1495 /**
1496 * @deprecated not supported by OWL
1497 */
1498 void setTemplateSlotDefaultValues(Cls cls, Slot slot, Collection values);
1499
1500
1501 /**
1502 * @deprecated not supported by OWL
1503 */
1504 void setTemplateSlotDocumentation(Cls cls, Slot slot, String doc);
1505
1506
1507 /**
1508 * @deprecated not supported by OWL
1509 */
1510 void setTemplateSlotDocumentation(Cls cls, Slot slot, Collection docs);
1511
1512
1513 /**
1514 * @deprecated not supported by OWL
1515 */
1516 void setTemplateSlotMaximumCardinality(Cls cls, Slot slot, int value);
1517
1518
1519 /**
1520 * @deprecated not supported by OWL
1521 */
1522 void setTemplateSlotMaximumValue(Cls cls, Slot slot, Number value);
1523
1524
1525 /**
1526 * @deprecated not supported by OWL
1527 */
1528 void setTemplateSlotMinimumCardinality(Cls cls, Slot slot, int value);
1529
1530
1531 /**
1532 * @deprecated not supported by OWL
1533 */
1534 void setTemplateSlotMinimumValue(Cls cls, Slot slot, Number value);
1535
1536
1537 /**
1538 * @deprecated not supported by OWL
1539 */
1540 void setTemplateSlotValue(Cls cls, Slot slot, Object value);
1541
1542
1543 /**
1544 * @deprecated not supported by OWL
1545 */
1546 void setTemplateSlotValues(Cls cls, Slot slot, Collection value);
1547
1548
1549 /**
1550 * @deprecated not supported by OWL
1551 */
1552 void setTemplateSlotValueType(Cls cls, Slot slot, ValueType type);
1553
1554
1555 /**
1556 * @see RDFResource#addProtegeType
1557 * @deprecated
1558 */
1559 void addInstance(Instance instance, String name, Cls type, boolean isNew);
1560
1561
1562 /**
1563 * @see RDFResource#getBrowserText
1564 * @deprecated
1565 */
1566 String getBrowserText(Instance instance);
1567
1568
1569 /**
1570 * @see RDFResource#getProtegeType
1571 * @deprecated
1572 */
1573 Cls getDirectType(Instance instance);
1574
1575
1576 /**
1577 * @see RDFResource#getProtegeTypes
1578 * @deprecated
1579 */
1580 Collection getDirectTypes(Instance instance);
1581
1582
1583 /**
1584 * @see RDFResource#hasProtegeType
1585 * @deprecated
1586 */
1587 boolean hasDirectType(Instance instance, Cls cls);
1588
1589
1590 /**
1591 * @see RDFResource#hasProtegeType
1592 * @deprecated
1593 */
1594 boolean hasType(Instance instance, Cls cls);
1595
1596
1597 /**
1598 * @see RDFResource#setProtegeType
1599 * @deprecated
1600 */
1601 Instance setDirectType(Instance instance, Cls cls);
1602
1603
1604 /**
1605 * @see RDFResource#setProtegeTypes
1606 * @deprecated
1607 */
1608 Instance setDirectTypes(Instance instance, Collection types);
1609
1610
1611 /**
1612 * @see RDFProperty#addSuperproperty
1613 * @deprecated
1614 */
1615 void addDirectSuperslot(Slot slot, Slot superslot);
1616
1617
1618 /**
1619 * @see RDFProperty#getUnionRangeClasses
1620 * @deprecated
1621 */
1622 Collection getAllowedClses(Slot slot);
1623
1624
1625 /**
1626 * @deprecated not supported in OWL
1627 */
1628 Collection getAllowedParents(Slot slot);
1629
1630
1631 /**
1632 * @see RDFProperty#getRange
1633 * @deprecated
1634 */
1635 Collection getAllowedValues(Slot slot);
1636
1637
1638 /**
1639 * @see RDFProperty#isFunctional
1640 * @deprecated
1641 */
1642 boolean getAllowsMultipleValues(Slot slot);
1643
1644
1645 /**
1646 * @deprecated not supported in OWL
1647 */
1648 Facet getAssociatedFacet(Slot slot);
1649
1650
1651 /**
1652 * @deprecated not supported in OWL
1653 */
1654 Collection getDefaultValues(Slot slot);
1655
1656
1657 /**
1658 * @see RDFProperty#getSubpropertyCount
1659 * @deprecated
1660 */
1661 int getDirectSubslotCount(Slot slot);
1662
1663
1664 /**
1665 * @see RDFProperty#getSubproperties
1666 * @deprecated
1667 */
1668 Collection getDirectSubslots(Slot slot);
1669
1670
1671 /**
1672 * @see RDFProperty#getSuperproperties
1673 * @deprecated
1674 */
1675 Collection getDirectSuperslots(Slot slot);
1676
1677
1678 /**
1679 * @see RDFProperty#getSuperpropertyCount