Example #1
0
 public LinqToSparqlQuery(IRdfContext context)
 {
     DataContext  = context;
     tripleStore  = null;
     OriginalType = typeof(T);
     parser       = new LinqToSparqlExpTranslator <T>();
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="QueryFactory{T}"/> class.
 /// </summary>
 /// <param name="queryType">the <see cref="LinqToRdf.QueryType"/> of the query.</param>
 /// <param name="context">The <see cref="IRdfContext"/> data context that will track results, connections and instances.</param>
 public QueryFactory(LinqQueryMethod queryType, IRdfContext context)
 {
     QueryType      = queryType;
     DataContext    = context;
     TypeTranslator = new XsdtTypeConverter();
 }