fix for faux data property ranges (#357)

Co-authored-by: Georgy Litvinov <georgy.litvinov@tib.eu>
This commit is contained in:
Georgy Litvinov 2023-01-24 12:54:31 +01:00 committed by GitHub
parent 7d84e61003
commit a7215cc932
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {