Skip to content

Commit

Permalink
Update README.md.
Browse files Browse the repository at this point in the history
  • Loading branch information
timothee-haudebourg committed Apr 4, 2024
1 parent d980ff8 commit 10ec8f1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ $ tldr path/to/layout.json dehydrate
```

Example layouts are found in the `layouts/examples` folder.
```console
$ echo '{"id": "http://example.org/#bob", "name": "Bob"}' | tldr layouts/examples/record.json dehydrate
<http://example.org/#bob> <https://schema.org/name> "Bob" .
```

You can specify the input (tree) format using the `-i` option after `dehydrate`.
Similarly, you can specify the output (RDF) format using the `-o` option.
Expand All @@ -80,6 +84,10 @@ $ tldr path/to/layout.json hydrate
```

Example layouts are found in the `layouts/examples` folder.
```console
$ echo '<http://example.org/#bob> <https://schema.org/name> "Bob" .' | tldr layouts/examples/record.json hydrate 'http://example.org/#bob'
{"id":"http://example.org/#bob","name":"Bob"}
```

You can specify the input (RDF) format using the `-i` option after `hydrate`.
Similarly, you can specify the output (tree) format using the `-o` option.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "https://example.org/#SimpleRecord",
"id": "https://example.org/#RecordLayout",
"type": "record",
"prefixes": { "tldr": "https://treeldr.org/prelude#" },
"fields": {
Expand Down

0 comments on commit 10ec8f1

Please sign in to comment.