1

For learning SPARQL it might be useful to have full control both over the query text and the data (RDF triples). While there are many public SPARQL endpoints available their data is typically read-only for obvious reasons. To actively apply SPARQL-queries to ones own data, a local triple store might be useful, e.g. for reproducing the examples from https://www.w3.org/TR/rdf-sparql-query/.

However, setting up such an infrastructure with all its dependencies might be complicated.

→ What is the simplest¹ way to setup a local triple store with SPARQL endpoint on a usual PC?

(¹: The meaning of "simplest" depends on ones system configuration and prior knowledge, which can be reflected by different answers.)

cknoll
  • 2,130
  • 4
  • 18
  • 34
  • 1
    https://www.w3.org/TR/rdf-sparql-query/ is SPARQL 1.0 and superseded by https://www.w3.org/TR/sparql11-query/ which is SPARQl 1.1. – AndyS Mar 06 '22 at 18:48

4 Answers4

2

A java based solution is:

https://jena.apache.org/download/index.cgi

Down the Apache Jena Fuseki zip. Unpack the zip, run fuseki-server.
Goto http://localhost:3030/

AndyS
  • 16,345
  • 17
  • 21
0

If one has already a Python environment then rdflib-endpoint provides a simple solution with only two commands

  • pip install rdflib-endpoint (run once)
  • rdflib-endpoint serve <path_to_your_triple-file(s)>
  • Access the YASGUI SPARQL editor on http://localhost:8000
cknoll
  • 2,130
  • 4
  • 18
  • 34
  • 1
    Technically a SPARQL endpoint, but implementation-wise more or less an rdflib wrapper. So don't expect it to scale for larger datasets w.r.t. performance. But for learning SPARQL ok. Of course Java based solutions like Apache Jena Fuseki or RDF4J also don't need anzthing but Java installed. The rest is just downloading and starting. For Virtuoso or Blazegraph you also just need Docker. – UninformedUser Mar 06 '22 at 20:05
0

Maybe https://triplydb.com is interesting for you. You can create datasets like this. https://triplydb.com/Triply/linkedmdb/sparql/linkedmdb

0

Using Eclipse RDF4J via docker:

docker pull eclipse/rdf4j-workbench:latest
docker run -p 8080:8080 eclipse/rdf4j-workbench:latest

and then access at http://localhost:8080/rdf4j-workbench

Jeen Broekstra
  • 21,642
  • 4
  • 51
  • 73