Package org.jrdf.writer.mem

Examples of org.jrdf.writer.mem.MemBlankNodeRegistryImpl


public class MemRdfXmlWriter implements RdfWriter {
    private RdfXmlWriter rdfXmlWriter;

    public MemRdfXmlWriter() {
        rdfXmlWriter = new RdfXmlWriter(new MemBlankNodeRegistryImpl(), new RdfNamespaceMapImpl());
    }
View Full Code Here


    protected MapFactory getMapFactory() {
        return new MemMapFactory();
    }

    protected BlankNodeRegistry getBlankNodeRegistry() {
        return new MemBlankNodeRegistryImpl();
    }
View Full Code Here

            throw new RuntimeException(e);
        }
    }

    private static void tryWriteRdfXml(File file, Graph graph) throws Exception {
        final BlankNodeRegistry nodeRegistry = new MemBlankNodeRegistryImpl();
        final RdfNamespaceMap map = new RdfNamespaceMapImpl();
        final RdfWriter writer = new RdfXmlWriter(nodeRegistry, map);
        final OutputStream fileOutputStream = new FileOutputStream(file);
        try {
            writer.write(graph, fileOutputStream);
View Full Code Here

TOP

Related Classes of org.jrdf.writer.mem.MemBlankNodeRegistryImpl

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.