Update of /cvsroot/javaowl/JavaOWL/src/org/javaowl/editor
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8138/src/org/javaowl/editor
Modified Files:
ModelEditorBean.java ResourceEditorBean.java
Log Message:
Some comments and a rename...
Index: ModelEditorBean.java
===================================================================
RCS file: /cvsroot/javaowl/JavaOWL/src/org/javaowl/editor/ModelEditorBean.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** ModelEditorBean.java 22 Jul 2004 18:48:42 -0000 1.5
--- ModelEditorBean.java 23 Jul 2004 01:18:50 -0000 1.6
***************
*** 116,119 ****
--- 116,120 ----
if (uri.startsWith(prefix)) {
OntClass resourceClass = ontModel.getOntClass(uri);
+ // TODO: fix this. Many domains on a property implies an intersection...
for (Iterator it = resourceClass.listDeclaredProperties(false); it.hasNext();) {
OntProperty p = (OntProperty) it.next();
***************
*** 136,140 ****
}
! public OntProperty[] getProperties() {
Set props = new HashSet();
for (Iterator it = ontModel.listDatatypeProperties(); it.hasNext();) {
--- 137,141 ----
}
! public OntProperty[] getAllProperties() {
Set props = new HashSet();
for (Iterator it = ontModel.listDatatypeProperties(); it.hasNext();) {
Index: ResourceEditorBean.java
===================================================================
RCS file: /cvsroot/javaowl/JavaOWL/src/org/javaowl/editor/ResourceEditorBean.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ResourceEditorBean.java 22 Jul 2004 18:28:38 -0000 1.3
--- ResourceEditorBean.java 23 Jul 2004 01:18:50 -0000 1.4
***************
*** 116,119 ****
--- 116,120 ----
public OntResource[] getValidClasses(OntProperty property) {
+ // TODO: This method is never called!
List resources = new ArrayList();
for (Iterator it = property.listRange(); it.hasNext();)
***************
*** 129,132 ****
--- 130,134 ----
op = ontModel.createOntProperty(property.getURI());
List list = new ArrayList();
+ // TODO: fix this. Many ranges on a property implies an intersection...
for (Iterator it = op.listRange(); it.hasNext();) {
OntResource or = (OntResource) it.next();
|