Package org.dbpedia.downloader.connection

Examples of org.dbpedia.downloader.connection.JDBC


        String sparul = "INSERT IN GRAPH <" + Global.options.get("graphURI") + "> { \n  " + pattern + "}";
//            String sparul = "INSERT IN GRAPH <http://dbpedia.org> \n" +
//                    "\n" +
//                    "{ <http://dbpedia.org/resource/Johann_Gottfried_Galle> <http://dbpedia.org/property/wikilink> \"Hello\" } ";

        JDBC jdbc = JDBC.getDefaultConnection();

        String virtuosoPl = "sparql " + sparul + "";

        //jdbc.exec(virtuosoPl);
        PreparedStatement stmt = jdbc.prepare(virtuosoPl);
        return jdbc.executeStatement(stmt, new String[]{});
    }
View Full Code Here


//            String sparul = "INSERT IN GRAPH <" + Global.options.get("graphURI") + "> { \n  " + pattern + "}";
//            String sparul = "INSERT IN GRAPH <http://dbpedia.org> \n" +
//                    "\n" +
//                    "{ <http://dbpedia.org/resource/Johann_Gottfried_Galle> <http://dbpedia.org/property/wikilink> \"Hello\" } ";

        JDBC jdbc = JDBC.getDefaultConnection();

        String virtuosoPl = "sparql " + sparul + "";

        PreparedStatement stmt = jdbc.prepare(virtuosoPl);
        return jdbc.executeStatement(stmt, new String[]{});
    }
View Full Code Here

TOP

Related Classes of org.dbpedia.downloader.connection.JDBC

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.