Open Seondong opened 8 years ago
@Seondong: What is the version of the Virtuoso Server , Virtuoso Jena Provider and Virtuoso JDBC Driver being used, which can be obtained by running the commands:
virtuoso-t -?
java -jar virt_jena3.jar
java -jar virtjdbc3.jar
Also, when making the Connection with the Virtuoso Jena Provider are you specifying the charset=UTF-8
option in the connect string such that special chars like the emoticon etc can be correct handles as strings ? See:
Currently, I setup virtuoso 7.2.2 version on my linux server, and run java program from my Windows-PC. In pom.xml, I put dependencies of jena-core 2.12, jena-arq 2.12 so I added virt_jena 2.jar and virtjdbc4.jar as a library.
Virtuoso Version: 7.2.2
sundong@dmserver6:~/virtuoso-opensource-7.2.2/bin$ ./virtuoso-t -?
Virtuoso Open Source Edition (Column Store) (multi threaded)
Version 7.2.2.3215-pthreads as of Jan 28 2016
Compiled for Linux (x86_64-unknown-linux-gnu)
In which directory should I run java -jar virt_jena3.jar
command? In my linux server, it gives me an error Error: Unable to access jarfile virt_jena3.jar
To make a connection, I am using the following code.
VirtGraph set = new VirtGraph(INPUT_IRI, HOST, USERNAME, PASSWORD);
HOST = "jdbc:virtuoso://xxx.xxx.xxx.xxx:1111/charset=UTF-8/log_enable=2";
@Seondong: You said you put the jar files in the pom.xml dependancies location on the Windows PC, so you run the java -jar ...
command from there ...
This issue is about
and sharing same struggle with this post, and this post but no one gives the clear solution on this problem.
Here is my problem. I'm using SPARQL query to extract instances which is valid. But using this query, I can also get instances which name contains emoticon(e.g. http://ko.dbpedia.org/resource/๐ผ), and it gives me an error while iterating over the query resultsets. How can I escape from emojis?
Query
Java code (Error in line 92 here -> while(results.hasNext()){
Console (Error message):
My Virtuoso Endpoint gives me a result including those invalid instances, , however the code collapses when the iterator meets invalid resources (my guess).
I read this previous issue and he also struggled with the similar problem. It gives me a hint, but I couldn't solve mine yet.