}
public static RelationshipTuple fromTriple(Triple triple) {
String subject = triple.getSubject().toString();
String predicate = triple.getPredicate().toString();
ObjectNode objectNode = triple.getObject();
if (objectNode instanceof Literal) {
return getLiteral(subject, predicate, (Literal)objectNode);
} else {
return new RelationshipTuple(subject, predicate, objectNode.toString(), false, null, null);
}
}