Examples of MemMapFactory


Examples of org.jrdf.collection.MemMapFactory

    protected Graph getGraph() {
        return FACTORY.getNewGraph();
    }

    protected MapFactory getMapFactory() {
        return new MemMapFactory();
    }
View Full Code Here

Examples of org.jrdf.collection.MemMapFactory

     * bNodes and literals.  This create an in memory blank node factory which may exhaust available memory.
     *
     * @param graphElementFactory A GraphElementFactory.
     */
    public RdfXmlParser(GraphElementFactory graphElementFactory) {
        this(graphElementFactory, new MemMapFactory());
    }
View Full Code Here

Examples of org.jrdf.collection.MemMapFactory

    public static void main(String[] args) throws Exception {
        URL url = getDocumentURL(args);
        InputStream in = getInputStream(url);
        try {
            final Graph jrdfMem = JRDF_FACTORY.getNewGraph();
            Parser parser = new GraphRdfXmlParser(jrdfMem, new MemMapFactory());
            parser.parse(in, toEscapedString(url));
            ClosableIterable<Triple> triples = jrdfMem.find(ANY_SUBJECT_NODE, ANY_PREDICATE_NODE, ANY_OBJECT_NODE);
            try {
                for (Triple triple : triples) {
                    System.out.println("Graph: " + triple);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.