Search in sources :

Example 16 with ContentAssembler

use of org.apache.jena.assembler.assemblers.ContentAssembler in project jena by apache.

the class TestModelAssembler method testContent.

public void testContent() {
    Resource root = resourceInModel("x rdf:type ja:DefaultModel; x ja:initialContent c; c ja:quotedContent A; A P B");
    //        root.getModel().write( System.err, "N3"  );
    Model m = (Model) new FakeModelAssembler().open(new ContentAssembler(), root, Mode.ANY);
    assertIsoModels(modelWithStatements("A P B"), m);
}
Also used : Resource(org.apache.jena.rdf.model.Resource) Model(org.apache.jena.rdf.model.Model) ContentAssembler(org.apache.jena.assembler.assemblers.ContentAssembler)

Aggregations

ContentAssembler (org.apache.jena.assembler.assemblers.ContentAssembler)16 UnknownEncodingException (org.apache.jena.assembler.exceptions.UnknownEncodingException)1 Model (org.apache.jena.rdf.model.Model)1 Resource (org.apache.jena.rdf.model.Resource)1