View Javadoc

1   /*
2    wsmo4j - a WSMO API and Reference Implementation
3    
4    Copyright (c) 2004-2005, OntoText Lab. / SIRMA
5    
6    This library is free software; you can redistribute it and/or modify it under
7    the terms of the GNU Lesser General Public License as published by the Free
8    Software Foundation; either version 2.1 of the License, or (at your option)
9    any later version.
10   This library is distributed in the hope that it will be useful, but WITHOUT
11   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12   FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13   details.
14   You should have received a copy of the GNU Lesser General Public License along
15   with this library; if not, write to the Free Software Foundation, Inc.,
16   59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17   */
18  
19  /**
20   * <p>Title: WSMO4J</p>
21   * <p>Description: WSMO API and a Reference Implementation</p>
22   * <p>Copyright:  Copyright (c) 2004-2005</p>
23   * <p>Company: OntoText Lab. / SIRMA </p>
24   */
25  
26  package org.wsmo.datastore;
27  
28  import java.util.*;
29  
30  import org.omwg.ontology.*;
31  import org.wsmo.common.*;
32  import org.wsmo.common.exception.*;
33  import org.wsmo.service.*;
34  import org.wsmo.mediator.*;
35  
36  /**
37   * An WSMO Repository facade
38   *
39   * @author not attributable
40   * @version $Revision: 1951 $ $Date: 2007-04-02 17:19:19 +0300 (Mon, 02 Apr 2007) $
41   */
42  public interface WsmoRepository extends DataStore {
43  
44      public String getDescription();
45  
46      public void setDescription(String desc);
47  
48      String getVersion() throws SynchronisationException;
49  
50      public void addOntology(Ontology ont) throws SynchronisationException;
51  
52      public void saveOntology(Ontology ont) throws SynchronisationException;
53  
54      public Ontology getOntology(IRI id) throws SynchronisationException;
55  
56      public void deleteOntology(IRI id) throws SynchronisationException;
57  
58      public List<IRI> listOntologies() throws SynchronisationException;
59  
60      public void addGoal(Goal goal) throws SynchronisationException;
61  
62      public void saveGoal(Goal ont) throws SynchronisationException;
63  
64      public Goal getGoal(IRI id) throws SynchronisationException;
65  
66      public void deleteGoal(IRI id) throws SynchronisationException;
67  
68      public List<IRI> listGoals() throws SynchronisationException;
69  
70      public void addMediator(Mediator med) throws SynchronisationException;
71  
72      public void saveMediator(Mediator med) throws SynchronisationException;
73  
74      public Mediator getMediator(IRI id) throws SynchronisationException;
75  
76      public void deleteMediator(IRI id) throws SynchronisationException;
77  
78      public List<IRI> listMediators() throws SynchronisationException;
79  
80      public void addWebService(WebService ws) throws SynchronisationException;
81  
82      public void saveWebService(WebService ws) throws SynchronisationException;
83  
84      public WebService getWebService(IRI id) throws SynchronisationException;
85  
86      public void deleteWebService(IRI id) throws SynchronisationException;
87  
88      public List<IRI> listWebServices() throws SynchronisationException;
89  }
90  
91  /*
92   * $Log$
93   * Revision 1.5  2007/04/02 14:19:19  alex_simov
94   * list-  methods return collections of IRIs
95   *
96   * Revision 1.4  2007/04/02 12:13:16  morcen
97   * Generics support added to wsmo-api, wsmo4j and wsmo-test
98   *
99   * Revision 1.3  2005/06/27 14:30:26  alex_simov
100  * bugfix: invalid return type for getGoal() - it was Ontology
101  *
102  * Revision 1.2  2005/06/27 14:27:20  alex_simov
103  * mistyping error: listMediator() -> listMediators()
104  *
105  * Revision 1.1  2005/06/27 13:45:44  alex_simov
106  * 1) refactoring: *.io.datastore -> *.datastore
107  * 2) set/getDescription() added
108  *
109  * Revision 1.1  2005/06/24 13:29:45  marin_dimitrov
110  * WsmoRepository facade
111  *
112  *
113  */