Hacker News new | ask | show | jobs
by zozbot234 507 days ago
> SPARQL guarantees no such composability.

SPARQL has a CONSTRUCT clause which gives you RDF as your query output. Isn't that compositional enough?

1 comments

Ok, that is true, but how do I tell my graph database that the result of the construct query is some other graph in my DB?
> how do I tell my graph database that the result of the construct query

I am assuming you are asking how to do a CONSTRUCT query that will return you the contents of a given named graph?

https://www.w3.org/TR/sparql11-http-rdf-update/#http-get is a much simpler way to get a graph. As the spec says, it's equivalent to the following query

       CONSTRUCT { ?s ?p ?o } WHERE { GRAPH <graph_uri> { ?s ?p ?o } }