
|
If you were logged in you would be able to see more operations.
|
|
|
Issue Links:
|
Dependency
|
|
This issue depends on:
|
|
SES-199
Rename Vertex-objects to R... objects
|
|
|
|
SES-202
Update Repository API for Java 5
|
|
|
|
|
|
|
The Repository API already has Repository-specific implementations of URI, BNode, Literal, Resource and Value; a Repository-specific Statement is still missing. An Repository-specific Statement class would be quite useful to indicate that it is a statement that has a Repository-specific subject, predicate and object. It would also be an ideal place to include staement-centric exists(), add() and remove() methods, as well as methods for updating specific parts of the statement.
Envisioned class signature:
class RStatement implements Statement {
RStatement(Repository r, Statement st);
RStatement(Repository r, Statement st, Resource context);
Repository getRepository();
RResource getSubject();
RURI getPredicate();
RValue getObject();
RResource getContext();
setSubject(Resource subject);
setPredicate(URI predicate);
setObject(Value object);
setContext(Resource context);
boolean exists();
void add();
void remove();
// util methods to replace the existing statement with a modified one
void changeSubject(Resource newSubject);
void changePredicate(URI newPredicate);
void changeObject(Value newObject);
void changeContext(Resource newContext);
}
Note that, to be able to overload getSubject(), getPredicate() and getObject() with a new return type (that is a subtype of the existing return type), we will need to switch to Java 5 first.
|
|
|
Change by Arjohn Kampman [23/Nov/05 10:20 AM]
|
| Field |
Original Value |
New Value |
|
Assignee
|
|
Arjohn Kampman
[ arjohn
]
|
|
Change by Arjohn Kampman [23/Nov/05 10:20 AM]
|
| Field |
Original Value |
New Value |
|
Status
|
Open
[ 1
]
|
In Progress
[ 3
]
|
|
Change by Arjohn Kampman [16/Dec/05 01:54 PM]
|
| Field |
Original Value |
New Value |
|
Resolution
|
|
Fixed
[ 1
]
|
|
Status
|
In Progress
[ 3
]
|
Resolved
[ 5
]
|
|
Change by Arjohn Kampman [07/Feb/06 11:49 AM]
|
| Field |
Original Value |
New Value |
|
Status
|
Resolved
[ 5
]
|
Closed
[ 6
]
|
|
|