public AbstractNode getSubject() {
Resource subject = statement.getSubject();
if (subject instanceof BNode)
return new BlankNode(((BNode) subject).getID());
else if (subject instanceof URI)
return new URINode(((URI) subject).getURI());
else
return null;
}