Update of /cvsroot/javaowl/JavaOWL/src/org/javaowl/editor
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13658/src/org/javaowl/editor
Modified Files:
ModelEditor.java ModelEditorBean.java
Added Files:
PropertyEditorBean.java
Log Message:
More tests and fixes to remote model editor implementation.
Index: ModelEditorBean.java
===================================================================
RCS file: /cvsroot/javaowl/JavaOWL/src/org/javaowl/editor/ModelEditorBean.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** ModelEditorBean.java 28 Aug 2004 00:43:01 -0000 1.21
--- ModelEditorBean.java 1 Sep 2004 21:44:17 -0000 1.22
***************
*** 32,35 ****
--- 32,36 ----
import org.javaowl.editor.reasoner.EditorReasoner;
+ import com.hp.hpl.jena.ontology.DatatypeProperty;
import com.hp.hpl.jena.ontology.OntClass;
import com.hp.hpl.jena.ontology.OntModel;
***************
*** 181,185 ****
Set props = new HashSet();
for (Iterator it = ontModel.listDatatypeProperties(); it.hasNext();) {
! props.add(getOntClass(((OntProperty) it.next()).getURI()));
}
return (OntClass[]) props.toArray(new OntClass[0]);
--- 182,187 ----
Set props = new HashSet();
for (Iterator it = ontModel.listDatatypeProperties(); it.hasNext();) {
! props.add(ontModel
! .getOntClass(((DatatypeProperty) it.next()).getRange().getURI()));
}
return (OntClass[]) props.toArray(new OntClass[0]);
***************
*** 329,333 ****
if (s != null)
return s.getString();
! return showUri ? resource.toString() : null;
}
--- 331,335 ----
if (s != null)
return s.getString();
! return showUri ? resource.resource.toString() : null;
}
Index: ModelEditor.java
===================================================================
RCS file: /cvsroot/javaowl/JavaOWL/src/org/javaowl/editor/ModelEditor.java,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** ModelEditor.java 28 Aug 2004 00:43:00 -0000 1.33
--- ModelEditor.java 1 Sep 2004 21:44:17 -0000 1.34
***************
*** 21,24 ****
--- 21,25 ----
+ import com.hp.hpl.jena.ontology.DatatypeProperty;
import com.hp.hpl.jena.ontology.OntClass;
import com.hp.hpl.jena.ontology.OntProperty;
--- NEW FILE: PropertyEditorBean.java ---
/*
* PropertyEditorBean.java Copyright (C) 2004 Gerardo Horvilleur Martinez, Elmer
* Garduno Hernandez
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this library; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package org.javaowl.editor;
import com.hp.hpl.jena.ontology.OntProperty;
public final class PropertyEditorBean {
final OntProperty property;
private final ModelEditor editor;
PropertyEditorBean(OntProperty property, ModelEditor editor) {
this.property = property;
this.editor = editor;
}
}
|