问题
I want to get the name of all existing graphs in my Fuseki server, it should return a message with a list of all graphs name.
回答1:
I have tried the answer given by Joshua Taylor in Virtuoso, but got nothing.
Maybe it's different between fuseki and virtuoso. So I provide a sparql for virtuoso users who just find the answer like me.
SELECT DISTINCT ?g
WHERE {
GRAPH ?g { ?s ?p ?o }
}
回答2:
Without more context, we don't know whether you mean some additional metadata about the "name" of a graph, or what you mean exactly by "a message with a list of all graphs name", but it sounds like you might just want:
SELECT ?g
WHERE {
GRAPH ?g { }
}
来源:https://stackoverflow.com/questions/32274562/what-is-the-sparql-query-to-get-the-name-of-all-graphs-existing-in-my-triplestor