HughP / simal

Automatically exported from code.google.com/p/simal
0 stars 0 forks source link

ISimalRepository.add(String) interpreted as addProject in JenaSimalRepository #343

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
ISimalRepository defines the method:

public void add(String data) throws SimalRepositoryException;

Its implementation in JenaSimalRepository does not just add RDF but expects the 
string to represent a project.

We should either

1.Remove the generic add(String) method, and only allow entity-specific adds 
like IProjectService.createProject(Document sourceXml)

or 

2. Rework the Jena implementation to allow for dumping generic RDF in the 
database.

I prefer option 1.

Original issue reported on code.google.com by sander.v...@oucs.ox.ac.uk on 10 Aug 2010 at 3:24