From dd02098b50c6181255347302dba1a709290972e7 Mon Sep 17 00:00:00 2001 From: Marco De Salvo Date: Thu, 5 Jan 2017 18:32:25 +0100 Subject: [PATCH] (V1.0.0) FIX Incorrect parsing of quadruples from SQL-based stores; --- RDFSharp/Store/RDFStoreUtilities.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RDFSharp/Store/RDFStoreUtilities.cs b/RDFSharp/Store/RDFStoreUtilities.cs index 98c40046..364d2e5f 100644 --- a/RDFSharp/Store/RDFStoreUtilities.cs +++ b/RDFSharp/Store/RDFStoreUtilities.cs @@ -40,7 +40,7 @@ internal static RDFQuadruple ParseQuadruple(IDataReader fetchedQuadruples) { RDFResource qPredicate = new RDFResource(fetchedQuadruples["Predicate"].ToString()); //SPO-flavour quadruple - if (fetchedQuadruples["TripleFlavor"].Equals(1)) { + if (fetchedQuadruples["TripleFlavor"].ToString().Equals("1")) { RDFResource qObject = new RDFResource(fetchedQuadruples["Object"].ToString()); return new RDFQuadruple(qContext, qSubject, qPredicate, qObject); }