Hi Dhaval,

Do you get a specific error when attempting to load the N-triple files ?

Best Regards
Hugh Williams
Professional Services
OpenLink Software
Web: http://www.openlinksw.com
Support: http://support.openlinksw.com
Forums: http://boards.openlinksw.com/support
Twitter: http://twitter.com/OpenLink

On 5 Oct 2009, at 15:34, Dhaval Thakker wrote:

Hi,
I have been trying to load few NT (N-Triple files) using virtuoso API with the following code:

===
String virtuosoBaseDir ;
String virtuosoWebServerPath ;
String file;
VirtGraph myGraph = new VirtGraph (graphname,url, "dba", "dba");

            try
            {

                String formatType = "N-TRIPLE";
myGraph.read((virtuosoWebServerPath + file), formatType);
           }

==

The above code doesnt work. however the same code works if I convert the NT file to rdf/xml and change the formatType to "RDF/ XML" and program loads the file perfectly fine. I have checked Jena's api and they do indeed refer to the NT files as "N-TRIPLE" format type so why doent virtuoso load it?

any hints?

Thanks


--
Regards

Dhaval Thakker
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to