01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 1997-2006.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.sail.memory.model;
07:
08: import org.openrdf.model.Resource;
09:
10: /**
11: * A MemoryStore-specific extension of Resource giving it subject statements.
12: */
13: public interface MemResource extends MemValue, Resource {
14:
15: /**
16: * Gets the list of statements for which this MemResource is the subject.
17: * @return a MemStatementList containing the statements.
18: */
19: public MemStatementList getSubjectStatementList();
20:
21: /**
22: * Gets the number of statements for which this MemResource is the subject.
23: * @return An integer larger than or equal to 0.
24: */
25: public int getSubjectStatementCount();
26:
27: /**
28: * Adds a statement to this MemResource's list of statements for which it
29: * is the subject.
30: */
31: public void addSubjectStatement(MemStatement st);
32:
33: /**
34: * Removes a statement from this MemResource's list of statements for which
35: * it is the subject.
36: */
37: public void removeSubjectStatement(MemStatement st);
38:
39: /**
40: * Gets the list of statements for which this MemResource represents the
41: * context.
42: * @return a MemStatementList containing the statements.
43: */
44: public MemStatementList getContextStatementList();
45:
46: /**
47: * Gets the number of statements for which this MemResource represents the
48: * context.
49: * @return An integer larger than or equal to 0.
50: */
51: public int getContextStatementCount();
52:
53: /**
54: * Adds a statement to this MemResource's list of statements for which
55: * it represents the context.
56: */
57: public void addContextStatement(MemStatement st);
58:
59: /**
60: * Removes a statement from this MemResource's list of statements for which
61: * it represents the context.
62: */
63: public void removeContextStatement(MemStatement st);
64: }
|