Skip to content

Commit

Permalink
Adding support for locally cached JSON-LD contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
phochste committed Aug 25, 2023
1 parent 9ab2412 commit 6a17cb6
Show file tree
Hide file tree
Showing 8 changed files with 435 additions and 9 deletions.
5 changes: 4 additions & 1 deletion Changes
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
2023-08-25 0.4.2
- Supporting 'context_cache' for SendNotificationPlugin (a local cache of JSON-LD contexts)

2023-08-25 0.4.1
- Fixing artifacts of communica rewriting of blank nodes bug

2023-06-28 0.4.0
- Breaking change: policy arguments are now RDF.Terms[]

Expand Down
19 changes: 19 additions & 0 deletions cache/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# JSON-LD context cache

This directory contains an example JSON-LD context cache that can be used with the SendNotificatioPlugin `conext_cache` option. This allows to create JSON-LD frames without requiring network activity.

- activitystreams.jsonld : a local cache of the ActivityStreams

Usage:

```
{
"@id": "http://example.org/sendNotification",
"@type": "SendNotificationPlugin",
"context": [
"https://www.w3.org/ns/activitystreams" ,
"https://purl.org/coar/notify"
] ,
"context_cache" : "cache/activitystreams.jsonld"
}
```
Loading

0 comments on commit 6a17cb6

Please sign in to comment.