01: package org.ontoware.rdfreactor.runtime;
02:
03: import org.ontoware.aifbcommons.collection.ClosableIterator;
04: import org.ontoware.rdf2go.exception.ModelRuntimeException;
05: import org.ontoware.rdf2go.model.Model;
06: import org.ontoware.rdf2go.model.node.Resource;
07: import org.ontoware.rdf2go.model.node.URI;
08:
09: public interface NewBridge {
10:
11: Object[] getAllInstances(Model model, java.lang.Class<?> javaClass);
12:
13: boolean containsInstance(Model model, URI classURI);
14:
15: boolean isInstanceOf(Model model, Resource subject, URI classURI);
16:
17: // operations
18:
19: boolean addValue(Model model, Resource o, URI propertyURI,
20: Object value) throws ModelRuntimeException;
21:
22: void addAllValues(Model model, Resource subject, URI propertyURI,
23: Object[] values) throws ModelRuntimeException;
24:
25: boolean removeValue(Model model, Resource subject, URI propertyURI,
26: Object value);
27:
28: boolean removeAllValues(Model model, Resource subject,
29: URI propertyURI, Object[] values)
30: throws ModelRuntimeException;
31:
32: boolean removeAllValues(Model model, Resource subject,
33: URI propertyURI) throws ModelRuntimeException;
34:
35: void setValue(Model model, Resource resourceObject,
36: URI propertyURI, Object value) throws ModelRuntimeException;
37:
38: void setAllValues(Model model, Resource subject, URI propertyURI,
39: Object[] values) throws ModelRuntimeException;
40:
41: boolean updateValue(Model model, Resource subject, URI propertyURI,
42: Object oldValue, Object newValue)
43: throws ModelRuntimeException;
44:
45: ClosableIterator<? extends Object> getSparqlSelectSingleVariable(
46: Model model, Class<?> returnType, String sparqlSelectQuery)
47: throws ModelRuntimeException;
48:
49: }
|