adds two methods to retrieve a specific proposal or agreement based on the passed uri
@@ -15,6 +15,14 @@ public class HighlevelProtocols {
.apply(conversationDataset);
}
+ public static Model getAgreement(Dataset conversationDataset, String agreementUri) {
+ return HighlevelFunctionFactory.getAcknowledgedSelection()
+ .andThen(HighlevelFunctionFactory.getModifiedSelection())
+ .andThen(HighlevelFunctionFactory.getAgreementFunction())
+ .apply(conversationDataset)
+ .getNamedModel(agreementUri);
+ }
+
/**
* Calculates all open proposals present in the specified conversation dataset.
* Returns the envelope graph of the proposal with the contents of the proposed
@@ -29,6 +37,14 @@ public class HighlevelProtocols {
.apply(conversationDataset);
}
+ public static Model getProposal(Dataset conversationDataset, String proposalUri) {
+ return HighlevelFunctionFactory.getAcknowledgedSelection()
+ .andThen(HighlevelFunctionFactory.getModifiedSelection())
+ .andThen(HighlevelFunctionFactory.getAgreementFunction())
+ .apply(conversationDataset)
+ .getNamedModel(proposalUri);
+ }
+
/** reveiw and rewrite the JavaDoc descriptions below **/
/**
