[MOBY-guts] biomoby commit
Gary Schiltz
gss at pub.open-bio.org
Wed Sep 14 22:06:56 UTC 2005
gss
Wed Sep 14 18:06:55 EDT 2005
Update of /home/repository/moby/moby-live/S-MOBY/ref-impl/semanticmoby.org/src/org/semanticmoby/ref/tools/db
In directory pub.open-bio.org:/tmp/cvs-serv17172/src/org/semanticmoby/ref/tools/db
Modified Files:
StorageManager.java
Log Message:
Changed to work after major API overhaul
moby-live/S-MOBY/ref-impl/semanticmoby.org/src/org/semanticmoby/ref/tools/db StorageManager.java,1.2,1.3
===================================================================
RCS file: /home/repository/moby/moby-live/S-MOBY/ref-impl/semanticmoby.org/src/org/semanticmoby/ref/tools/db/StorageManager.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- /home/repository/moby/moby-live/S-MOBY/ref-impl/semanticmoby.org/src/org/semanticmoby/ref/tools/db/StorageManager.java 2005/03/21 21:42:02 1.2
+++ /home/repository/moby/moby-live/S-MOBY/ref-impl/semanticmoby.org/src/org/semanticmoby/ref/tools/db/StorageManager.java 2005/09/14 22:06:55 1.3
@@ -52,16 +52,16 @@
* are in the provider graph's namespace will be stored in the global repository,
* and all statements from the provider graph are stored in a separate model
* that has as its name the fully expanded URI of the provider.
- * @param provider the Provider to store
+ * @param service the Provider to store
* @param lastModifiedDate when the graph was last modified
* @throws StorageException if unable to access the database
*/
- public void registerProvider(MOBYProvider provider, Date lastModifiedDate)
+ public void registerProvider(MOBYService service, Date lastModifiedDate)
throws StorageException
{
- Model model = ((MOBYProvider) provider).getModel();
+ Model model = service.getJenaModel();
Model dbModel = null;
- String uriString = provider.getResource().getURI();
+ String uriString = service.getResource().getURI();
Resource uri = model.createResource(uriString);
try
@@ -103,8 +103,8 @@
// Add keywords associated with the provider
//
- KeywordFinder finder = new KeywordFinder(provider, model);
- addKeywords(provider.getResource().getURI(),
+ KeywordFinder finder = new KeywordFinder(service);
+ addKeywords(service.getResource().getURI(),
finder.getKeywords(), dbModel);
// Commit the transaction on the database model
@@ -134,7 +134,7 @@
java.sql.Statement sql = conn.createStatement();
- doAddKeywords(providerURI, list.getProviderKeywords(), "P", sql);
+ doAddKeywords(providerURI, list.getServiceKeywords(), "P", sql);
doAddKeywords(providerURI, list.getSubjectKeywords(), "S", sql);
doAddKeywords(providerURI, list.getObjectKeywords(), "O", sql);
More information about the MOBY-guts
mailing list