Model model = ((JenaSimalRepository) getRepository()).getModel();
StmtIterator itr = model.listStatements(null, RDF.type,
Foaf.ORGANIZATION);
Set<IOrganisation> orgs = new HashSet<IOrganisation>();
while (itr.hasNext()) {
orgs.add(new Organisation(itr.nextStatement().getSubject()));
}
return orgs;
}