fix for faux data property ranges (#357)
Co-authored-by: Georgy Litvinov <georgy.litvinov@tib.eu>
This commit is contained in:
parent
7d84e61003
commit
a7215cc932
1 changed files with 8 additions and 1 deletions
|
@ -90,6 +90,7 @@ public class FauxPropertyRetryController extends BaseEditController {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class EpoPopulator {
|
private static class EpoPopulator {
|
||||||
|
private static final String LITERAL = "http://www.w3.org/2000/01/rdf-schema#Literal";
|
||||||
private final VitroRequest req;
|
private final VitroRequest req;
|
||||||
private final ServletContext ctx;
|
private final ServletContext ctx;
|
||||||
private final WebappDaoFactory wadf;
|
private final WebappDaoFactory wadf;
|
||||||
|
@ -325,7 +326,13 @@ public class FauxPropertyRetryController extends BaseEditController {
|
||||||
if (rangeUri == null) {
|
if (rangeUri == null) {
|
||||||
Option option = new Option();
|
Option option = new Option();
|
||||||
option.setValue("");
|
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);
|
option.setSelected(true);
|
||||||
list.add(option);
|
list.add(option);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue