graph.deny(document1, versionRel,document2);
Resource lib = getLib(graph, document1);
if (lib != null) {
Resource relation = graph.getPossibleObject(lib, doc.HasLibraryRelation);
String type= graph.getPossibleRelatedValue(lib, doc.HasVersionType);
graph.deny(document1, versionRel,document2);
Resource lib = getLib(graph, document1);
if (lib != null) {
Resource relation = graph.getPossibleObject(lib, doc.HasLibraryRelation);
String type= graph.getPossibleRelatedValue(lib, doc.HasVersionType);