List of usage examples for org.apache.commons.rdf.jsonldjava JsonLdRDF JsonLdRDF
public JsonLdRDF()
From source file:org.apache.commons.rdf.integrationtests.JSONLDParsingTest.java
private void jsonldParse(URL url) throws JsonParseException, IOException, JsonLdError { Object aliceJson = JsonUtils.fromURL(url, JsonUtils.getDefaultHttpClient()); JsonLdOptions options = new JsonLdOptions(); options.setBase(url.toExternalForm()); RDFDataset ds = (RDFDataset) JsonLdProcessor.toRDF(aliceJson); JsonLdGraph graph = new JsonLdRDF().asGraph(ds); checkGraph(graph);//w w w. j a v a 2s. c o m }