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
Copy file name to clipboardExpand all lines: docs/guides/connecting-to-blazegraph.md
+24-52Lines changed: 24 additions & 52 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,57 +20,31 @@ You can verify BlazeGraph is running by visiting `http://localhost:9999/blazegra
20
20
21
21
## Connecting Graph Explorer
22
22
23
-
Graph Explorer's proxy server expects the SPARQL endpoint at `/sparql` on the database host, but BlazeGraph serves it at `/blazegraph/namespace/<ns>/sparql`. To bridge this gap, you need a reverse proxy (such as nginx) in front of BlazeGraph that rewrites the path.
|**Public or Proxy Endpoint**| The URL where Graph Explorer is accessible in your browser. |
66
-
|**Using Proxy Server**| Enables the Graph Explorer proxy server, which forwards requests to the database. |
67
-
|**Graph Connection URL**| The URL the proxy server uses to reach the database. Points to the nginx reverse proxy, which rewrites the path for BlazeGraph. |
|`-p 80:80 -p 443:443`| Maps HTTP and HTTPS ports from the container to the host. |
59
+
|`--network graph-net`| Connects the container to the shared Docker network so it can reach BlazeGraph by container name. |
60
+
|`--restart unless-stopped`| Automatically restarts the container on failure or host reboot, unless explicitly stopped. |
61
+
|`--env HOST=localhost`| Sets the hostname used in the self-signed TLS certificate generated by Graph Explorer. |
88
62
89
-
Then update the **Graph Connection URL** to use the container name: `http://blazegraph-proxy:8080`
63
+
When both containers are on the same network, update the **Graph Connection URL** to use the container name: `http://blazegraph:9999/blazegraph/namespace/kb/sparql`
90
64
91
65
For more details on container networking, see the [Docker networks documentation](https://docs.docker.com/network/).
92
66
93
67
## Troubleshooting
94
68
95
69
### Schema sync fails or queries return errors
96
70
97
-
Graph Explorer's proxy server appends `/sparql` to the Graph Connection URL when making SPARQL requests. BlazeGraph does not serve its SPARQL endpoint at `/sparql` — it uses `/blazegraph/namespace/<ns>/sparql` instead. If you see connection errors or empty results, verify that the reverse proxy is running and correctly rewriting the path.
98
-
99
-
Test the reverse proxy directly:
71
+
Verify that the SPARQL endpoint is reachable by testing it directly:
100
72
101
73
```
102
-
curl -X POST http://localhost:8080/sparql \
74
+
curl -X POST http://localhost:9999/blazegraph/namespace/kb/sparql \
If this returns SPARQL results, the reverse proxy is working. If it returns a 404 or connection error, check the nginx configuration and ensure all containers are on the same Docker network.
79
+
If this returns SPARQL results, BlazeGraph is working correctly. If it returns a 404, check that the namespace in the URL matches your BlazeGraph configuration.
108
80
109
81
### Connection refused between containers
110
82
@@ -114,7 +86,7 @@ If Graph Explorer cannot reach BlazeGraph, verify all containers are on the same
114
86
docker network inspect graph-net
115
87
```
116
88
117
-
The default `localhost` address does not work between Docker containers. Use container names (e.g., `blazegraph`, `blazegraph-proxy`) as hostnames instead.
89
+
The default `localhost` address does not work between Docker containers. Use container names (e.g., `blazegraph`) as hostnames instead.
0 commit comments