Uploaded image for project: 'Apache Any23 (Retired)'
  1. Apache Any23 (Retired)
  2. ANY23-234

No writer factory available for RDF format N-Quads (mimeTypes=text/x-nquads; ext=nq)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.1
    • nquads
    • Windows 8

    Description

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            parklize Guangyuan Piao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: