Package com.github.jsonldjava.impl

Examples of com.github.jsonldjava.impl.JenaTripleCallback


public class JSONLDFormatter  implements Formatter {

  @Override
  public Model format(String raw) throws IOException {
    Object json = JSONUtils.fromString(raw);
    JenaTripleCallback callback = new JenaTripleCallback();
    try {
      JSONLD.toRDF(json, callback);
    } catch (JSONLDProcessingError e) {
      throw new IOException(e);
    }
    return callback.getJenaModel();
  }
View Full Code Here

TOP

Related Classes of com.github.jsonldjava.impl.JenaTripleCallback

Copyright © 2018 www.massapicom. 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.