Sorry if my question was imprecise and to upset people. Even the W3C guide for 
federated states "... opportunity to merge data distributed across the Web"

But union of the two dataset is what I want. I was unclear about the syntax and 
how to use prefix for the two local dataset in the query. My dataset's are 
local so I don't need use the SERVICE keyword i guess, please provide an 
example bases on the initial question?

Cheers
________________________________
Från: Bögershausen, Merlin <[email protected]>
Skickat: den 23 april 2020 12:24
Till: [email protected] <[email protected]>
Ämne: AW: Union different dataset in Fuseki

Hi Glenn,
"merge" and "redundant" are a very overloaded term, please be as specific as 
possible ;-)
And even equality is not that clear [1].

If the data is located in different datasets you should use federated queries 
[2].
If they are in the same dataset but in different graphs the graph pattern 
should be enough.
I suggest reading the SPARQL tutorial [3]  to understand the basics of SPARQL.

Please understand the sources and repost the question afterwards, if still 
relevant.

Best Merlin

[1] https://www.w3.org/TR/sparql11-query/#OperatorMapping
[2] https://jena.apache.org/documentation/query/service.html
[3] https://jena.apache.org/tutorials/sparql.html

-----Ursprüngliche Nachricht-----
Von: Lorenz Buehmann <[email protected]>
Gesendet: Donnerstag, 23. April 2020 12:09
An: [email protected]
Betreff: Re: Union different dataset in Fuseki

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