SPARQL multi graph request and sort (Virtuoso 7)
Clash Royale CLAN TAG #URR8PPP SPARQL multi graph request and sort (Virtuoso 7) Is it possible to easily make a CONSTRUCT request where I would be able to check data in different graphs AND sort them by "graph preference"? CONSTRUCT Let's say I sell products. For each product, I may have different suppliers, so that my setup would look like this: graph:supplier1 <data/product/1> <http://purl.org/goodrelations/v1#hasCurrencyValue> "10" . graph:supplier2 <data/product/1> <http://purl.org/goodrelations/v1#hasCurrencyValue> "8" . <data/product/2> <http://purl.org/goodrelations/v1#hasCurrencyValue> "5" . For each product specification, I want it from (graph) supplier1 , then from (graph) supplier2 if not found in (graph) supplier1 . supplier1 supplier2 supplier1 This is what I've come up to: CONSTRUCT { <data/product/1> ?p ?o . } WHERE { GRAPH <graph:supplier1> { OPTIONAL ...