From: Tomasz P. <tom...@gm...> - 2012-09-24 12:41:40
|
Hello again I tried to build some algebra programmatically but I failed miserably :) Could you please as an example help me with expressing the below SPARQL in Algebra API? SELECT ?item { OPTIONAL { ?item a ex:someClass . } OPTIONAL { ?item a ex:someOtherClass . } ?item foaf:name ?itemName FILTER( langMatches( lang(?itemName), "en" )) } This should give me enough insight to get up to speed with the API. Thanks, Tom On Sat, Sep 22, 2012 at 7:02 PM, Tomasz Pluskiewicz <tom...@gm...> wrote: > Also are there any introductory examples on creating SPARQL Algebra. > It could be the way to go for my initially. Are there many scenarios > when it would be impossible to convert it to a query? > > Tom > > On Sat, Sep 22, 2012 at 11:30 AM, Tomasz Pluskiewicz > <tom...@gm...> wrote: >> Thanks Rob >> >> I could look into it. Please point me int the right direction in the >> code where the internal API is located. >> >> Tom >> >> On Fri, Sep 21, 2012 at 10:26 PM, Rob Vesse <rv...@do...> wrote: >>> Hey Tom >>> >>> Right now it's somewhat limited, you can build the algebra >>> programmatically and try and convert it back to a query with the AsQuery() >>> method but that isn't guaranteed to work (some algebras can't be converted >>> back into queries). Otherwise you have to generate a string and then >>> parse it. >>> >>> Most of the SparqlQuery API is protected internal/private, I have a To Do >>> item to add a public fluent style API for building queries that I will >>> likely do for the next release if that helps. I/you can start building >>> that out in a feature branch if that would solve your issue? >>> >>> Rob >>> >>> On 9/21/12 11:39 AM, "Tomasz Pluskiewicz" <tom...@gm...> >>> wrote: >>> >>>>Hi >>>> >>>>Please tell me what are the options for building SPARQL >>>>programatically with dotNetRDF? Is there any such API? >>>> >>>>Regards, >>>>Tom >>>> >>>>-------------------------------------------------------------------------- >>>>---- >>>>Got visibility? >>>>Most devs has no idea what their production app looks like. >>>>Find out how fast your code is with AppDynamics Lite. >>>>http://ad.doubleclick.net/clk;262219671;13503038;y? >>>>http://info.appdynamics.com/FreeJavaPerformanceDownload.html >>>>_______________________________________________ >>>>dotNetRDF-develop mailing list >>>>dot...@li... >>>>https://lists.sourceforge.net/lists/listinfo/dotnetrdf-develop >>> >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Got visibility? >>> Most devs has no idea what their production app looks like. >>> Find out how fast your code is with AppDynamics Lite. >>> http://ad.doubleclick.net/clk;262219671;13503038;y? >>> http://info.appdynamics.com/FreeJavaPerformanceDownload.html >>> _______________________________________________ >>> dotNetRDF-develop mailing list >>> dot...@li... >>> https://lists.sourceforge.net/lists/listinfo/dotnetrdf-develop |