I think for querying across two different datasets you need
federation? Which is done using SERVICE in SPARQL:
https://www.w3.org/TR/sparql11-federated-query/

On Thu, Apr 23, 2020 at 12:09 PM Lorenz Buehmann
<buehm...@informatik.uni-leipzig.de> wrote:
>
> what do you mean by "merge"? What is the result? A proper RDF dataset?
> Then indeed CONSTRUCT. "optional" is **not** a query type, so I don't
> understand what you mean by this.
>
> Please provide some more details, also what "redundant" means.
>
> Also, if you have multiple models, Fuseki setup allows for configuring
> to query the UNION of both
>
> On 23.04.20 12:05, Glenn TheMan wrote:
> > Hi, I am trying to merge two models (with some redundant info) that are 
> > persist in two different dataset's in Fuseki (3.14). I am using the 
> > included SPARQL query console and set the endpoint for the query to 
> > http://localhost:8080/fuseki/.
> > How would the SPARQL syntax look like to merge the similar datasets (using 
> > select, construct or optional)?
> >
> > Greetings.
> >
> > This is my attempt;
> > PREFIX a: <http://localhost:8080/fuseki/model1/>
> > PREFIX b: <http://localhost:8080/fuseki/model2/>
> > SELECT ?s ?p ?o
> > WHERE
> > {
> >   {
> >     ?s  ?p ?o
> >   }
> >   UNION
> >   {
> >     ?s ?p ?p
> >   }
> > }
> >

Reply via email to