From a7215cc932d1d828c68ff7d193e269b24bcdc56c Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Tue, 24 Jan 2023 12:54:31 +0100 Subject: [PATCH] fix for faux data property ranges (#357) Co-authored-by: Georgy Litvinov --- .../controller/edit/FauxPropertyRetryController.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/api/src/main/java/edu/cornell/mannlib/vitro/webapp/controller/edit/FauxPropertyRetryController.java b/api/src/main/java/edu/cornell/mannlib/vitro/webapp/controller/edit/FauxPropertyRetryController.java index ee731e135..ae59726f8 100644 --- a/api/src/main/java/edu/cornell/mannlib/vitro/webapp/controller/edit/FauxPropertyRetryController.java +++ b/api/src/main/java/edu/cornell/mannlib/vitro/webapp/controller/edit/FauxPropertyRetryController.java @@ -90,6 +90,7 @@ public class FauxPropertyRetryController extends BaseEditController { } private static class EpoPopulator { + private static final String LITERAL = "http://www.w3.org/2000/01/rdf-schema#Literal"; private final VitroRequest req; private final ServletContext ctx; private final WebappDaoFactory wadf; @@ -325,7 +326,13 @@ public class FauxPropertyRetryController extends BaseEditController { if (rangeUri == null) { Option option = new Option(); option.setValue(""); - option.setBody("untyped (rdfs:Literal)"); + option.setBody("Untyped"); + option.setSelected(true); + list.add(option); + } else if (rangeUri.equals(LITERAL)) { + Option option = new Option(); + option.setValue(rangeUri); + option.setBody("Literal"); option.setSelected(true); list.add(option); } else {