3

I have an AllegroGraph database which stores RDF data. The only way to retrieve these data is through SPARQL queries. The external API I have is GraphQL (it will be in Java server). Is there a way that I can connect GraphQL Java server to AllegroGraph database and run SPARQL queries (possibly transforming GraphQL query to SPARQL)?

Stanislav Kralin
  • 11,070
  • 4
  • 35
  • 58
JEE_program
  • 81
  • 1
  • 7

1 Answers1

2

I'd propose to wrap your SPARQL endpoint with HyperGraphQL and then use GraphQL federation or GraphQL schema stitching. There are Java libraries for both.

As an alternative to installing HyperGraphQL, you could replace AllegroGraph with Ontotext Platform or Stardog which provide GraphQL access to RDF out of the box.

Stanislav Kralin
  • 11,070
  • 4
  • 35
  • 58