From: Tomasz P. <tom...@gm...> - 2012-12-05 22:07:18
|
Hi I have just finished the core implementation of the fluent API for SPARQL 1.0. Much of SPARQL 1.1 is already done but some more work is needed. Also I have created a crude tester app, which sits a separate branch and can be downloaded from [1] The left part must be a method body which will return a IQueryBuilder object. Any of the wiki [2] examples can be used by adding return keyword and removing the BuildQuery() call. For example return QueryBuilder.Select("name", "mbox") .Where(tpb => tpb.Subject("x").PredicateUri("foaf:name").Object("name") .Subject("x").PredicateUri("foaf:mbox").Object("mbox")); For valid C# code the right part of the window will show the SPARQL query and exception stack otherwise. By the way this reveals some issues with SparqlQuery#ToString(), which I will report later (see the Construct().Where() example from wiki). Thanks Tom [1] https://bitbucket.org/romanticweb/dotnetrdf/downloads [2] https://bitbucket.org/romanticweb/dotnetrdf/wiki |