Re: Can Jena or linked data in general used as a "service registry"?

2016-08-22 Thread Paul Houle
It's pretty common to see "RDF-to-X" or "X-to-Y" bridges that address the problem of converting one data structure to another, for instance, you have a Java object and serialize it to RDF or you have RDF data and you populate a Java class with it. If you consider just "Java" of course you can

Re: union graph

2016-08-22 Thread Andy Seaborne
You could do a query to find the graphs then use DynamicDatasets. For TDB, and using Fuseki, that's what using FROM, FROM NAMED is doing. Andy On 22/08/16 15:28, Rob Vesse wrote: Not in a single query You would need to have first performed the construct query to get an in memory model

Re: union graph

2016-08-22 Thread Martynas Jusevičius
What is the difference between ?g1 and ?g2? You use different triple patterns within graph blocks, but based on your xyz:good predicates, it could be that ?g1 == ?g2. In that case, do you even need two graph patterns? Maybe start with explaining your use case instead of explaining your query? On

Re: union graph

2016-08-22 Thread Rob Vesse
Not in a single query You would need to have first performed the construct query to get an in memory model and then execute a further query against that model Rob On 22/08/2016 14:59, "Chris Jones" wrote: Yes, that's what I just said. But I don't know how to do a

Re: union graph

2016-08-22 Thread A. Soroka
To my knowledge, you can't: http://www.cray.com/blog/extending-sparql-construct-sub-queries/ It would be a new extension. I don't know whether Jena ARQ (the extended language containing SPARQL that Jena implements) contains it. --- A. Soroka The University of Virginia Library > On Aug 22,

Re: union graph

2016-08-22 Thread Chris Jones
Yes, that's what I just said. But I don't know how to do a SELECT against the results of a CONSTRUCT. Chris On 8/22/2016 7:44 AM, A. Soroka wrote: Perhaps https://www.w3.org/TR/sparql11-query/#subqueries ? On Aug 22, 2016, at 9:40 AM, Chris Jones wrote: Is there a way to

Re: union graph

2016-08-22 Thread Chris Jones
On 8/22/2016 7:33 AM, Jean-Marc Vanel wrote: Try a FILTER clause involving ?g1 and ?g2 . I don't see how that would be any better; I'd still be specifying two separate graphs ?g1 and ?g2, instead of a union graph ?g. Is there something I don't understand? there is also the unionGraph but

Re: union graph

2016-08-22 Thread A. Soroka
Perhaps https://www.w3.org/TR/sparql11-query/#subqueries ? --- A. Soroka The University of Virginia Library > On Aug 22, 2016, at 9:40 AM, Chris Jones wrote: > > On 8/22/2016 7:33 AM, Jean-Marc Vanel wrote: >> Try a FILTER clause involving ?g1 and ?g2 . > > I don't see how

Re: union graph

2016-08-22 Thread Jean-Marc Vanel
Try a FILTER clause involving ?g1 and ?g2 . there is also the unionGraph but it takes everything in all named graphs . 2016-08-22 15:21 GMT+02:00 Chris Jones : > Hi All, > > Is it possible to run a query against the union of a bunch of named > graphs, where each named graph

union graph

2016-08-22 Thread Chris Jones
Hi All, Is it possible to run a query against the union of a bunch of named graphs, where each named graph is selected by some logic? As an example, I have something like this: select ?attr ?value ?attrName where { graph ?g1 { ?subj ?attr ?value . } graph ?g2 {

Re: Jena Rules Definition

2016-08-22 Thread A. Soroka
You can use Jena's command line tool 'riot' to convert: https://jena.apache.org/documentation/io/#command-line-tools --- A. Soroka The University of Virginia Library > On Aug 22, 2016, at 4:54 AM, lookman sanni wrote: > > Awesome ! > > The reason why I am using XML/RDF

Re: Jena Rules Definition

2016-08-22 Thread Dave Reynolds
Hi, The problem is with your RDF file. You have given the values of the aa:processedIn properties as strings instead of resources. To see this serialize as ttl. Better still, only use ttl and ignore rdf/xml! Using a corrected RDF file: http://www.w3.org/1999/02/22-rdf-syntax-ns#;