History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: SES-204
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Arjohn Kampman
Reporter: Arjohn Kampman
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Sesame

Add RStatement to Repository API

Created: 14/Nov/05 03:21 PM   Updated: 07/Feb/06 11:49 AM
Component/s: Repository API
Affects Version/s: None
Fix Version/s: 2.0-alpha-2

Issue Links:
Dependency
This issue depends on:
SES-199 Rename Vertex-objects to R... objects Minor Closed
SES-202 Update Repository API for Java 5 Blocker Closed
 


 Description   
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.

 All   Comments   Change History      Sort Order:
Change by Arjohn Kampman [14/Nov/05 03:21 PM]
Field Original Value New Value
Link This issue depends on SES-202 [ SES-202 ]

Change by Arjohn Kampman [14/Nov/05 03:22 PM]
Field Original Value New Value
Link This issue depends on SES-199 [ SES-199 ]

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 ]