Ваше направление было неправильным.
select distinct *
where {
?x dbpedia-owl:wikiPageRedirects <http://dbpedia.org/resource/Paris>
}
**Here if you use Double then you can easily get int value **
package com.example.demo;
public class TEST {
public static void main(String[] args) {
Training4 obj = (x) -> x.intValue();
System.out.println(obj.constrmeth(10.5));
}
}
interface Training4 {
public Integer constrmeth(Double db);
}