Update of /cvsroot/javaowl/JavaOWL/src/org/javaowl/editor
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2509/src/org/javaowl/editor
Modified Files:
ModelEditorBean.java
Added Files:
ModelEditor.java
Log Message:
Added Interface ModelEditor
Index: ModelEditorBean.java
===================================================================
RCS file: /cvsroot/javaowl/JavaOWL/src/org/javaowl/editor/ModelEditorBean.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** ModelEditorBean.java 28 Jul 2004 07:17:03 -0000 1.9
--- ModelEditorBean.java 9 Aug 2004 19:07:31 -0000 1.10
***************
*** 46,50 ****
import com.hp.hpl.jena.vocabulary.RDF;
! public class ModelEditorBean {
private final OntModel ontModel;
--- 46,50 ----
import com.hp.hpl.jena.vocabulary.RDF;
! public class ModelEditorBean implements ModelEditor {
private final OntModel ontModel;
--- NEW FILE: ModelEditor.java ---
/*
* ModelEditor.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 java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.Set;
import com.hp.hpl.jena.ontology.OntClass;
import com.hp.hpl.jena.ontology.OntProperty;
import com.hp.hpl.jena.ontology.OntResource;
import com.hp.hpl.jena.rdf.model.Literal;
import com.hp.hpl.jena.rdf.model.Model;
import com.hp.hpl.jena.rdf.model.Property;
import com.hp.hpl.jena.rdf.model.Resource;
import com.hp.hpl.jena.rdf.model.Statement;
public interface ModelEditor extends Remote{
public OntResource[] getAllClasses() throws RemoteException;;
public Set getPropertiesURIs(Resource clazz, boolean all) throws RemoteException;;
public OntProperty[] getProperties(Resource clazz, boolean all) throws RemoteException;;
public OntProperty[] getAllDatatypeProperties() throws RemoteException;;
public Resource[] getInstances(OntResource clazz, boolean all) throws RemoteException;;
public OntClass getOntClass(Resource resource) throws RemoteException;;
public OntProperty getOntProperty(Property property) throws RemoteException;;
public Literal getTypedLiteral(Object value, OntResource type) throws RemoteException;;
public void removeStatement(Statement statement) throws RemoteException;;
public void removeResource(Resource resource) throws RemoteException;;
public OntClass[] getSubClasses(OntClass resourceClass) throws RemoteException;;
public ResourceEditorBean createResource(OntResource classResource) throws RemoteException;;
public ResourceEditorBean createResource(String uri,
OntResource classResource) throws RemoteException;
public ResourceEditorBean getResource(Resource resource) throws RemoteException;;
public Model getOntology() throws RemoteException;;
public Model getData() throws RemoteException;;
}
|