Example usage for org.apache.commons.rdf.rdf4j RDF4J RDF4J

List of usage examples for org.apache.commons.rdf.rdf4j RDF4J RDF4J

Introduction

In this page you can find the example usage for org.apache.commons.rdf.rdf4j RDF4J RDF4J.

Prototype

public RDF4J() 

Source Link

Document

Construct an RDF4J .

Usage

From source file:org.apache.commons.rdf.integrationtests.JSONLDParsingTest.java

private void rdf4jParse(URL url) throws IOException {
    Model model;//  w  ww . j  av  a  2  s  .c  o m
    try (InputStream in = url.openStream()) {
        model = Rio.parse(in, url.toExternalForm(), RDFFormat.JSONLD);
    }
    RDF4JGraph graph = new RDF4J().asGraph(model);
    checkGraph(graph);
}