any23-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lewis John McGibbney (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ANY23-234) No writer factory available for RDF format N-Quads (mimeTypes=text/x-nquads; ext=nq)
Date Thu, 28 Aug 2014 16:54:09 GMT

    [ https://issues.apache.org/jira/browse/ANY23-234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14113956#comment-14113956
] 

Lewis John McGibbney commented on ANY23-234:
--------------------------------------------

I can reproduce this with every writer in the code I have.
You can see my code here
https://github.com/eurocent/sentimentCrawler/blob/master/crawler/src/main/java/org/eurosentiment/sentiment/crawler/Runner.java#L156

I'm revisiting this tonight so hopefully I can debug further down the rabbit hole and find
out why I am getting the "...org.openrdf.rio.UnsupportedRDFormatException: No writer factory
available for RDF format "

> 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)

Mime
View raw message