[英]Using SPARQL to find the graphs in triple-store
I've been using the following SPARQL query to find the graphs in a triple-store: 我一直在使用以下SPARQL查询在三元存储中查找图:
select distinct ?g where { graph ?g {?s ?p ?o} }
This seems inefficient. 这似乎效率低下。
Is there a better way? 有没有更好的办法?
The form: 表格:
SELECT * { GRAPH ?g {} }
will give you all the graph names, no duplicates. 将为您提供所有图表名称,没有重复的名称。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.