Examples of followRel()


Examples of org.springframework.hateoas.client.hc.CommonsHttpClient4Browser.followRel()

   * @param currentContext to start from, must have a describedBy rel.
   */
  public void identifyGoal(String goalUri, URI currentContext) {
    // TODO support other representations, e.g. json-ld
    Browser rdfBrowser = new CommonsHttpClient4Browser(currentContext);
    rdfBrowser.followRel("describedBy");
    Browsable rdfDescription = rdfBrowser.getCurrentResource();
    Object o = rdfDescription.getParsedContent();
    if (o instanceof Model) {
      Model model = (Model) o;
      Resource goal = model.createResource(goalUri);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.