You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This logic returns different representations based on the return format. I think this breaks the abstraction. The reasonable return type in this case would be rdflib's Result.
I think the method's return type should be the same as rdflib's Graph.query():
defconvert(self) ->rdflib.query.Result:
so as to align querying in-memory and remote RDF sources. Or maybe the convert method is not required at all and query should return rdflib.query.Result.
The text was updated successfully, but these errors were encountered:
namedgraph
changed the title
Why doesn't convert() return SPARQLResults for SELECT queries?
Why doesn't convert() return SPARQLResult for SELECT queries?
Sep 27, 2023
namedgraph
changed the title
Why doesn't convert() return SPARQLResult for SELECT queries?
Why doesn't convert() return SPARQLResult for SELECT/ASK queries?
Sep 27, 2023
namedgraph
changed the title
Why doesn't convert() return SPARQLResult for SELECT/ASK queries?
Align query result types with rdflib
Sep 27, 2023
This logic returns different representations based on the return format. I think this breaks the abstraction. The reasonable return type in this case would be rdflib's
Result
.I think the method's return type should be the same as rdflib's
Graph.query()
:so as to align querying in-memory and remote RDF sources. Or maybe the
convert
method is not required at all andquery
should returnrdflib.query.Result
.The text was updated successfully, but these errors were encountered: