Skip to content

Commit

Permalink
Merge pull request #9 from Informatievlaanderen/chore/add-ttl-and-trig
Browse files Browse the repository at this point in the history
Chore/add ttl and trig
  • Loading branch information
rorlic authored Feb 8, 2024
2 parents 4349e48 + 458f88d commit b753f97
Show file tree
Hide file tree
Showing 6 changed files with 1,108 additions and 2,272 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,21 @@ returns:
```

### `POST /member` -- Ingest Members
Ingests a member as quads (mime-type: `application/n-quads`) or as triples (mime-type: `application/n-triples`) and returns the member ID (URI), e.g.
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/n-quads" -d "@data/donald-duck.nq"
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: application/n-triples" -d "@data/donald-duck.nt"
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" --data-binary "@data/donald-duck.nq"
```
OR
```bash
curl -X POST http://localhost:9000/member -H "Content-Type: application/n-triples" --data-binary "@data/donald-duck.nt"
```
returns:
```
Expand Down
7 changes: 7 additions & 0 deletions data/donald-duck.trig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@prefix schema: <http://schema.org/> .

schema:disney {
<http://example.org/id/cartoon-figure/donald-duck>
a schema:Person ;
schema:name "Donald Duck" .
}
5 changes: 5 additions & 0 deletions data/donald-duck.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@prefix schema: <http://schema.org/> .

<http://example.org/id/cartoon-figure/donald-duck>
a schema:Person ;
schema:name "Donald Duck" .
Loading

0 comments on commit b753f97

Please sign in to comment.