private String resolve(String value, boolean ignoreRelIri, boolean useVocab) throws MalformedIriException {
if (value == null || value.startsWith(RDF.BNODE_PREFIX)) {
return value;
}
if (value.isEmpty()) {
throw new MalformedIriException("Empty IRI");
}
try {
String mapping = resolveMapping(value, useVocab);
if (mapping != null && mapping.charAt(0) != '@') {
if (mapping.startsWith(RDF.BNODE_PREFIX)) {