run a sparql query against two graphs?

后端 未结 2 537
旧时难觅i
旧时难觅i 2020-12-28 20:36

A typical SPARQL query that specifies a graph might look like this:

SELECT ?b ?c WHERE { GRAPH  {
 ?b ?c}         


        
2条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-28 21:36

    If you have to run a query in a subset of the graphs that you are using you can also set a filter on the iri of the graphs.

    eg:

    SELECT ?b ?c
    FROM NAMED 
    FROM NAMED 
    FROM NAMED 
    WHERE {
    GRAPH ?g {
         ?b ?c 
        FILTER( ?g= || ?g= )
    }
    }
    

提交回复
热议问题