Ejemplo n.º 1
0
        /// <summary>
        /// Writes the RDF is proper serialization.
        /// </summary>
        protected override void WriteRdf(StreamWriter writer, IEnumerable <Triple> triples)
        {
            IRdfHandler h = new WriteThroughHandler(new NTriples11Formatter(), writer);

            h.StartRdf();

            foreach (var triple in triples)
            {
                h.HandleTriple(triple);
            }

            h.EndRdf(true);
        }
Ejemplo n.º 2
0
 protected override void StartRdfInternal()
 {
     _handler = new WriteThroughHandler(_formatterType, new StringWriter(_buffer));
     _handler.StartRdf();
 }