/** * Creates a new writer using the given character space * * @param writer * Writer * @param charSpace * Character space */ public NTriplesWriter(Writer writer, CharSpace charSpace) { super(writer, new NodeFormatterNT(charSpace)); } }
/** * Creates a new tuple writer using the default NTriples node formatter * * @param writer * Writer */ public AbstractLineBasedNodeTupleWriter(Writer writer) { this(writer, new NodeFormatterNT()); }
/** * Creates a new writer using the given character space * * @param writer * Writer * @param charSpace * Character space */ public NQuadsWriter(Writer writer, CharSpace charSpace) { super(writer, new NodeFormatterNT(charSpace)); } }
/** * Creates a new writer * * @param writer * Writer */ public NTriplesWriter(Writer writer) { super(writer, new NodeFormatterNT()); }
/** * Creates a new writer * * @param writer * Writer * @param charSpace * Character space to use */ public NTriplesNodeWriter(Writer writer, CharSpace charSpace) { super(writer, new NodeFormatterNT(charSpace)); }
/** * Output tuples, choosing ASCII or UTF8 See * {@link StreamRDFLib#writer} for ways to create a AWriter object. */ public WriterStreamRDFPlain(AWriter w, CharSpace charSpace) { out = w ; nodeFmt = new NodeFormatterNT(charSpace) ; }
/** * Creates a new writer * * @param writer * Writer */ public NQuadsWriter(Writer writer) { super(writer, new NodeFormatterNT()); }
/** * Creates a new writer using the default NTriples node formatter * * @param writer * Writer */ public AbstractLineBasedQuadWriter(Writer writer) { this(writer, new NodeFormatterNT()); }
/** * Creates a new writer * * @param writer * Writer */ public NQuadsWriter(Writer writer) { super(writer, new NodeFormatterNT()); }
/** Output tuples, choosing ASCII or UTF8 * See {@linkplain StreamRDFLib#writer} for ways to create a AWriter object. */ public WriterStreamRDFTuples(AWriter w, CharSpace charSpace) { out = w ; nodeFmt = new NodeFormatterNT(charSpace) ; }
/** * Creates a new tuple writer using the default NTriples node formatter * * @param writer * Writer */ public AbstractLineBasedNodeTupleWriter(Writer writer) { this(writer, new NodeFormatterNT()); }
/** * Creates a new writer using the default NTriples node formatter * * @param writer * Writer */ public AbstractLineBasedQuadWriter(Writer writer) { this(writer, new NodeFormatterNT()); }
/** * Creates a new tuple writer using the default NTriples node formatter * * @param writer * Writer */ public AbstractNodeWriter(Writer writer) { this(writer, new NodeFormatterNT()); }
/** * Creates a new writer * * @param writer * Writer */ public NTriplesWriter(Writer writer) { super(writer, new NodeFormatterNT()); }
/** * Creates a new writer using the default NTriples node formatter * * @param writer * Writer */ public AbstractLineBasedTripleWriter(Writer writer) { this(writer, new NodeFormatterNT()); }
/** * Creates a new writer using the given character space * * @param writer * Writer * @param charSpace * Character space */ public NQuadsWriter(Writer writer, CharSpace charSpace) { super(writer, new NodeFormatterNT(charSpace)); } }
/** * Creates a new writer * * @param writer * Writer * @param charSpace * Character space to use */ public NTriplesNodeWriter(Writer writer, CharSpace charSpace) { super(writer, new NodeFormatterNT(charSpace)); }
/** * Creates a new writer using the default NTriples node formatter * * @param writer * Writer */ public AbstractLineBasedTripleWriter(Writer writer) { this(writer, new NodeFormatterNT()); }
/** * Creates a new tuple writer using the default NTriples node formatter * * @param writer * Writer */ public AbstractNodeWriter(Writer writer) { this(writer, new NodeFormatterNT()); }
public static String toNTriplesString(Node node) { NodeFormatterNT formatter = new NodeFormatterNT(); AWriter writer = new StringWriterI(); formatter.format(writer, node); String result = writer.toString(); return result; }