Re:MillenniumDB: A graph database engine using domain graphs
by FjordWarden on Friday January 31, 2025 @02:46PM
(#42891097)
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?
Re:MillenniumDB: A graph database engine using domain graphs
by smarx007 on Friday January 31, 2025 @03:34PM
(#42891625)
> 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 } }
SPARQL has a CONSTRUCT clause which gives you RDF as your query output. Isn't that compositional enough?