Examples of endRDF()


Examples of com.github.jsonldjava.sesame.SesameJSONLDWriter.endRDF()

        final RDFWriter jsonldWriter = new SesameJSONLDWriter(writer);
        jsonldWriter.startRDF();
        for (final Statement nextStatement : statements) {
            jsonldWriter.handleStatement(nextStatement);
        }
        jsonldWriter.endRDF();

        // System.out.println(writer.toString());

        return new ByteArrayInputStream(writer.toString().getBytes(Charset.forName("UTF-8")));
    }
View Full Code Here

Examples of net.fortytwo.flow.rdf.SailInserter.endRDF()

            inserter.startRDF();

            try {
                parser.parse(is, baseUri);
            } catch (Exception e) {
                inserter.endRDF();
                sc.close();
                throw e;
            }

            inserter.endRDF();
View Full Code Here

Examples of net.fortytwo.flow.rdf.SailInserter.endRDF()

                inserter.endRDF();
                sc.close();
                throw e;
            }

            inserter.endRDF();
            sc.commit();
        } finally {
            sc.rollback();
            sc.close();
        }
View Full Code Here

Examples of net.fortytwo.flow.rdf.SailInserter.endRDF()

            inserter.startRDF();

            try {
                parser.parse(is, baseUri);
            } catch (Exception e) {
                inserter.endRDF();
                sc.close();
                throw e;
            }

            inserter.endRDF();
View Full Code Here

Examples of net.fortytwo.flow.rdf.SailInserter.endRDF()

                inserter.endRDF();
                sc.close();
                throw e;
            }

            inserter.endRDF();
            sc.commit();
        } finally {
            sc.rollback();
            sc.close();
        }
View Full Code Here

Examples of org.openrdf.rio.RDFHandler.endRDF()

    writer.handleNamespace("primal", PRIMAL.NAMESPACE);

    for (final Statement st : model) {
      writer.handleStatement(st);
    }
    writer.endRDF();
  }

  private static PrimalAccount getPrimalAccount() throws Exception {
    // Read properties file.
    final Properties properties = new Properties();
View Full Code Here

Examples of org.openrdf.rio.RDFWriter.endRDF()

            rdf.handleNamespace(ns.getKey(), ns.getValue());
          }
          for (Statement st : model) {
            rdf.handleStatement(st);
          }
          rdf.endRDF();
        }
        catch (RDFHandlerException e) {
          if (e.getCause() instanceof IOException) {
            throw (IOException)e.getCause();
          }
View Full Code Here

Examples of org.openrdf.rio.RDFWriter.endRDF()

          writer.handleNamespace(ns.getKey(), ns.getValue());
        }
        for (Statement st : config) {
          writer.handleStatement(st);
        }
        writer.endRDF();
      }
      catch (UnsupportedRDFormatException e) {
        throw new StoreConfigException(e);
      }
      catch (RDFHandlerException e) {
View Full Code Here

Examples of org.openrdf.rio.RDFWriter.endRDF()

      writer.startRDF();
      for (Statement st : statements) {
        writer.handleStatement(st);
      }
      writer.endRDF();
    }
    finally {
      export.close();
    }
View Full Code Here

Examples of org.openrdf.rio.RDFWriter.endRDF()

      while (result.hasNext()) {
        Statement st = result.next();
        writer.handleStatement(st);
      }

      writer.endRDF();
    }
    catch (StoreException e) {
      logger.error("Query evaluation error", e);
      throw new IOException("Query evaluation error: " + e.getMessage());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.