Skip to content

Commit

Permalink
Add simple docs from jasnell/as2corpus
Browse files Browse the repository at this point in the history
  • Loading branch information
gobengo committed Feb 9, 2016
1 parent 265160b commit e86e802
Show file tree
Hide file tree
Showing 25 changed files with 221 additions and 0 deletions.
1 change: 1 addition & 0 deletions simple0001.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
3 changes: 3 additions & 0 deletions simple0002.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"@context": "http://www.w3.org/ns/activitystreams"
}
3 changes: 3 additions & 0 deletions simple0003.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"id": "http://example.org/foo"
}
4 changes: 4 additions & 0 deletions simple0004.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"@context": "http://www.w3.org/ns/activitystreams",
"id": "http://example.org/foo"
}
3 changes: 3 additions & 0 deletions simple0005.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"@context": ["http://www.w3.org/ns/activitystreams"]
}
3 changes: 3 additions & 0 deletions simple0006.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"@context": [{},"http://www.w3.org/ns/activitystreams"]
}
3 changes: 3 additions & 0 deletions simple0007.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"@context": ["http://www.w3.org/ns/activitystreams", {}]
}
5 changes: 5 additions & 0 deletions simple0008.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"@context": "http://www.w3.org/ns/activitystreams",
"id": "http://example.org/foo",
"type": "Note"
}
5 changes: 5 additions & 0 deletions simple0009.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"@context": "http://www.w3.org/ns/activitystreams",
"id": "http://example.org/foo",
"type": ["Note","Event"]
}
6 changes: 6 additions & 0 deletions simple0010.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"@context": "http://www.w3.org/ns/activitystreams",
"id": "http://example.org/foo",
"type": "Note",
"name": "Plain < Text & Name"
}
8 changes: 8 additions & 0 deletions simple0011.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"@context": "http://www.w3.org/ns/activitystreams",
"id": "http://example.org/foo",
"type": "Note",
"name": {
"en": "Plain < Text & Name"
}
}
9 changes: 9 additions & 0 deletions simple0012.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"@context": "http://www.w3.org/ns/activitystreams",
"id": "http://example.org/foo",
"type": "Note",
"name": {
"en": "Plain < Text & Name",
"fr": "French Translation of the Plain < Test & Name"
}
}
7 changes: 7 additions & 0 deletions simple0013.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"@context": "http://www.w3.org/ns/activitystreams#",
"id": "http://example.org/some/id",
"type": "Note",
"content": "This is a simple note",
"updated": "2015-12-12T12:34:56Z"
}
7 changes: 7 additions & 0 deletions simple0014.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"@context": "http://www.w3.org/ns/activitystreams#",
"id": "http://example.org/some/id",
"type": "Note",
"content": "<i>This is a simple note with markup</i>",
"updated": "2015-12-12T12:34:56Z"
}
8 changes: 8 additions & 0 deletions simple0015.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"@context": "http://www.w3.org/ns/activitystreams#",
"id": "http://example.org/some/id",
"type": "Note",
"mediaType": "text/markdown",
"content": "*This is a simple note with markdown*",
"updated": "2015-12-12T12:34:56Z"
}
6 changes: 6 additions & 0 deletions simple0016.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"@context": "http://www.w3.org/ns/activitystreams#",
"type": "Like",
"actor": "http://example.org/sally",
"object": "http://example.org/notes/1"
}
10 changes: 10 additions & 0 deletions simple0017.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"@context": "http://www.w3.org/ns/activitystreams#",
"type": "Like",
"actor": {
"type": "Person",
"id": "http://example.org/sally",
"name": "Sally"
},
"object": "http://example.org/notes/1"
}
14 changes: 14 additions & 0 deletions simple0018.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"@context": "http://www.w3.org/ns/activitystreams#",
"type": "Like",
"actor": {
"type": "Person",
"id": "http://example.org/sally",
"name": "Sally"
},
"object": {
"id": "http://example.org/notes/1",
"type": "Note",
"content": "This is a note"
}
}
15 changes: 15 additions & 0 deletions simple0019.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"@context": "http://www.w3.org/ns/activitystreams#",
"type": "Like",
"actor": {
"type": "Person",
"id": "http://example.org/sally",
"name": "Sally"
},
"object": {
"id": "http://example.org/notes/1",
"type": "Note",
"content": "This is a note",
"url": "http://example.org/notes/1"
}
}
19 changes: 19 additions & 0 deletions simple0020.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"@context": "http://www.w3.org/ns/activitystreams#",
"type": "Like",
"actor": {
"type": "Person",
"id": "http://example.org/sally",
"name": "Sally"
},
"object": {
"id": "http://example.org/notes/1",
"type": "Note",
"content": "This is a note",
"url": {
"type": "Link",
"href": "http://example.org/notes/1",
"mediaType": "text/html"
}
}
}
19 changes: 19 additions & 0 deletions simple0021.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"@context": "http://www.w3.org/ns/activitystreams#",
"type": "Like",
"actor": {
"type": "Person",
"id": "http://example.org/sally",
"name": "Sally"
},
"object": {
"id": "http://example.org/notes/1",
"type": "Note",
"content": "This is a note",
"url": [{
"type": "Link",
"href": "http://example.org/notes/1",
"mediaType": "text/html"
}]
}
}
28 changes: 28 additions & 0 deletions simple0022.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"@context": "http://www.w3.org/ns/activitystreams#",
"type": "Like",
"actor": {
"type": "Person",
"id": "http://example.org/sally",
"name": "Sally"
},
"object": {
"id": "http://example.org/notes/1",
"type": "Note",
"content": "This is a note",
"url": [
{
"type": "Link",
"href": "http://example.org/notes/1",
"hreflang": "en",
"mediaType": "text/html"
},
{
"type": "Link",
"href": "http://example.org/notes/es/1",
"hreflang": "es",
"mediaType": "text/html"
}
]
}
}
27 changes: 27 additions & 0 deletions simple0023.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"@context": "http://www.w3.org/ns/activitystreams#",
"type": "Undo",
"actor": {
"type": "Person",
"id": "http://example.org/sally",
"name": "Sally"
},
"object": {
"type": "Like",
"actor": {
"type": "Person",
"id": "http://example.org/sally",
"name": "Sally"
},
"object": {
"id": "http://example.org/notes/1",
"type": "Note",
"content": "This is a note",
"url": [{
"type": "Link",
"href": "http://example.org/notes/1",
"mediaType": "text/html"
}]
}
}
}
4 changes: 4 additions & 0 deletions simple0024.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"@context": "http://www.w3.org/ns/activitystreams",
"updated": "2015-12-12T12:34Z"
}
4 changes: 4 additions & 0 deletions simple0025.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"@context": "http://www.w3.org/ns/activitystreams",
"published": "2015-12-12T12:34Z"
}

0 comments on commit e86e802

Please sign in to comment.