Re:SPARQL Protocol for RDF
by rspeer on Tuesday June 20, 2017 @10:25PM
(#14600217)
Yeah, that's kind of how APIs have to work. It turns out it's not feasible or desirable to just let arbitrary people make arbitrary queries. SPARQL doesn't make it any more feasible, it just ignores feasibility.
[ Parent
| on HN ]
> It turns out it's not feasible or desirable to just let arbitrary people make arbitrary queries.
GraphQL/Relay and Falcor are trying to make it feasible. And I think it's definitely desirable from a consumer point of view, at least.
> It turns out it's not feasible or desirable to just let arbitrary people make arbitrary queries.
It turns out where and why exactly?
Denial of service.
You can just 408-response queries after they execute for a given number of CPU cycles. And then rate-limit per-account using evercookies + browser fingerprinting + IP hashing. You can often disallow anonymous queries altogether, while you're at it; if your data is valuable, people are usually willing to register at least a pseudonymous account to get at it.