typedLists.add(nextStatement.getSubject());
try {
consumer.handleStatement(vf.createStatement(
nextStatement.getSubject(), RDF.TYPE, RDF.LIST));
} catch (RDFHandlerException e) {
throw new OWLParserException(e);
}
LOG.debug("Implicitly typing list={}", nextStatement);
}
} else if (nextStatement.getPredicate().equals(RDF.TYPE)
&& nextStatement.getObject().equals(RDF.LIST)) {
if (!typedLists.contains(nextStatement.getSubject())) {
LOG.debug("Explicit list type found={}", nextStatement);
typedLists.add(nextStatement.getSubject());
} else {
LOG.debug(
"duplicate rdf:type rdf:List statements found={}",
nextStatement);
}
}
try {
consumer.handleStatement(nextStatement);
} catch (RDFHandlerException e) {
throw new OWLParserException(e);
}
}