You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@any23.apache.org by "Guangyuan Piao (JIRA)" <ji...@apache.org> on 2014/08/30 01:09:53 UTC

[jira] [Closed] (ANY23-234) No writer factory available for RDF format N-Quads (mimeTypes=text/x-nquads; ext=nq)

     [ https://issues.apache.org/jira/browse/ANY23-234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guangyuan Piao closed ANY23-234.
--------------------------------

    Resolution: Fixed

> No writer factory available for RDF format N-Quads (mimeTypes=text/x-nquads; ext=nq)
> ------------------------------------------------------------------------------------
>
>                 Key: ANY23-234
>                 URL: https://issues.apache.org/jira/browse/ANY23-234
>             Project: Apache Any23
>          Issue Type: Bug
>          Components: nquads
>         Environment: Windows 8
>            Reporter: Guangyuan Piao
>              Labels: any23, nquads, writer
>             Fix For: 1.1
>
>
> Exception in thread "main" org.openrdf.rio.UnsupportedRDFormatException: No writer factory available for RDF format N-Quads (mimeTypes=text/x-nquads; ext=nq)
> I got the exception with using nquads writer, is it possible to know why the exception happens or how to use nquads writer???
> HTTPClient httpClient = runner.getHTTPClient();
>             DocumentSource source = new HTTPDocumentSource(httpClient,"http://guangyuan.dothome.co.kr");
>             ByteArrayOutputStream out = new ByteArrayOutputStream();
> //            TripleHandler handler = new NTriplesWriter(out);
>             TripleHandler handler = new NQuadsWriter(out);
>             runner.extract(source, handler);
>             handler.close();
>             String n3 = out.toString("UTF-8");
> System.out.println(n3);



--
This message was sent by Atlassian JIRA
(v6.2#6252)