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 bool HandleTripleInternal(Triple t)
 {
     return(_handler.HandleTriple(t));
 }