http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/open.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/open.json b/streams-schemas/src/test/resources/activities/open.json deleted file mode 100644 index 4bf47cd..0000000 --- a/streams-schemas/src/test/resources/activities/open.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Laura" - }, - "verb": "open", - "object": { - "objectType": "issue", - "displayName": "Issue #126" - } -}
http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/play.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/play.json b/streams-schemas/src/test/resources/activities/play.json deleted file mode 100644 index 0605662..0000000 --- a/streams-schemas/src/test/resources/activities/play.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Mark" - }, - "verb": "play", - "object": { - "objectType": "audio", - "displayName": "Call Me Maybe" - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/post.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/post.json b/streams-schemas/src/test/resources/activities/post.json deleted file mode 100644 index 73cfff7..0000000 --- a/streams-schemas/src/test/resources/activities/post.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "published": "2011-02-10T15:04:55Z", - "actor": { - "url": "http://example.org/martin", - "objectType" : "person", - "id": "tag:example.org,2011:martin", - "image": { - "url": "http://example.org/martin/image", - "width": 250, - "height": 250 - }, - "displayName": "Martin Smith" - }, - "verb": "post", - "object" : { - "url": "http://example.org/blog/2011/02/entry", - "id": "tag:example.org,2011:abc123/xyz" - }, - "target" : { - "url": "http://example.org/blog/", - "objectType": "blog", - "id": "tag:example.org,2011:abc123", - "displayName": "Martin's Blog" - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/present.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/present.json b/streams-schemas/src/test/resources/activities/present.json deleted file mode 100644 index 8f4df12..0000000 --- a/streams-schemas/src/test/resources/activities/present.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Laura" - }, - "verb": "present", - "object": { - "objectType": "file", - "displayName": "1Q2013 Sales Forecast.ppt" - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/purchase.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/purchase.json b/streams-schemas/src/test/resources/activities/purchase.json deleted file mode 100644 index 3354597..0000000 --- a/streams-schemas/src/test/resources/activities/purchase.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Mark" - }, - "verb": "purchase", - "object": { - "objectType": "video", - "displayName": "The Avengers" - }, - "title": "Mark purchased the movie, The Avengers" -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/qualify.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/qualify.json b/streams-schemas/src/test/resources/activities/qualify.json deleted file mode 100644 index 630bda0..0000000 --- a/streams-schemas/src/test/resources/activities/qualify.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Laura" - }, - "verb": "qualify", - "object": { - "objectType": "offer", - "displayName": "Free Money!" - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/read.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/read.json b/streams-schemas/src/test/resources/activities/read.json deleted file mode 100644 index 3509886..0000000 --- a/streams-schemas/src/test/resources/activities/read.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Mark" - }, - "verb": "read", - "object": { - "objectType": "book", - "displayName": "Cloud Atlas" - } -} - http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/receive.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/receive.json b/streams-schemas/src/test/resources/activities/receive.json deleted file mode 100644 index d61245e..0000000 --- a/streams-schemas/src/test/resources/activities/receive.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Laura" - }, - "verb": "receive", - "object": { - "objectType": "badge", - "displayName": "Most Checkins in 24 hours" - }, - "title": "Laura was awarded a badge for \"Most Checkins in 24 hours\"" -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/reject.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/reject.json b/streams-schemas/src/test/resources/activities/reject.json deleted file mode 100644 index 84d1ab1..0000000 --- a/streams-schemas/src/test/resources/activities/reject.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Mark" - }, - "verb": "reject", - "object": { - "objectType": "issue", - "displayName": "Issue #126" - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/remove-friend.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/remove-friend.json b/streams-schemas/src/test/resources/activities/remove-friend.json deleted file mode 100644 index 0a593e9..0000000 --- a/streams-schemas/src/test/resources/activities/remove-friend.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Mark" - }, - "verb": "remove-friend", - "object": { - "objectType": "person", - "displayName": "Laura" - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/remove.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/remove.json b/streams-schemas/src/test/resources/activities/remove.json deleted file mode 100644 index 1f386e9..0000000 --- a/streams-schemas/src/test/resources/activities/remove.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Laura" - }, - "verb": "remove", - "object": { - "objectType": "image", - "displayName": "Cat Photo", - "fullImage": { - "url": "http://example.org/cats.jpg" - } - }, - "target": { - "objectType": "collection", - "displayName": "Cat Photo Album", - "objectTypes": ["image"] - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/replace.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/replace.json b/streams-schemas/src/test/resources/activities/replace.json deleted file mode 100644 index f19a35c..0000000 --- a/streams-schemas/src/test/resources/activities/replace.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Mark" - }, - "verb": "replace", - "object": { - "objectType": "file", - "displayName": "Updated 1Q2014 Sales Forecast.xls" - }, - "target": { - "objectType": "file", - "displayName": "1Q2014 Sales Forecast.xls" - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/request-friend.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/request-friend.json b/streams-schemas/src/test/resources/activities/request-friend.json deleted file mode 100644 index 3e571ee..0000000 --- a/streams-schemas/src/test/resources/activities/request-friend.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Mark" - }, - "verb": "request-friend", - "object": { - "objectType": "person", - "displayName": "Laura" - } -} - http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/request.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/request.json b/streams-schemas/src/test/resources/activities/request.json deleted file mode 100644 index 3e7c285..0000000 --- a/streams-schemas/src/test/resources/activities/request.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Laura" - }, - "verb": "request", - "object": { - "objectType": "task", - "actor": { - "objectType": "person", - "displayName": "Mark" - }, - "verb": "join", - "object": { - "objectType": "event", - "displayName": "The Big Meeting" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/resolve.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/resolve.json b/streams-schemas/src/test/resources/activities/resolve.json deleted file mode 100644 index 14998cf..0000000 --- a/streams-schemas/src/test/resources/activities/resolve.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Laura" - }, - "verb": "resolve", - "object": { - "objectType": "issue", - "displayName": "Issue #126" - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/retract.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/retract.json b/streams-schemas/src/test/resources/activities/retract.json deleted file mode 100644 index 9229868..0000000 --- a/streams-schemas/src/test/resources/activities/retract.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Laura" - }, - "verb": "retract", - "object": { - "actor": { - "objectType": "person", - "displayName": "Mark" - }, - "verb": "return", - "object": { - "objectType": "book", - "displayName": "Cloud Atlas" - }, - "target": { - "objectType": "person", - "displayName": "Laura" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/return.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/return.json b/streams-schemas/src/test/resources/activities/return.json deleted file mode 100644 index d6b8861..0000000 --- a/streams-schemas/src/test/resources/activities/return.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Mark" - }, - "verb": "return", - "object": { - "objectType": "book", - "displayName": "Cloud Atlas" - }, - "target": { - "objectType": "person", - "displayName": "Laura" - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/rsvp-maybe.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/rsvp-maybe.json b/streams-schemas/src/test/resources/activities/rsvp-maybe.json deleted file mode 100644 index b1ec1b5..0000000 --- a/streams-schemas/src/test/resources/activities/rsvp-maybe.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Laura" - }, - "verb": "rsvp-maybe", - "object": { - "objectType": "event", - "displayName": "The Big Meeting" - }, - "title": "Laura might attend The Big Meeting" -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/rsvp-no.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/rsvp-no.json b/streams-schemas/src/test/resources/activities/rsvp-no.json deleted file mode 100644 index 532b096..0000000 --- a/streams-schemas/src/test/resources/activities/rsvp-no.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Mark" - }, - "verb": "rsvp-no", - "object": { - "objectType": "event", - "displayName": "The Big Meeting" - }, - "title": "Mark will not attend the Big Meeting" -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/rsvp-yes.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/rsvp-yes.json b/streams-schemas/src/test/resources/activities/rsvp-yes.json deleted file mode 100644 index 170a5c4..0000000 --- a/streams-schemas/src/test/resources/activities/rsvp-yes.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Laura" - }, - "verb": "rsvp-yes", - "object": { - "objectType": "event", - "displayName": "The Big Meeting" - }, - "title": "Laura will attend the Big Meeting" -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/satisfy.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/satisfy.json b/streams-schemas/src/test/resources/activities/satisfy.json deleted file mode 100644 index 16151fa..0000000 --- a/streams-schemas/src/test/resources/activities/satisfy.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Mark" - }, - "verb": "satisfy", - "object": { - "objectType": "http://example.org/condition", - "displayName": "Some Condition" - }, - "target": { - "objectType": "http://example.org/parole", - "displayName": "Terms of Parole" - }, - "title": "Mark has satisfied a condition of his parole." -} - http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/save.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/save.json b/streams-schemas/src/test/resources/activities/save.json deleted file mode 100644 index 70c0f5f..0000000 --- a/streams-schemas/src/test/resources/activities/save.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Laura" - }, - "verb": "save", - "object": { - "objectType": "note", - "displayName": "A note about something important" - }, - "target": { - "objectType": "collection", - "displayName": "Laura's Reading List" - }, - "title": "Laura saved the note to her reading list" -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/schedule.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/schedule.json b/streams-schemas/src/test/resources/activities/schedule.json deleted file mode 100644 index f214290..0000000 --- a/streams-schemas/src/test/resources/activities/schedule.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Mark" - }, - "verb": "schedule", - "object": { - "objectType": "event", - "displayName": "The Big Meeting" - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/search.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/search.json b/streams-schemas/src/test/resources/activities/search.json deleted file mode 100644 index 511b612..0000000 --- a/streams-schemas/src/test/resources/activities/search.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Laura" - }, - "verb": "search", - "object": { - "objectType": "place", - "displayName": "Big Hotel", - "address": { - "locality": "New York", - "region": "NY" - } - }, - "title": "Laura searched for a hotel in New York City, NY" -} - http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/sell.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/sell.json b/streams-schemas/src/test/resources/activities/sell.json deleted file mode 100644 index ab07fb0..0000000 --- a/streams-schemas/src/test/resources/activities/sell.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Mark" - }, - "verb": "sell", - "object": { - "objectType": "product", - "displayName": "A cool product" - }, - "target": { - "objectType": "person", - "displayName": "Laura" - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/send.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/send.json b/streams-schemas/src/test/resources/activities/send.json deleted file mode 100644 index b392ce8..0000000 --- a/streams-schemas/src/test/resources/activities/send.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Laura" - }, - "verb": "send", - "object": { - "objectType": "note", - "content": "Thank you for the cool product." - }, - "target": { - "objectType": "person", - "displayName": "Mark" - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/share.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/share.json b/streams-schemas/src/test/resources/activities/share.json deleted file mode 100644 index dc7b9f1..0000000 --- a/streams-schemas/src/test/resources/activities/share.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Mark" - }, - "verb": "share", - "object": { - "objectType": "note", - "displayName": "An important note" - }, - "title": "Mark shared an important note." -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/sponsor.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/sponsor.json b/streams-schemas/src/test/resources/activities/sponsor.json deleted file mode 100644 index 156c322..0000000 --- a/streams-schemas/src/test/resources/activities/sponsor.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "organization", - "displayName": "Acme, Co" - }, - "verb": "sponsor", - "object": { - "objectType": "game", - "displayName": "World Series" - }, - "title": "Acme, Co sponsored the World Series" -} - http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/start.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/start.json b/streams-schemas/src/test/resources/activities/start.json deleted file mode 100644 index b9aede2..0000000 --- a/streams-schemas/src/test/resources/activities/start.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Mark" - }, - "verb": "start", - "object": { - "objectType": "process", - "displayName": "A Long Running Process" - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/stop-following.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/stop-following.json b/streams-schemas/src/test/resources/activities/stop-following.json deleted file mode 100644 index 04b83e7..0000000 --- a/streams-schemas/src/test/resources/activities/stop-following.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Laura" - }, - "verb": "stop-following", - "object": { - "objectType": "person", - "displayName": "Mark" - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/submit.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/submit.json b/streams-schemas/src/test/resources/activities/submit.json deleted file mode 100644 index 0fd3c34..0000000 --- a/streams-schemas/src/test/resources/activities/submit.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Mark" - }, - "verb": "submit", - "object": { - "objectType": "issue", - "displayName": "Issue #127" - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/tag.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/tag.json b/streams-schemas/src/test/resources/activities/tag.json deleted file mode 100644 index dba6112..0000000 --- a/streams-schemas/src/test/resources/activities/tag.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Laura" - }, - "verb": "tag", - "object": { - "objectType": "person", - "displayName": "Mark" - }, - "target": { - "objectType": "image", - "displayName": "Pictures of my cats" - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/terminate.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/terminate.json b/streams-schemas/src/test/resources/activities/terminate.json deleted file mode 100644 index f4d886e..0000000 --- a/streams-schemas/src/test/resources/activities/terminate.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Mark" - }, - "verb": "terminate", - "object": { - "objectType": "process", - "displayName": "A long running process" - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/tie.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/tie.json b/streams-schemas/src/test/resources/activities/tie.json deleted file mode 100644 index 71a3c39..0000000 --- a/streams-schemas/src/test/resources/activities/tie.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "collection", - "items": [ - { - "objectType": "organization", - "displayName": "New York Giants" - }, - { - "objectType": "organization", - "displayName": "Oakland Raiders" - } - ] - }, - "verb": "tie", - "object": { - "objectType": "game", - "displayName": "Super Bowl" - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/unfavorite.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/unfavorite.json b/streams-schemas/src/test/resources/activities/unfavorite.json deleted file mode 100644 index b1e7bcd..0000000 --- a/streams-schemas/src/test/resources/activities/unfavorite.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Laura" - }, - "verb": "unfavorite", - "object": { - "objectType": "article", - "displayName": "Some article" - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/unlike.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/unlike.json b/streams-schemas/src/test/resources/activities/unlike.json deleted file mode 100644 index 9bc583f..0000000 --- a/streams-schemas/src/test/resources/activities/unlike.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Mark" - }, - "verb": "unlike", - "object": { - "objectType": "article", - "displayName": "Some article" - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/unsatisfy.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/unsatisfy.json b/streams-schemas/src/test/resources/activities/unsatisfy.json deleted file mode 100644 index 739823c..0000000 --- a/streams-schemas/src/test/resources/activities/unsatisfy.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Mark" - }, - "verb": "unsatisfy", - "object": { - "objectType": "http://example.org/condition", - "displayName": "Some Condition" - }, - "target": { - "objectType": "http://example.org/parole", - "displayName": "Terms of Parole" - }, - "title": "Mark has not satisfied a condition of his parole." -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/unsave.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/unsave.json b/streams-schemas/src/test/resources/activities/unsave.json deleted file mode 100644 index a9a21f0..0000000 --- a/streams-schemas/src/test/resources/activities/unsave.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Laura" - }, - "verb": "unsave", - "object": { - "objectType": "article", - "displayName": "Some article" - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/unshare.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/unshare.json b/streams-schemas/src/test/resources/activities/unshare.json deleted file mode 100644 index 4d45a6d..0000000 --- a/streams-schemas/src/test/resources/activities/unshare.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Mark" - }, - "verb": "unshare", - "object": { - "objectType": "article", - "displayName": "Some article" - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/update.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/update.json b/streams-schemas/src/test/resources/activities/update.json deleted file mode 100644 index 7dbed20..0000000 --- a/streams-schemas/src/test/resources/activities/update.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Mark" - }, - "verb": "update", - "object": { - "objectType": "article", - "displayName": "Some article" - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/use.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/use.json b/streams-schemas/src/test/resources/activities/use.json deleted file mode 100644 index 699c4b8..0000000 --- a/streams-schemas/src/test/resources/activities/use.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Laura" - }, - "verb": "use", - "object": { - "objectType": "product", - "displayName": "A cool product" - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/watch.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/watch.json b/streams-schemas/src/test/resources/activities/watch.json deleted file mode 100644 index 2052f06..0000000 --- a/streams-schemas/src/test/resources/activities/watch.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "person", - "displayName": "Mark" - }, - "verb": "watch", - "object": { - "objectType": "video", - "displayName": "Some random movie" - } -} - http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/activities/win.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/win.json b/streams-schemas/src/test/resources/activities/win.json deleted file mode 100644 index 2cf9d5a..0000000 --- a/streams-schemas/src/test/resources/activities/win.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$license": [ - "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", - "http://www.apache.org/licenses/LICENSE-2.0" - ], - "actor": { - "objectType": "organization", - "displayName": "Arizona Diamond Backs" - }, - "verb": "win", - "object": { - "objectType": "game", - "displayName": "World Series" - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/media_link.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/media_link.json b/streams-schemas/src/test/resources/media_link.json deleted file mode 100644 index 0bed6f0..0000000 --- a/streams-schemas/src/test/resources/media_link.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "$schema": "http://streams.incubator.apache.org/site/0.3-incubating-SNAPSHOT/streams-schemas/media_link.json#", - "duration": 30000, - "height": 480, - "width": 640, - "url": "http://youtube.com/s7hc30sb" -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/objects/event.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/objects/event.json b/streams-schemas/src/test/resources/objects/event.json deleted file mode 100644 index ae1108e..0000000 --- a/streams-schemas/src/test/resources/objects/event.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "objectType": "event", - "displayName": "Meeting with Joe", - "startTime": "2012-12-12T12:00:00Z", - "endTime: "2012-12-12T13:00:00Z", - "invited": { - "items": [ - {"objectType": "person", - "displayName": "Joe"} - ] - }, - "attending": { - "items": [ - {"objectType": "person", - "displayName": "Joe"} - ] - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/objects/group.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/objects/group.json b/streams-schemas/src/test/resources/objects/group.json deleted file mode 100644 index 9721874..0000000 --- a/streams-schemas/src/test/resources/objects/group.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "objectType": "group", - "displayName": "My Work Group", - "members": { - "items": [ - { - "objectType": "person", - "displayName": "Laura" - }, - { - "objectType": "person", - "displayName": "Mark" - } - ] - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/objects/issue.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/objects/issue.json b/streams-schemas/src/test/resources/objects/issue.json deleted file mode 100644 index 86bc6d2..0000000 --- a/streams-schemas/src/test/resources/objects/issue.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "objectType": "issue", - "displayName": "Terms of Use Violation", - "url": "http://.../terms-of-use", - "types": [ - "http://example.org/codes/inappropriateMaterial", - "http://example.org/codes/copyrightViolation" - ] -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/objects/note.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/objects/note.json b/streams-schemas/src/test/resources/objects/note.json deleted file mode 100644 index 15a4495..0000000 --- a/streams-schemas/src/test/resources/objects/note.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "objectType": "note", - "displayName": "A note with a binary attachment", - "attachments": [ - { - "objectType": "binary", - "data": "dGhpcyBpcyB1bmNvbXByZXNzZWQgZGF0YQo=", - "md5": "827ae7e1ab45e4dd591d087c741e5770", - "length": 25 - } - ] -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/objects/permission.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/objects/permission.json b/streams-schemas/src/test/resources/objects/permission.json deleted file mode 100644 index 24b6fa2..0000000 --- a/streams-schemas/src/test/resources/objects/permission.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "objectType": "permission", - "displayName": "Permission to Edit File: 2Q2014 Sales Forecast.xls", - "scope": { - "objectType": "file", - "displayName": "2Q2014 Sales Forecast.xls" - }, - "actions": ["modify", "delete", "create"] -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/objects/place.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/objects/place.json b/streams-schemas/src/test/resources/objects/place.json deleted file mode 100644 index 8e454be..0000000 --- a/streams-schemas/src/test/resources/objects/place.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "objectType": "place", - "displayName": "Some Random Location on Earth", - "position": { - "latitude": 34.34, - "longitude": -127.23, - "altitude": 100.05 - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/objects/task.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/objects/task.json b/streams-schemas/src/test/resources/objects/task.json deleted file mode 100644 index f4878dc..0000000 --- a/streams-schemas/src/test/resources/objects/task.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "objectType": "task", - "displayName": "James needs to read the spec", - "by": "2012-12-12T12:12:12Z", - "verb": "read", - "actor": { - "objectType": "person", - "displayName": "James" - }, - "object": { - "objectType": "file", - "displayName": "A specification", - "url": "http://example.org/spec.html" - }, - "required": true -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/src/test/resources/objects/video.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/objects/video.json b/streams-schemas/src/test/resources/objects/video.json deleted file mode 100644 index bc19e89..0000000 --- a/streams-schemas/src/test/resources/objects/video.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "objectType": "video", - "displayName": "Cute little kittens", - "embedCode": "<video width="320" height="240" controls="controls">...</video>", - "stream": { - "url": "http://example.org/my_video.mpg" - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/streams-schema-activitystreams/pom.xml ---------------------------------------------------------------------- diff --git a/streams-schemas/streams-schema-activitystreams/pom.xml b/streams-schemas/streams-schema-activitystreams/pom.xml new file mode 100644 index 0000000..500c272 --- /dev/null +++ b/streams-schemas/streams-schema-activitystreams/pom.xml @@ -0,0 +1,82 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you under the Apache License, Version 2.0 (the + ~ "License"); you may not use this file except in compliance + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, + ~ software distributed under the License is distributed on an + ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + ~ KIND, either express or implied. See the License for the + ~ specific language governing permissions and limitations + ~ under the License. + --> + +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.streams</groupId> + <artifactId>streams-schemas</artifactId> + <version>0.3-incubating-SNAPSHOT</version> + </parent> + + <artifactId>streams-schema-activitystreams</artifactId> + <name>${project.artifactId}</name> + + <description>Activity Streams schemas</description> + + <build> + <resources> + <resource> + <directory>src/main/resources</directory> + </resource> + </resources> + <testResources> + <testResource> + <directory>src/test/resources</directory> + </testResource> + </testResources> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <executions> + <execution> + <id>add-source</id> + <phase>generate-sources</phase> + <goals> + <goal>add-test-resource</goal> + </goals> + <configuration> + <resources> + <resource> + <directory>${project.basedir}/src/main/jsonschema</directory> + </resource> + <resource> + <directory>src/main/xmlschema</directory> + </resource> + </resources> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <executions> + <execution> + <goals> + <goal>test-jar</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> +</project> http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/activity.json ---------------------------------------------------------------------- diff --git a/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/activity.json b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/activity.json new file mode 100644 index 0000000..2edd759 --- /dev/null +++ b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/activity.json @@ -0,0 +1,108 @@ +{ + "$schema": "http://json-schema.org/draft-03/schema", + "$license": [ + "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", + "http://www.apache.org/licenses/LICENSE-2.0" + ], + "id": "http://streams.incubator.apache.org/site/0.3-incubating-SNAPSHOT/streams-schemas/activity.json#", + "type": "object", + "title": "activity", + "javaInterfaces": ["java.io.Serializable"], + "description": "An activity construct recounts what an actor did to an object in the past. If there is no actor it simply describes the change.", + "additionalProperties": true, + "properties": { + "id": { + "type": "string", + "description": "Uniquely identifies each activity within the service", + "required": true + }, + "actor": { + "type": "object", + "required": true, + "description": "Describes the entity that performed the activity. An activity MUST contain one actor property whose value is a single Object.", + "javaInterfaces": ["java.io.Serializable"], + "$ref": "./object.json" + }, + "verb": { + "title": "verb", + "type": "string", + "default": "post", + "required": true, + "description": "Identifies the action that the activity describes. An activity MUST contain a verb property whose value is a JSON String that is non-empty and matches either the \"isegment-nz-nc\" or the \"IRI\" production in [RFC3987]. Note that the use of a relative reference other than a simple name is not allowed." + }, + "object": { + "type": "object", + "required": true, + "description": "Describes the primary object of the activity. For instance, in the activity, \"John saved a movie to his wishlist\", the object of the activity is \"movie\". An activity SHOULD contain an object property whose value is a single Object. If the object property is not contained, the primary object of the activity MAY be implied by context.", + "$ref": "./object.json" + }, + "target": { + "type": "object", + "description": "Describes the target of the activity. The precise meaning of the activity's target is dependent on the activities verb, but will often be the object the English preposition \"to\". For instance, in the activity, \"John saved a movie to his wishlist\", the target of the activity is \"wishlist\". The activity target MUST NOT be used to identity an indirect object that is not a target of the activity. An activity MAY contain a target property whose value is a single Object.", + "$ref": "./object.json" + }, + "published": { + "type": "string", + "description": "The date and time at which the activity occurred. It is important to note that this is not necessarily the same as the time at which the activity was published. An activity MUST contain a postedTime property.", + "format": "date-time" + }, + "updated": { + "type": "string", + "description": "The date and time at which a previously published activity has been modified. An Activity MAY contain an updatedTime property", + "format": "date-time" + }, + "generator": { + "type": "object", + "description": "Describes the application that generated the activity. An activity MAY contain a generator property whose value is a single Object.", + "javaInterfaces": ["java.io.Serializable"], + "extends": { + "$ref": "./object.json" + } + }, + "icon": { + "type": "object", + "description": "An IRI[RFC3987] identifying an image resource provides a visual representation of the activity, intended for human consumption. The image SHOULD have an aspect ratio of one (horizontal) to one (vertical) and SHOULD be suitable for presentation at a small size. An activity MAY have an icon property", + "javaInterfaces": ["java.io.Serializable"], + "extends": { + "$ref": "./media_link.json" + } + }, + "provider": { + "type": "object", + "description": "Describes the application that published the activity. Note that this is not necessarily the same entity that generated the activity. An activity MAY contain a provider property whose value is a single Object", + "javaInterfaces": ["java.io.Serializable"], + "extends": { + "$ref": "./object.json" + } + }, + "title": { + "type": "string", + "description": "Natural-language title or headline for the activity encoded as a single JSON String containing HTML markup. An activity MAY contain a title property", + "format": "html" + }, + "content": { + "type": "string", + "description": "Natural-language description of the activity encoded as a single JSON String containing HTML markup. Visual elements such as thumbnail images MAY be included. An activity MAY contain a content property", + "format": "html" + }, + "url": { + "type": "string", + "description": "An IRI [RFC3987] identifying a resource providing an HTML representation of the activity. An activity MAY contain a url property", + "format": "url" + }, + "links": { + "type": "array", + "description": "Links between this object and other resources as defined in Web Linking", + "note": "Tell JSON schema team to not put links inside http://json-schema.org/hyper-schema#properties", + "items": { + "type": "string" + } + } + }, + "links": [ + { + "rel": "describedby", + "href": "./verbs/{verb}.json" + } + ] +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/collection.json ---------------------------------------------------------------------- diff --git a/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/collection.json b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/collection.json new file mode 100644 index 0000000..38f83e7 --- /dev/null +++ b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/collection.json @@ -0,0 +1,47 @@ +{ + "$schema": "http://json-schema.org/draft-03/schema", + "$license": [ + "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", + "http://www.apache.org/licenses/LICENSE-2.0" + ], + "id": "http://streams.incubator.apache.org/site/0.3-incubating-SNAPSHOT/streams-schemas/collection.json#", + "type": "object", + "title": "collection", + "javaInterfaces": ["java.io.Serializable"], + "description": "A collection is a generic list of Objects of any object type. The objectType of each item in the collection MAY be omitted if the type of object can be established through context. The collection is used primarily as the root of an Activity Streams document, but can be used as the value of extension properties in a variety of situations. ", + "properties": { + "url": { + "type": "string", + "description": "An IRI [RFC3987] referencing a JSON document containing the full listing of objects in the collection." + }, + "totalItems": { + "type": "integer", + "description": "Non-negative integer specifying the total number of activities within the stream. The Stream serialization MAY contain a count property." + }, + "items": { + "type": "array", + "required": true, + "description": "An array containing a listing of Objects of any object type. If used in combination with the url property, the items array can be used to provide a subset of the objects that may be found in the resource identified by the url.", + "items": { + "type": "object", + "extends": { + "$ref": "./object.json" + } + } + }, + "links": { + "type": "array", + "optional": true, + "description": "Links between an this object and other resources as defined in Web Linking", + "extends": { + "$ref": "http://json-schema.org/links#properties" + } + } + }, + "links": [ + { + "rel": "describedby", + "href": "http://json-schema.org/schema" + } + ] +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/media_link.json ---------------------------------------------------------------------- diff --git a/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/media_link.json b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/media_link.json new file mode 100644 index 0000000..e7eece0 --- /dev/null +++ b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/media_link.json @@ -0,0 +1,34 @@ +{ + "$schema": "http://json-schema.org/draft-03/schema", + "$license": [ + "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", + "http://www.apache.org/licenses/LICENSE-2.0" + ], + "id": "http://streams.incubator.apache.org/site/0.3-incubating-SNAPSHOT/streams-schemas/media_link.json#", + "type": "object", + "title": "media_link", + "javaInterfaces": ["java.io.Serializable"], + "description": "Visual representation of an object in the form of an image, video or embedded HTML fragments", + "properties": { + "duration": { + "title": "duration", + "type": "number", + "description": "A hint to the consumer about the length, in seconds, of the media resource identified by the url property. A media link MAY contain a \"duration\" property when the target resource is a time-based media item such as an audio or video." + }, + "height": { + "title": "height", + "type": "integer", + "description": "A hint to the consumer about the height, in pixels, of the media resource identified by the url property. A media link MAY contain a height property when the target resource is a visual media item such as an image, video or embeddable HTML page." + }, + "width": { + "title": "width", + "type": "integer", + "description": "A hint to the consumer about the width, in pixels, of the media resource identified by the url property. A media link MAY contain a width property when the target resource is a visual media item such as an image, video or embeddable HTML page." + }, + "url": { + "type": "string", + "required": true, + "description": "The IRI of the media resource being linked. A media link MUST have a url property." + } + } +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/object.json ---------------------------------------------------------------------- diff --git a/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/object.json b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/object.json new file mode 100644 index 0000000..94f6719 --- /dev/null +++ b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/object.json @@ -0,0 +1,98 @@ +{ + "$schema": "http://json-schema.org/draft-03/schema", + "$license": [ + "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", + "http://www.apache.org/licenses/LICENSE-2.0" + ], + "id": "http://streams.incubator.apache.org/site/0.3-incubating-SNAPSHOT/streams-schemas/object.json#", + "type": "object", + "title": "object", + "javaInterfaces": ["java.io.Serializable"], + "description": "Basic object on the web. The only required property is the id", + "properties": { + "id": { + "type": "string", + "description": "Provides a permanent, universally unique identifier for the object in the form of an absolute IRI [RFC3987]. An object SHOULD contain a single id property. If an object does not contain an id property, consumers MAY use the value of the url property as a less-reliable, non-unique identifier.", + "required": true + }, + "image": { + "format": "image", + "type": "object", + "description": "Description of a resource providing a visual representation of the object, intended for human consumption. An object MAY contain an image property whose value is a Media Link.", + "extends": { + "$ref": "./media_link.json" + } + }, + "displayName": { + "type": "string", + "description": "A natural-language, human-readable and plain-text name for the object. HTML markup MUST NOT be included. An object MAY contain a displayName property. If the object does not specify an objectType property, the object SHOULD specify a displayName" + }, + "summary": { + "type": "string", + "description": "Natural-language summary of the object encoded as a single JSON String containing HTML markup. Visual elements such as thumbnail images MAY be included. An activity MAY contain a summary property" + }, + "content": { + "type": "string", + "description": "Natural-language description of the object encoded as a single JSON String containing HTML markup. Visual elements such as thumbnail images MAY be included. An object MAY contain a content property" + }, + "url": { + "type": "string", + "format": "url", + "description": "An IRI [RFC3987] identifying a resource providing an HTML representation of the object. An object MAY contain a url property" + }, + "objectType": { + "type": "string", + "description": "Identifies the type of object. An object MAY contain an objectType property whose value is a JSON String that is non-empty and matches either the \"isegment-nz-nc\" or the \"IRI\" production in [RFC3987]. Note that the use of a relative reference other than a simple name is not allowed. If no objectType property is contained, the object has no specific type." + }, + "author": { + "type": "object", + "description": "Describes the entity that created or authored the object. An object MAY contain a single author property whose value is an Object of any type. Note that the author field identifies the entity that created the object and does not necessarily identify the entity that published the object. For instance, it may be the case that an object created by one person is posted and published to a system by an entirely different entity", + "javaInterfaces": ["java.io.Serializable"], + "extends": { + "$ref": "./object.json" + } + }, + "published": { + "type": "string", + "description": "[RFC3339] date-time. The date and time at which the object was published. An object MAY contain a published property", + "format": "date-time" + }, + "updated": { + "type": "string", + "description": "[RFC3339] date-time. The date and time at which a previously published object has been modified. An Object MAY contain an updated property.", + "format": "date-time" + }, + "attachments": { + "title": "Related objects", + "description": "A collection of one or more additional, associated objects, similar to the concept of attached files in an email message. An object MAY have an attachedObjects property whose value is a JSON Array of Objects.", + "type": "array", + "items": { + "type": "object", + "javaType": "org.apache.streams.pojo.json.Attachment", + "javaInterfaces": ["java.io.Serializable"], + "$ref": "./object.json" + } + }, + "upstreamDuplicates": { + "type": "array", + "description": "A JSON Array of one or more absolute IRI's [RFC3987] identifying objects that duplicate this object's content. An object SHOULD contain an upstreamDuplicates property when a publisher is knowingly duplicating with a new ID the content from another object. This MAY be used as a hint for consumers to use when resolving duplicates between objects received from different sources", + "items": { + "type": "string" + } + }, + "downstreamDuplicates": { + "type": "array", + "description": "A JSON Array of one or more absolute IRI's [RFC3987] identifying objects that duplicate this object's content. An object SHOULD contain a downstreamDuplicates property when there are known objects, possibly in a different system, that duplicate the content in this object. This MAY be used as a hint for consumers to use when resolving duplicates between objects received from different sources.", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true, + "links": [ + { + "rel": "describedby", + "href": "./objectType/{objectType}.json" + } + ] +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/alert.json ---------------------------------------------------------------------- diff --git a/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/alert.json b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/alert.json new file mode 100644 index 0000000..0fa4d60 --- /dev/null +++ b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/alert.json @@ -0,0 +1,19 @@ +{ + "$schema": "http://json-schema.org/draft-03/schema", + "$license": [ + "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", + "http://www.apache.org/licenses/LICENSE-2.0" + ], + "id": "http://streams.incubator.apache.org/site/0.3-incubating-SNAPSHOT/streams-schemas/objectTypes/alert.json#", + "type": "object", + "title": "alert", + "extends": { + "$ref": "../object.json" + }, + "properties": { + "objectType": { + "type": "string", + "default": "alert" + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/application.json ---------------------------------------------------------------------- diff --git a/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/application.json b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/application.json new file mode 100644 index 0000000..ea3219d --- /dev/null +++ b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/application.json @@ -0,0 +1,19 @@ +{ + "$schema": "http://json-schema.org/draft-03/schema", + "$license": [ + "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", + "http://www.apache.org/licenses/LICENSE-2.0" + ], + "id": "http://streams.incubator.apache.org/site/0.3-incubating-SNAPSHOT/streams-schemas/objectTypes/application.json#", + "type": "object", + "title": "application", + "extends": { + "$ref": "../object.json" + }, + "properties": { + "objectType": { + "type": "string", + "default": "application" + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/article.json ---------------------------------------------------------------------- diff --git a/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/article.json b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/article.json new file mode 100644 index 0000000..2260532 --- /dev/null +++ b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/article.json @@ -0,0 +1,19 @@ +{ + "$schema": "http://json-schema.org/draft-03/schema", + "$license": [ + "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", + "http://www.apache.org/licenses/LICENSE-2.0" + ], + "id": "http://streams.incubator.apache.org/site/0.3-incubating-SNAPSHOT/streams-schemas/objectTypes/article.json#", + "type": "object", + "title": "article", + "extends": { + "$ref": "../object.json" + }, + "properties": { + "objectType": { + "type": "string", + "default": "article" + } + } +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/audio.json ---------------------------------------------------------------------- diff --git a/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/audio.json b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/audio.json new file mode 100644 index 0000000..1e94405 --- /dev/null +++ b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/audio.json @@ -0,0 +1,19 @@ +{ + "$schema": "http://json-schema.org/draft-03/schema", + "$license": [ + "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", + "http://www.apache.org/licenses/LICENSE-2.0" + ], + "id": "http://streams.incubator.apache.org/site/0.3-incubating-SNAPSHOT/streams-schemas/objectTypes/audio.json#", + "type": "object", + "title": "audio", + "extends": { + "$ref": "../object.json" + }, + "properties": { + "objectType": { + "type": "string", + "default": "audio" + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/badge.json ---------------------------------------------------------------------- diff --git a/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/badge.json b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/badge.json new file mode 100644 index 0000000..08af422 --- /dev/null +++ b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/badge.json @@ -0,0 +1,19 @@ +{ + "$schema": "http://json-schema.org/draft-03/schema", + "$license": [ + "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", + "http://www.apache.org/licenses/LICENSE-2.0" + ], + "id": "http://streams.incubator.apache.org/site/0.3-incubating-SNAPSHOT/streams-schemas/objectTypes/badge.json#", + "type": "object", + "title": "badge", + "extends": { + "$ref": "../object.json" + }, + "properties": { + "objectType": { + "type": "string", + "default": "badge" + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/binary.json ---------------------------------------------------------------------- diff --git a/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/binary.json b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/binary.json new file mode 100644 index 0000000..8723f51 --- /dev/null +++ b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/binary.json @@ -0,0 +1,19 @@ +{ + "$schema": "http://json-schema.org/draft-03/schema", + "$license": [ + "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", + "http://www.apache.org/licenses/LICENSE-2.0" + ], + "id": "http://streams.incubator.apache.org/site/0.3-incubating-SNAPSHOT/streams-schemas/objectTypes/binary.json#", + "type": "object", + "title": "binary", + "extends": { + "$ref": "../object.json" + }, + "properties": { + "objectType": { + "type": "string", + "default": "binary" + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/bookmark.json ---------------------------------------------------------------------- diff --git a/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/bookmark.json b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/bookmark.json new file mode 100644 index 0000000..808555f --- /dev/null +++ b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/bookmark.json @@ -0,0 +1,19 @@ +{ + "$schema": "http://json-schema.org/draft-03/schema", + "$license": [ + "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", + "http://www.apache.org/licenses/LICENSE-2.0" + ], + "id": "http://streams.incubator.apache.org/site/0.3-incubating-SNAPSHOT/streams-schemas/objectTypes/badge.json#", + "type": "object", + "title": "bookmark", + "extends": { + "$ref": "../object.json" + }, + "properties": { + "objectType": { + "type": "string", + "default": "bookmark" + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/comment.json ---------------------------------------------------------------------- diff --git a/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/comment.json b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/comment.json new file mode 100644 index 0000000..1ec2dc2 --- /dev/null +++ b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/comment.json @@ -0,0 +1,19 @@ +{ + "$schema": "http://json-schema.org/draft-03/schema", + "$license": [ + "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", + "http://www.apache.org/licenses/LICENSE-2.0" + ], + "id": "http://streams.incubator.apache.org/site/0.3-incubating-SNAPSHOT/streams-schemas/objectTypes/comment.json#", + "type": "object", + "title": "comment", + "extends": { + "$ref": "../object.json" + }, + "properties": { + "objectType": { + "type": "string", + "default": "comment" + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/device.json ---------------------------------------------------------------------- diff --git a/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/device.json b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/device.json new file mode 100644 index 0000000..74dfb39 --- /dev/null +++ b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/device.json @@ -0,0 +1,19 @@ +{ + "$schema": "http://json-schema.org/draft-03/schema", + "$license": [ + "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", + "http://www.apache.org/licenses/LICENSE-2.0" + ], + "id": "http://streams.incubator.apache.org/site/0.3-incubating-SNAPSHOT/streams-schemas/objectTypes/device.json#", + "type": "object", + "title": "device", + "extends": { + "$ref": "../object.json" + }, + "properties": { + "objectType": { + "type": "string", + "default": "device" + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/event.json ---------------------------------------------------------------------- diff --git a/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/event.json b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/event.json new file mode 100644 index 0000000..f6e5fb6 --- /dev/null +++ b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/event.json @@ -0,0 +1,51 @@ +{ + "$schema": "http://json-schema.org/draft-03/schema", + "$license": [ + "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", + "http://www.apache.org/licenses/LICENSE-2.0" + ], + "id": "http://streams.incubator.apache.org/site/0.3-incubating-SNAPSHOT/streams-schemas/objectTypes/event.json#", + "type": "object", + "title": "event", + "description": "xCal fromat for vevent", + "extends": [ + { + "$ref": "../object.json" + }, + { + "$ref": "http://www.json-schema.org/calendar" + } + ], + "properties": { + "objectType": { + "type": "string", + "default": "event" + }, + "attendedBy": { + "type": "../collection.json" + }, + "attending": { + "type": "../collection.json" + }, + "endTime": { + "type": "string", + "format": "date-time" + }, + "invited": { + "type": "../collection.json" + }, + "maybeAttending": { + "type": "../collection.json" + }, + "notAttendedBy": { + "type": "../collection.json" + }, + "notAttending": { + "type": "../collection.json" + }, + "startTime": { + "type": "string", + "format": "date-time" + } + } +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/file.json ---------------------------------------------------------------------- diff --git a/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/file.json b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/file.json new file mode 100644 index 0000000..50ec239 --- /dev/null +++ b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/file.json @@ -0,0 +1,25 @@ +{ + "$schema": "http://json-schema.org/draft-03/schema", + "$license": [ + "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", + "http://www.apache.org/licenses/LICENSE-2.0" + ], + "id": "http://streams.incubator.apache.org/site/0.3-incubating-SNAPSHOT/streams-schemas/objectTypes/file.json#", + "type": "object", + "title": "file", + "extends": { + "$ref": "../object.json" + }, + "properties": { + "objectType": { + "type": "string", + "default": "file" + }, + "fileUrl": { + "type": "string" + }, + "mimeType": { + "type": "string" + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/folder.json ---------------------------------------------------------------------- diff --git a/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/folder.json b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/folder.json new file mode 100644 index 0000000..35592c1 --- /dev/null +++ b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/folder.json @@ -0,0 +1,19 @@ +{ + "$schema": "http://json-schema.org/draft-03/schema", + "$license": [ + "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", + "http://www.apache.org/licenses/LICENSE-2.0" + ], + "id": "http://streams.incubator.apache.org/site/0.3-incubating-SNAPSHOT/streams-schemas/objectTypes/folder.json#", + "type": "object", + "title": "folder", + "extends": { + "$ref": "../object.json" + }, + "properties": { + "objectType": { + "type": "string", + "default": "folder" + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/game.json ---------------------------------------------------------------------- diff --git a/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/game.json b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/game.json new file mode 100644 index 0000000..ca761ed --- /dev/null +++ b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/game.json @@ -0,0 +1,19 @@ +{ + "$schema": "http://json-schema.org/draft-03/schema", + "$license": [ + "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", + "http://www.apache.org/licenses/LICENSE-2.0" + ], + "id": "http://streams.incubator.apache.org/site/0.3-incubating-SNAPSHOT/streams-schemas/objectTypes/game.json#", + "type": "object", + "title": "game", + "extends": { + "$ref": "../object.json" + }, + "properties": { + "objectType": { + "type": "string", + "default": "game" + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/group.json ---------------------------------------------------------------------- diff --git a/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/group.json b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/group.json new file mode 100644 index 0000000..8623922 --- /dev/null +++ b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/group.json @@ -0,0 +1,19 @@ +{ + "$schema": "http://json-schema.org/draft-03/schema", + "$license": [ + "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", + "http://www.apache.org/licenses/LICENSE-2.0" + ], + "id": "http://streams.incubator.apache.org/site/0.3-incubating-SNAPSHOT/streams-schemas/objectTypes/group.json#", + "type": "object", + "title": "group", + "extends": { + "$ref": "../object.json" + }, + "properties": { + "objectType": { + "type": "string", + "default": "group" + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/image.json ---------------------------------------------------------------------- diff --git a/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/image.json b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/image.json new file mode 100644 index 0000000..7eca770 --- /dev/null +++ b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/image.json @@ -0,0 +1,22 @@ +{ + "$schema": "http://json-schema.org/draft-03/schema", + "$license": [ + "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", + "http://www.apache.org/licenses/LICENSE-2.0" + ], + "id": "http://streams.incubator.apache.org/site/0.3-incubating-SNAPSHOT/streams-schemas/objectTypes/image.json#", + "type": "object", + "title": "image", + "extends": { + "$ref": "../media_link.json" + }, + "properties": { + "objectType": { + "type": "string", + "default": "image" + }, + "fullImage": { + "type": "string" + } + } +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/issue.json ---------------------------------------------------------------------- diff --git a/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/issue.json b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/issue.json new file mode 100644 index 0000000..29f2fad --- /dev/null +++ b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/issue.json @@ -0,0 +1,25 @@ +{ + "$schema": "http://json-schema.org/draft-03/schema", + "$license": [ + "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", + "http://www.apache.org/licenses/LICENSE-2.0" + ], + "id": "http://streams.incubator.apache.org/site/0.3-incubating-SNAPSHOT/streams-schemas/objectTypes/issue.json#", + "type": "object", + "title": "issue", + "extends": { + "$ref": "../object.json" + }, + "properties": { + "objectType": { + "type": "string", + "default": "issue" + }, + "types": { + "type": "array", + "items": { + "type": "string" + } + } + } +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/job.json ---------------------------------------------------------------------- diff --git a/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/job.json b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/job.json new file mode 100644 index 0000000..b832f16 --- /dev/null +++ b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/job.json @@ -0,0 +1,19 @@ +{ + "$schema": "http://json-schema.org/draft-03/schema", + "$license": [ + "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", + "http://www.apache.org/licenses/LICENSE-2.0" + ], + "id": "http://streams.incubator.apache.org/site/0.3-incubating-SNAPSHOT/streams-schemas/objectTypes/job.json#", + "type": "object", + "title": "job", + "extends": { + "$ref": "../object.json" + }, + "properties": { + "objectType": { + "type": "string", + "default": "job" + } + } +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/6187265f/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/list.json ---------------------------------------------------------------------- diff --git a/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/list.json b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/list.json new file mode 100644 index 0000000..c93a5e8 --- /dev/null +++ b/streams-schemas/streams-schema-activitystreams/src/main/jsonschema/objectTypes/list.json @@ -0,0 +1,28 @@ +{ + "$schema": "http://json-schema.org/draft-03/schema", + "$license": [ + "http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0", + "http://www.apache.org/licenses/LICENSE-2.0" + ], + "id": "http://streams.incubator.apache.org/site/0.3-incubating-SNAPSHOT/streams-schemas/objectTypes/list.json#", + "type": "object", + "title": "list", + "extends": { + "$ref": "../object.json" + }, + "properties": { + "objectType": { + "type": "string", + "default": "list" + }, + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "$ref": "../object.json" + } + } + } + } +}