Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore/add ttl and trig #9

Merged
merged 6 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading