diff --git a/src/edu/cornell/mannlib/vitro/webapp/web/templatemodels/individual/IndividualTemplateModel.java b/src/edu/cornell/mannlib/vitro/webapp/web/templatemodels/individual/IndividualTemplateModel.java index 8b59684b..8d6c9eea 100644 --- a/src/edu/cornell/mannlib/vitro/webapp/web/templatemodels/individual/IndividualTemplateModel.java +++ b/src/edu/cornell/mannlib/vitro/webapp/web/templatemodels/individual/IndividualTemplateModel.java @@ -19,6 +19,7 @@ import edu.cornell.mannlib.vitro.webapp.controller.freemarker.UrlBuilder.ParamMa import edu.cornell.mannlib.vitro.webapp.controller.freemarker.UrlBuilder.Route; import edu.cornell.mannlib.vitro.webapp.controller.visualization.VisualizationFrameworkConstants; import edu.cornell.mannlib.vitro.webapp.dao.WebappDaoFactory; +import edu.cornell.mannlib.vitro.webapp.dao.jena.ModelContext; import edu.cornell.mannlib.vitro.webapp.dao.jena.SimpleOntModelSelector; import edu.cornell.mannlib.vitro.webapp.dao.jena.WebappDaoFactorySDB; @@ -45,15 +46,7 @@ public class IndividualTemplateModel extends BaseIndividualTemplateModel { Map qrData = new HashMap(); - // BJL23 - Apparently this needs a special DAO factory because the - // normal one (usually) filters the contact info. - // We don't want to use getAssertionsWebappDaoFactory() - that will - // reduce load scalability and miss out on data in different named - // graphs. Instead, we will make a DAO factory from the main - // model and dataset associated with the request. - WebappDaoFactory wdf = new WebappDaoFactorySDB( - new SimpleOntModelSelector( - vreq.getJenaOntModel()),vreq.getDataset()); + WebappDaoFactory wdf = vreq.getUnfilteredWebappDaoFactory(); Collection firstNames = wdf.getDataPropertyStatementDao().getDataPropertyStatementsForIndividualByDataPropertyURI(individual, FOAF + "firstName"); Collection lastNames = wdf.getDataPropertyStatementDao().getDataPropertyStatementsForIndividualByDataPropertyURI(individual, FOAF + "lastName");