From 30855a60a5d40870e2b6a6b21a4480dcc54373cf Mon Sep 17 00:00:00 2001 From: hjkhjk54 Date: Fri, 6 Jan 2012 17:38:50 +0000 Subject: [PATCH] NIHVIVO-3357- updating per Brian Lowe's instructions, commenting out portion that would add all subclasses of owl:Thing in case property has no range. --- .../mannlib/vitro/webapp/dao/jena/VClassDaoJena.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/dao/jena/VClassDaoJena.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/dao/jena/VClassDaoJena.java index 2c953880e..cdc1221a4 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/dao/jena/VClassDaoJena.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/dao/jena/VClassDaoJena.java @@ -730,7 +730,9 @@ public class VClassDaoJena extends JenaBaseDao implements VClassDao { } if (superVclass != null) { vClasses.add(superVclass); - String isInferencing = getWebappDaoFactory().getProperties().get("infersTypes"); + //Commenting out this section to prevent all subclasses of owl:Thing + //returned if range is owl:Thing, refer to NIHVIVO-3357 + /* String isInferencing = getWebappDaoFactory().getProperties().get("infersTypes"); // if this model infers types based on the taxonomy, adding the subclasses will only // waste time for no benefit PelletListener pl = getWebappDaoFactory().getPelletListener(); @@ -743,7 +745,7 @@ public class VClassDaoJena extends JenaBaseDao implements VClassDao { if (vClass != null) vClasses.add(vClass); } - } + } */ } } }