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: README.md
+37-3
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,49 @@
2
2
3
3
Serve an RDF file as an [RDFLib](https://rdflib.readthedocs.io/) Graph through a SPARQL endpoint served as [fastapi](https://fastapi.tiangolo.com/) with [rdflib-endpoint](https://pypi.org/project/rdflib-endpoint/) ([github](https://github.com/vemonet/rdflib-endpoint)).
4
4
5
+
## Install
6
+
7
+
```sh
8
+
$ task install
9
+
```
10
+
11
+
or
12
+
13
+
```sh
14
+
$ poetry install
15
+
```
16
+
5
17
## Run Locally
6
18
19
+
```sh
20
+
$ GRAPH_FILE=graph.ttl task serve:dev
21
+
# or
22
+
$ GRAPH_FILE=graph.ttl task serve:uvicorn
7
23
```
24
+
25
+
or
26
+
27
+
```sh
28
+
$ GRAPH_FILE=graph.ttl poetry run fastapi dev sparql_file.py
29
+
# or
8
30
$ GRAPH_FILE=graph.ttl poetry run uvicorn sparql_file:app --host 0.0.0.0 --port 8080
9
31
```
10
32
11
-
## Run With Podman/Docker
33
+
## Run With Podman/Docker (local build)
12
34
13
-
```
35
+
```sh
14
36
$ task build
15
-
$ podman run -d --rm -v /path/to/graph_file.ttl:/data/graph.ttl:z -p 8080:8080 ghcr.io/aksw/sparql-file:main
37
+
$ podman run -d --rm -v /path/to/graph_file.ttl:/data/graph.ttl:z -p 8080:8080 localhost/sparql-file:latest
38
+
```
39
+
40
+
## Run With Podman/Docker (ghcr.io registry build)
0 commit comments