Beispiel #1
0
        public void ReasoningPOC()
        {
            using var g = new GraphEngine.Graph();
            g.LoadFromEmbeddedResource("GraphEngine.Tests.Resources.Examples.FibonacciSequenceUntyped.ttl, GraphEngine.Tests");

            var s = g.GetUriNode(new Uri("http://example.com/s"));

            var expression = Expression.Parse(s).LinqExpression;

            Console.WriteLine(expression.GetDebugView());

            var lambda = LinqExpression.Lambda(expression);
            var actual = lambda.Compile().DynamicInvoke();

            Assert.AreEqual(21L, actual);
        }