View Javadoc

1   /*
2    *  $Id: StatementPool.java,v 1.5 2004/07/25 21:44:43 roku Exp $ 
3    *
4    *  Copyright 2004 University of Hannover
5    *
6    *  Licensed under the Apache License, Version 2.0 (the "License");
7    *  you may not use this file except in compliance with the License.
8    *  You may obtain a copy of the License at
9    *
10   *      http://www.apache.org/licenses/LICENSE-2.0
11   *
12   *  Unless required by applicable law or agreed to in writing, software
13   *  distributed under the License is distributed on an "AS IS" BASIS,
14   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   *  See the License for the specific language governing permissions and
16   *  limitations under the License.
17   */
18  
19  package olr.rdf;
20  
21  import java.util.List;
22  
23  
24  public interface StatementPool
25  {
26      public abstract boolean isParsedNamespaceURI(String namespaceURI);
27  
28      public abstract void addParsedNamespaceURI(String namespaceURI);
29  
30      public abstract void addParsedNamespaceURI(String namespaceURI, String title);
31  
32      public abstract void removeParsedNamespaceURI(String namespaceURI);
33  
34      public abstract void addStatement(Statement statement);
35  
36      public abstract void addAttributeAbout(String subject, Attribute attribute);
37  
38      public abstract void removeStatement(Statement statement);
39  
40      public abstract void removeAttributeAbout(String subject,
41              Attribute attribute);
42  
43      public abstract List getAttributesAbout(String subject);
44  
45      public abstract List getSpecificAttributesAbout(String subject,
46              String predicate);
47  
48      public abstract Resource getResource(String subject);
49  
50      public abstract boolean hasAttribute(String subject, String predicate,
51              String object);
52  
53      public abstract boolean isClass(String resource);
54  
55      public abstract boolean isProperty(String resource);
56  
57      public abstract boolean isProperty(Resource resource);
58  
59      public abstract String getResourceTitle(String resource);
60  
61      public abstract String getResourceTitle(Resource resource);
62  
63      public abstract boolean isSubClassOf(String class1, String class2);
64  
65      public abstract boolean isInstanceOf(String resource, String classResource);
66  
67      public abstract boolean isInstanceOf(Resource resource, String classResource);
68  
69      public abstract boolean isCourse(String uri);
70  
71      public abstract String createInstanceOf(String namespace,
72              String classResource);
73  
74      public abstract List getAllInstances(String subject);
75  
76      public abstract List getAllSubClasses(List classResources);
77  
78      public abstract List getAllSubClasses(String classResource);
79  
80      public abstract List getAllSuperClasses(String classResource);
81  
82      public abstract List getAllPropertiesForClass(String classResource);
83  
84      public abstract List getAllDomains(String property);
85  
86      public abstract List getAllRanges(String property);
87  
88      public abstract List getAvailableProperties4Resource(String subject);
89  }