Revision: 1886
Author: [email protected]
Date: Fri May 21 09:49:45 2010
Log: Bugfix for querying organisations. Extra level of indirection in recreating a resource by its URI doesn't work for blank nodes, because the link to the original blank node is lost and therefore all related objects can't be found.
http://code.google.com/p/simal/source/detail?r=1886

Modified:
/trunk/uk.ac.osswatch.simal.core/src/main/java/uk/ac/osswatch/simal/service/jena/JenaOrganisationService.java

=======================================
--- /trunk/uk.ac.osswatch.simal.core/src/main/java/uk/ac/osswatch/simal/service/jena/JenaOrganisationService.java Tue Nov 24 15:30:12 2009 +++ /trunk/uk.ac.osswatch.simal.core/src/main/java/uk/ac/osswatch/simal/service/jena/JenaOrganisationService.java Fri May 21 09:49:45 2010
@@ -92,8 +92,7 @@
                                Foaf.ORGANIZATION);
                Set<IOrganisation> orgs = new HashSet<IOrganisation>();
                while (itr.hasNext()) {
-                       String uri = itr.nextStatement().getSubject().getURI();
-                       orgs.add(new Organisation(model.getResource(uri)));
+                       orgs.add(new 
Organisation(itr.nextStatement().getSubject()));
                }
                return orgs;
        }

--
You received this message because you are subscribed to the Google Groups "Simal 
Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/simal-commits?hl=en.

Reply via email to