Predicate functionSymbol = ((ImmutableFunctionalTerm) term).getFunctionSymbol(); if (functionSymbol instanceof DatatypePredicate) return functionSymbol.getExpectedBaseType(0);
if (functionSymbol.getExpectedBaseType(0) .isA(typeFactory.getUnsupportedDatatype())) { throw new RuntimeException("Unsupported type in the query: "