Package org.openrdf.rio.helpers

Examples of org.openrdf.rio.helpers.BufferedGroupingRDFHandler


    client.deleteConcept(testTopic);
  }

  private void writeModel(Model model, RDFFormat format, OutputStream out) throws RDFHandlerException {

    final RDFHandler writer = new BufferedGroupingRDFHandler(Rio.createWriter(format, out));
    writer.startRDF();
    writer.handleNamespace("rdf", RDF.NAMESPACE);
    writer.handleNamespace("rdfs", RDFS.NAMESPACE);
    writer.handleNamespace("skos", SKOS.NAMESPACE);
    writer.handleNamespace("dc", DC.NAMESPACE);
    writer.handleNamespace("primal", PRIMAL.NAMESPACE);

    for (final Statement st : model) {
      writer.handleStatement(st);
    }
    writer.endRDF();
  }
View Full Code Here

TOP

Related Classes of org.openrdf.rio.helpers.BufferedGroupingRDFHandler

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.