From: Mishel U. V. <dmu...@eu...> - 2016-10-24 12:47:38
|
Hello, I’m trying to connect in remote to VIRTUOSO, for do this, I'm following the VIRTUOSO DOCUMENTATION: http://www.openlinksw.com/dataspace/doc/%20dav/wiki/Main/VirtSesame2Provider#Sesame 4 Sample Program The problem it’s the documentations talks about the connection through SESAME to a local VIRTUOSO, but I want to do that for a remote connection. So, my problem it’s the URI, I have in my code: public static final String path = "jdbc:virtuoso://ARemotePath:8890"; but i tried also public static final String path = "jdbc:openlink://ARemotePath:8890"; but isn't works. The error is showed in eclipse: Connection to jdbc:virtuoso://aRemotePath:8890 is FAILED. org.openrdf.repository.RepositoryException: virtuoso.jdbc3.VirtuosoException: Virtuoso Communications Link Failure (timeout) : Connection to the server lost What I'm trying to do it's upload a TURTLE file, and then make a SELECT. public static final String path = "jdbc:virtuoso://ARemotePath:8890"; Repository repository = new VirtuosoRepository(path, "dba", "dba"); repository.initialize(); RepositoryConnection con = null; try { con = repository.getConnection(); con.setAutoCommit(true); InputStream is = VirtuosoPruebas.class.getResourceAsStream("datos.ttl"); con.add(is, "http://MLapps.com/", RDFFormat.TURTLE); query = "SELECT * WHERE {?s ?p ?o}"; results = doTupleQuery(con, query); } catch (Exception e) { e.printStackTrace(); } Thanks for your attention |