*/
public static RDFNode parseRDFJSONNode(Value value) {
RDFNode object;
if( value instanceof org.openrdf.model.URI ) {
object = new URI(value.stringValue());
} else if( value instanceof BNode ) {
object = new BNode(value.stringValue());
} else {
org.openrdf.model.Literal literal = (org.openrdf.model.Literal)value;
if( literal.getLanguage() != null ) {
object = new Literal(literal.getLabel(), literal.getLanguage());
} else if( literal.getDatatype() != null) {
object = new Literal(literal.getLabel(),new URI(literal.getDatatype().stringValue()));
} else {
object = new Literal(literal.getLabel());
}
}
return object;