Skip to content

Commit

Permalink
chore: send binary to keep newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
rorlic committed Feb 8, 2024
1 parent ddceb4b commit 0cfaef1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,19 +95,19 @@ returns:
### `POST /member` -- Ingest Members
Ingests a member as turtle (mime-type: `text/turtle`), Tri-G (mime-type: `application/trig`), quads (mime-type: `application/n-quads`) or as triples (mime-type: `application/n-triples`) and returns the member ID (URI), e.g.
```bash
curl -X POST http://localhost:9000/member -H "Content-Type: application/trig" -d "@data/donald-duck.trig"
curl -X POST http://localhost:9000/member -H "Content-Type: application/trig" --data-binary "@data/donald-duck.trig"
```
OR
```bash
curl -X POST http://localhost:9000/member -H "Content-Type: text/turtle" -d "@data/donald-duck.ttl"
curl -X POST http://localhost:9000/member -H "Content-Type: text/turtle" --data-binary "@data/donald-duck.ttl"
```
OR
```bash
curl -X POST http://localhost:9000/member -H "Content-Type: application/n-quads" -d "@data/donald-duck.nq"
curl -X POST http://localhost:9000/member -H "Content-Type: application/n-quads" --data-binary "@data/donald-duck.nq"
```
OR
```bash
curl -X POST http://localhost:9000/member -H "Content-Type: application/n-triples" -d "@data/donald-duck.nt"
curl -X POST http://localhost:9000/member -H "Content-Type: application/n-triples" --data-binary "@data/donald-duck.nt"
```
returns:
```
Expand Down

0 comments on commit 0cfaef1

Please sign in to comment.