private void AddQuadToDataset(Triple quad, string graphName, RDFDataset rdfDataset)
        {
            Literal literal = quad.Object as Literal;
            if (literal != null)
            {
                string datatype = null;
                if (literal.Datatype != null)
                {
                    datatype = literal.Datatype.ToString();
                }

                rdfDataset.AddQuad(
                    GetValue(quad.Subject),
                    GetValue(quad.Predicate),
                    GetValue(literal),
                    datatype,
                    literal.LanguageTag,
                    graphName);
            }
            else
            {
                rdfDataset.AddQuad(
                    GetValue(quad.Subject),
                    GetValue(quad.Predicate),
                    GetValue(quad.Object),
                    graphName);
            }
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="TripleParsedEventArgs"/> class.
 /// </summary>
 public TripleParsedEventArgs(Triple triple, int line)
 {
     Triple = triple;
     Line = line;
 }