To get all triples write SELECT ?node2 ?p ?o WHERE {?node2 ?p ?o}
.
Now to restrict the results to graph 1 (defined by the URI of node1) you need to add <http://ex/abc> hasName ?node2
.
Together:
SELECT ?node2 ?p ?o WHERE{
<http://ex/abc> hasName ?node2 .
?node2 ?p ?o
}
Just alter that SPARQL slightly to use real URIs for properties:
SELECT ?node2 ?p ?o
WHERE {
<http://ex/node1> <http://ex/hasName> ?node2 .
?node2 ?p ?o .
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.