if (!doNotRefreshCoreMetadata) {
refreshCoreMetadata(repository);
}
// Elmo setup.
ElmoModule adminElmoModule = new ElmoModule();
adminElmoModule.setGraph(null); // for TwitLogic.AUTHORITATIVE_GRAPH
adminElmoModule.addConcept(Thing.class);
adminElmoModule.addConcept(ObjectProperty.class); // Dunno why this is necessary, but Elmo logs warnings without it
// TwitLogic-specific classes
adminElmoModule.addConcept(AdministrativeDivision.class);
adminElmoModule.addConcept(Agent.class);
adminElmoModule.addConcept(City.class);
adminElmoModule.addConcept(Country.class);
adminElmoModule.addConcept(Document.class);
adminElmoModule.addConcept(Feature.class);
adminElmoModule.addConcept(Graph.class);
adminElmoModule.addConcept(Image.class);
adminElmoModule.addConcept(MicroblogPost.class);
adminElmoModule.addConcept(Neighborhood.class);
adminElmoModule.addConcept(Point.class);
adminElmoModule.addConcept(PointOfInterest.class);
adminElmoModule.addConcept(SpatialThing.class);
adminElmoModule.addConcept(UserAccount.class);
adminElmoModule.addConcept(org.openrdf.concepts.rdfs.Class.class);
elmoManagerFactory
= new SesameManagerFactory(adminElmoModule, repository);
elmoManagerFactory.setQueryLanguage(QueryLanguage.SPARQL);
elmoManagerFactory.setInferencingEnabled(false);