Replies: 5 comments
-
Hi @mwatts15 I need a working RDFlib FROM, FROM NAMED or SERVICE capability shortly as I want RDFlib-powered SPARQL-enabled APIs to query both local and remote endpoints. So I'm interested in this work. |
Beta Was this translation helpful? Give feedback.
-
I had this issue already in #810, where I decided to just set |
Beta Was this translation helpful? Give feedback.
-
@white-gecko Thanks. I had seen #811, but since I see no activity on it since it was written, I think a new issue which is more prescriptive is justified. |
Beta Was this translation helpful? Give feedback.
-
@aucampia I think this should be disabled by default (i.e. |
Beta Was this translation helpful? Give feedback.
-
here I only load the remote graphs if not found in the given |
Beta Was this translation helpful? Give feedback.
-
There's logic in rdflib.plugins.sparql.evaluate to evaluate FROM and FROM NAMED in SPARQL queries that calls QueryContext.load in rdflib.plugins.sparql.sparql which loads graphs from remote resources. This behavior would be better handled by Store implementations (possibly indirectly through Graph): Stores can decide whether to use a locally stored graph or download one and from where, and the configuration that goes into the decision can be handled in the construction of the Store instance in Store.open rather than globally (e.g., with rdflib.plugins.sparql.SPARQL_LOAD_GRAPHS). The shared logic for loading the graph can be retained in a utility which stores can call if they need to load a graph and don't have their own mechanisms for doing so.
Beta Was this translation helpful? Give feedback.
All reactions