4 ms·
> a DSL for flexibly requesting hierarchical data from API:s in JSON format, optimized for complex evolving API:s Perhaps the same goal could be achieved with
by zozbot234 7y ago
> a DSL for flexibly requesting hierarchical data from API:s in JSON format, optimized for complex evolving API:s
Perhaps the same goal could be achieved with more flexibility by issuing CONSTRUCT queries to a SPARQL endpoint (CONSTRUCT requests a custom RDF graph as opposed to a set of variable bindings ala SELECT) and obtaining results in JSON-LD format.
- brodo 7y agoExactly. I was always interested in all this semantic web stuff and as I have time now, I'm experimenting with Apache Jena. It's super neat! SPARQL endpoints use HTTP per default. "API for free" so to say. Plus you can even use a binary format for receiving the data. Querying the database is three lines of code in Kotlin. Fuseki (the SPARQL Server in Jena) also supports crazy stuff like "recursively traverse this graph by following the specified type of link until you can't go any further". I'm pretty sure this is not possible in GraphQL.