private void FixedQuery(string endpoint)
        {
            using (var originalStore = new TripleStore())
            {
                var expected = FixedQueryHelper.x(endpoint);

                if (expected == null)
                {
                    Assert.Inconclusive("Empty graph");
                }

                using (var actual = new TripleStore())
                {
                    actual.LoadFromString(
                        StringWriter.Write(expected, new FriendlyJsonLdWriter()),
                        new JsonLdParser());


                    if (!(actual.IsEmpty && expected.IsEmpty))
                    {
                        Assert.AreEqual(
                            Normalize(expected),
                            Normalize(actual.Graphs.Single()));
                    }
                }
            }
        }
Esempio n. 2
0
        private void FixedQuery(string endpoint)
        {
            var expected = FixedQueryHelper.x(endpoint);

            using (var actual = new Graph())
            {
                actual.LoadFromString(
                    StringWriter.Write(expected, new FriendlyRdfXmlWriter()),
                    new RdfXmlParser());

                Assert.AreEqual(
                    expected,
                    actual);
            }
        }