http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/read.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/read.json b/streams-schemas/src/site/resources/verbs/read.json deleted file mode 100644 index e797f41..0000000 --- a/streams-schemas/src/site/resources/verbs/read.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "Read", - "description": "Indicates that the actor read the object. This is typically only applicable for objects representing printed or written content, such as a book, a message or a comment.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "read" - }, - "title": { - "type": "string", - "default": "{actor.displayName} read {object.displayName}" - } - } -}
http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/receive.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/receive.json b/streams-schemas/src/site/resources/verbs/receive.json deleted file mode 100644 index 0d44aef..0000000 --- a/streams-schemas/src/site/resources/verbs/receive.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "Receive", - "description": "Indicates that the actor is receiving an object. Examples include a person receiving a badge object. The object identifies the object being received.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "receive" - }, - "title": { - "type": "string", - "default": "{actor.displayName} received {object.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/reject.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/reject.json b/streams-schemas/src/site/resources/verbs/reject.json deleted file mode 100644 index b82fac7..0000000 --- a/streams-schemas/src/site/resources/verbs/reject.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "Reject", - "description": "Indicates that the actor has rejected the object.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "reject" - }, - "title": { - "type": "string", - "default": "{actor.displayName} rejected {object.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/remove-friend.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/remove-friend.json b/streams-schemas/src/site/resources/verbs/remove-friend.json deleted file mode 100644 index 073441d..0000000 --- a/streams-schemas/src/site/resources/verbs/remove-friend.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "UnFriend", - "description": "Indicates that the actor has removed the object from the collection of friends.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "remove-friend" - }, - "title": { - "type": "string", - "default": "{actor.displayName} removed friend {object.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/remove.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/remove.json b/streams-schemas/src/site/resources/verbs/remove.json deleted file mode 100644 index 5b694db..0000000 --- a/streams-schemas/src/site/resources/verbs/remove.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "Remove", - "description": "Indicates that the actor has removed the object from the target.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "remove" - }, - "title": { - "type": "string", - "default": "{actor.displayName} removed {object.displayName} from {target.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/replace.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/replace.json b/streams-schemas/src/site/resources/verbs/replace.json deleted file mode 100644 index 198c8c5..0000000 --- a/streams-schemas/src/site/resources/verbs/replace.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "Replace", - "description": "Indicates that the actor has replaced the target with the object.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "replace" - }, - "title": { - "type": "string", - "default": "{actor.displayName} replaced {target.displayName} with {object.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/request-friend.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/request-friend.json b/streams-schemas/src/site/resources/verbs/request-friend.json deleted file mode 100644 index 9e246ca..0000000 --- a/streams-schemas/src/site/resources/verbs/request-friend.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "RequestFriend", - "description": "Indicates the creation of a friendship that has not yet been reciprocated by the object.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "request-friend" - }, - "title": { - "type": "string", - "default": "{actor.displayName} sent a friend request to {object.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/request.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/request.json b/streams-schemas/src/site/resources/verbs/request.json deleted file mode 100644 index 35807f5..0000000 --- a/streams-schemas/src/site/resources/verbs/request.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "Request", - "description": "Indicates that the actor has requested the object. If a target is specified, it indicates the entity from which the object is being requested.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "request" - }, - "title": { - "type": "string", - "default": "{actor.displayName} requested {object.displayName} from {target.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/resolve.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/resolve.json b/streams-schemas/src/site/resources/verbs/resolve.json deleted file mode 100644 index 0b71ce3..0000000 --- a/streams-schemas/src/site/resources/verbs/resolve.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "Resolve", - "description": "Indicates that the actor has resolved the object. For instance, the object could represent a ticket being tracked in an issue management system.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "resolve" - }, - "title": { - "type": "string", - "default": "{actor.displayName} resolved {object.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/retract.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/retract.json b/streams-schemas/src/site/resources/verbs/retract.json deleted file mode 100644 index ff7cbe7..0000000 --- a/streams-schemas/src/site/resources/verbs/retract.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "Retract", - "description": "Indicates that the actor has retracted the object. For instance, if an actor wishes to retract a previously published activity, the object would be the previously published activity that is being retracted.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "retract" - }, - "title": { - "type": "string", - "default": "{actor.displayName} retracted {object.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/return.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/return.json b/streams-schemas/src/site/resources/verbs/return.json deleted file mode 100644 index 14a8cfb..0000000 --- a/streams-schemas/src/site/resources/verbs/return.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "Return", - "description": "Indicates that the actor has returned the object. If a target is specified, it indicates the entity to which the object was returned.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "return" - }, - "title": { - "type": "string", - "default": "{actor.displayName} returned {object.displayName} to {target.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/rsvp-maybe.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/rsvp-maybe.json b/streams-schemas/src/site/resources/verbs/rsvp-maybe.json deleted file mode 100644 index 4838406..0000000 --- a/streams-schemas/src/site/resources/verbs/rsvp-maybe.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "Rsvp Maybe", - "description": "To indicate that the actor may attend an event", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "rsvp-maybe" - }, - "title": { - "type": "string", - "default": "{actor.displayName} might attend {object.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/rsvp-no.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/rsvp-no.json b/streams-schemas/src/site/resources/verbs/rsvp-no.json deleted file mode 100644 index dc36ee3..0000000 --- a/streams-schemas/src/site/resources/verbs/rsvp-no.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "Rsvp No", - "description": "To indicate that the actor will not attend an event", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "rsvp-no" - }, - "title": { - "type": "string", - "default": "{actor.displayName} will not attend {object.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/rsvp-yes.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/rsvp-yes.json b/streams-schemas/src/site/resources/verbs/rsvp-yes.json deleted file mode 100644 index f62141e..0000000 --- a/streams-schemas/src/site/resources/verbs/rsvp-yes.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "Rsvp Yes", - "description": "To indicate that the actor will attend an event", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "rsvp-yes" - }, - "title": { - "type": "string", - "default": "{actor.displayName} is attending {object.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/satisfy.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/satisfy.json b/streams-schemas/src/site/resources/verbs/satisfy.json deleted file mode 100644 index a719680..0000000 --- a/streams-schemas/src/site/resources/verbs/satisfy.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "Satisfy", - "description": "Indicates that the actor has satisfied the object. If a target is specified, it indicate the context within which the object was satisfied. For instance, if a person satisfies the requirements for a particular challenge, the person is the actor; the requirement is the object; and the challenge is the target.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "satisfy" - }, - "title": { - "type": "string", - "default": "{actor.displayName} has satisfied {object.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/save.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/save.json b/streams-schemas/src/site/resources/verbs/save.json deleted file mode 100644 index 1bdbc4b..0000000 --- a/streams-schemas/src/site/resources/verbs/save.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "Save", - "description": "Indicates that the actor has called out the object as being of interest primarily to him- or herself. Though this action MAY be shared publicly, the implication is that the object has been saved primarily for the actor's own benefit rather than to show it to others as would be indicated by the \"share\" verb.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "save" - }, - "title": { - "type": "string", - "default": "{actor.displayName} saved {object.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/schedule.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/schedule.json b/streams-schemas/src/site/resources/verbs/schedule.json deleted file mode 100644 index a9824a3..0000000 --- a/streams-schemas/src/site/resources/verbs/schedule.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "Schedule", - "description": "Indicates that the actor has scheduled the object. For instance, scheduling a meeting.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "schedule" - }, - "title": { - "type": "string", - "default": "{actor.displayName} scheduled {object.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/search.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/search.json b/streams-schemas/src/site/resources/verbs/search.json deleted file mode 100644 index 3263bbb..0000000 --- a/streams-schemas/src/site/resources/verbs/search.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "Search", - "description": "Indicates that the actor is or has searched for the object. If a target is specified, it indicates the context within which the search is or has been conducted.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "satisfy" - }, - "title": { - "type": "string", - "default": "{actor.displayName} search for {object.displayName} in {target.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/sell.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/sell.json b/streams-schemas/src/site/resources/verbs/sell.json deleted file mode 100644 index 16aa351..0000000 --- a/streams-schemas/src/site/resources/verbs/sell.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "Sell", - "description": "Indicates that the actor has sold the object. If a target is specified, it indicates the entity to which the object was sold.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "sell" - }, - "title": { - "type": "string", - "default": "{actor.displayName} sold {object.displayName} to {target.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/send.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/send.json b/streams-schemas/src/site/resources/verbs/send.json deleted file mode 100644 index ead4108..0000000 --- a/streams-schemas/src/site/resources/verbs/send.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "Share", - "description": "Indicates that the actor has called out the object to readers. In most cases, the actor did not create the object being shared, but is instead drawing attention to it.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "share" - }, - "title": { - "type": "string", - "default": "{actor.displayName} shared {object.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/share.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/share.json b/streams-schemas/src/site/resources/verbs/share.json deleted file mode 100644 index 18c0aea..0000000 --- a/streams-schemas/src/site/resources/verbs/share.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "Share", - "description": "To share an object.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "share" - }, - "title": { - "type": "string", - "default": "{actor.displayName} shared {object.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/sponsor.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/sponsor.json b/streams-schemas/src/site/resources/verbs/sponsor.json deleted file mode 100644 index cc6f5cf..0000000 --- a/streams-schemas/src/site/resources/verbs/sponsor.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "Sponsor", - "description": "Indicates that the actor has sponsored the object. If a target is specified, it indicates the context within which the sponsorship is offered. For instance, a company can sponsor an event; or an individual can sponsor a project; etc.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "sponsor" - }, - "title": { - "type": "string", - "default": "{actor.displayName} sponsored {object.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/start.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/start.json b/streams-schemas/src/site/resources/verbs/start.json deleted file mode 100644 index 61eaf06..0000000 --- a/streams-schemas/src/site/resources/verbs/start.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "Start", - "description": "Indicates that the actor has started the object. For instance, when a person starts a project.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "start" - }, - "title": { - "type": "string", - "default": "{actor.displayName} started {object.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/stop-following.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/stop-following.json b/streams-schemas/src/site/resources/verbs/stop-following.json deleted file mode 100644 index e09317d..0000000 --- a/streams-schemas/src/site/resources/verbs/stop-following.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "UnFollow", - "description": "Indicates that the actor has stopped following the object.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "follow" - }, - "title": { - "type": "string", - "default": "{actor.displayName} stopped following {object.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/submit.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/submit.json b/streams-schemas/src/site/resources/verbs/submit.json deleted file mode 100644 index c1d25b1..0000000 --- a/streams-schemas/src/site/resources/verbs/submit.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "Submit", - "description": "Indicates that the actor has submitted the object. If a target is specified, it indicates the entity to which the object was submitted.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "submit" - }, - "title": { - "type": "string", - "default": "{actor.displayName} submitted {object.displayName} to {target.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/tag.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/tag.json b/streams-schemas/src/site/resources/verbs/tag.json deleted file mode 100644 index 6208eae..0000000 --- a/streams-schemas/src/site/resources/verbs/tag.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "Tag", - "description": "Indicates that the actor has associated the object with the target. For example, if the actor specifies that a particular user appears in a photo. the object is the user and the target is the photo.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "tag" - }, - "title": { - "type": "string", - "default": "{actor.displayName} tagged {object.displayName} as {target.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/terminate.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/terminate.json b/streams-schemas/src/site/resources/verbs/terminate.json deleted file mode 100644 index 280eb31..0000000 --- a/streams-schemas/src/site/resources/verbs/terminate.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "Terminate", - "description": "Indicates that the actor has terminated the object.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "terminate" - }, - "title": { - "type": "string", - "default": "{actor.displayName} terminated {object.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/tie.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/tie.json b/streams-schemas/src/site/resources/verbs/tie.json deleted file mode 100644 index 7530ed2..0000000 --- a/streams-schemas/src/site/resources/verbs/tie.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "Tie", - "description": "Indicates that the actor has neither won or lost the object. This verb is generally only applicable when the object represents some form of competition, such as a game.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "tie" - }, - "title": { - "type": "string", - "default": "{actor.displayName} tied at {object.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/unfavorite.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/unfavorite.json b/streams-schemas/src/site/resources/verbs/unfavorite.json deleted file mode 100644 index bfa9c20..0000000 --- a/streams-schemas/src/site/resources/verbs/unfavorite.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "UnFavorite", - "description": "Indicates that the actor has removed the object from the collection of favorited items.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "unfavorite" - }, - "title": { - "type": "string", - "default": "{actor.displayName} removed {object.displayName} as a favorite" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/unlike.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/unlike.json b/streams-schemas/src/site/resources/verbs/unlike.json deleted file mode 100644 index 4dc75f6..0000000 --- a/streams-schemas/src/site/resources/verbs/unlike.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "UnLike", - "description": "Indicates that the actor has removed the object from the collection of liked items.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "unlike" - }, - "title": { - "type": "string", - "default": "{actor.displayName} no longer likes {object.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/unsatisfy.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/unsatisfy.json b/streams-schemas/src/site/resources/verbs/unsatisfy.json deleted file mode 100644 index 8ea075b..0000000 --- a/streams-schemas/src/site/resources/verbs/unsatisfy.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "UnSatisfy", - "description": "Indicates that the actor has not satisfied the object. If a target is specified, it indicates the context within which the object was not satisfied. For instance, if a person fails to satisfy the requirements of some particular challenge, the person is the actor; the requirement is the object and the challenge is the target.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "unsatisfy" - }, - "title": { - "type": "string", - "default": "{actor.displayName} has not satisfied {object.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/unsave.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/unsave.json b/streams-schemas/src/site/resources/verbs/unsave.json deleted file mode 100644 index e45a97f..0000000 --- a/streams-schemas/src/site/resources/verbs/unsave.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "UnSave", - "description": "Indicates that the actor has removed the object from the collection of saved items.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "unsave" - }, - "title": { - "type": "string", - "default": "{actor.displayName} unsaved {object.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/unshare.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/unshare.json b/streams-schemas/src/site/resources/verbs/unshare.json deleted file mode 100644 index 4ca924b..0000000 --- a/streams-schemas/src/site/resources/verbs/unshare.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "UnSave", - "description": "Indicates that the actor is no longer sharing the object. If a target is specified, it indicates the entity with whom the object is no longer being shared.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "unshare" - }, - "title": { - "type": "string", - "default": "{actor.displayName} is no longer sharing {object.displayName} with {target.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/update.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/update.json b/streams-schemas/src/site/resources/verbs/update.json deleted file mode 100644 index 4b143fc..0000000 --- a/streams-schemas/src/site/resources/verbs/update.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "Update", - "description": "The \"update\" verb indicates that the actor has modified the object. Use of the \"update\" verb is generally reserved to indicate modifications to existing objects or data such as changing an existing user's profile information.", - "notes": "The new property value can be a scalar value or an object. See the property object type", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "update" - }, - "title": { - "type": "string", - "default": "{actor.displayName} updated {target.displayName}'s {object.displayName} to {object.value}" - }, - "object": { - "type": "object", - "$ref": "../object.json" - }, - "target": { - "type": "object", - "optional": true, - "$ref": "../object.json" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/use.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/use.json b/streams-schemas/src/site/resources/verbs/use.json deleted file mode 100644 index d5a79fd..0000000 --- a/streams-schemas/src/site/resources/verbs/use.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "Use", - "description": "Indicates that the actor has used the object in some manner.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "use" - }, - "title": { - "type": "string", - "default": "{actor.displayName} used {object.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/watch.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/watch.json b/streams-schemas/src/site/resources/verbs/watch.json deleted file mode 100644 index 192d56e..0000000 --- a/streams-schemas/src/site/resources/verbs/watch.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "Watch", - "description": "Indicates that the actor has watched the object. This verb is typically applicable only when the object represents dynamic, visible content such as a movie, a television show or a public performance.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "watch" - }, - "title": { - "type": "string", - "default": "{actor.displayName} watched {object.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/site/resources/verbs/win.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/site/resources/verbs/win.json b/streams-schemas/src/site/resources/verbs/win.json deleted file mode 100644 index a5bef2a..0000000 --- a/streams-schemas/src/site/resources/verbs/win.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$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": "#", - "type": "object", - "title": "Win", - "description": "Indicates that the actor has won the object. For instance, if a person wins a game.", - "extends": { - "$ref": "../activity.json" - }, - "properties": { - "verb": { - "type": "string", - "default": "win" - }, - "title": { - "type": "string", - "default": "{actor.displayName} won {object.displayName}" - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/java/org/apache/streams/schema/test/SchemaOrderingTests.java ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/java/org/apache/streams/schema/test/SchemaOrderingTests.java b/streams-schemas/src/test/java/org/apache/streams/schema/test/SchemaOrderingTests.java new file mode 100644 index 0000000..9979250 --- /dev/null +++ b/streams-schemas/src/test/java/org/apache/streams/schema/test/SchemaOrderingTests.java @@ -0,0 +1,146 @@ +package org.apache.streams.schema.test; + +import com.google.common.base.Optional; +import com.google.common.base.Predicate; +import com.google.common.collect.Iterators; +import com.google.common.collect.Lists; +import org.apache.streams.schema.Schema; +import org.apache.streams.schema.SchemaStore; +import org.junit.Test; + +import java.io.File; +import java.util.Iterator; +import java.util.List; + +/** + * Created by sblackmon on 5/3/16. + */ +public class SchemaOrderingTests { + + @Test + public void compareVerbParent() { + SchemaStore schemaStore = new SchemaStore(); + File update = new File("target/classes/verbs/update.json"); + schemaStore.create(update.toURI()); + File activity = new File("target/classes/activity.json"); + schemaStore.create(activity.toURI()); + assert( schemaStore.compare( schemaStore.getByUri(update.toURI()).get(), schemaStore.getByUri(activity.toURI()).get()) == 1); + Iterator<Schema> schemaIterator = schemaStore.getSchemaIterator(); + assertContainsItemsEndingWithInOrder( + schemaIterator, + Lists.newArrayList( + "activity.json", + "update.json" + ) + ); + } + + @Test + public void compareObjectTypeParent() { + SchemaStore schemaStore = new SchemaStore(); + File alert = new File("target/classes/objectTypes/alert.json"); + schemaStore.create(alert.toURI()); + File object = new File("target/classes/object.json"); + schemaStore.create(object.toURI()); + assert( schemaStore.compare( schemaStore.getByUri(object.toURI()).get(), schemaStore.getByUri(alert.toURI()).get()) == -1); + Iterator<Schema> schemaIterator = schemaStore.getSchemaIterator(); + assertContainsItemsEndingWithInOrder( + schemaIterator, + Lists.newArrayList( + "object.json", + "alert.json" + ) + ); + } + + @Test + public void compareUnrelated() { + SchemaStore schemaStore = new SchemaStore(); + File alert = new File("target/classes/objectTypes/alert.json"); + schemaStore.create(alert.toURI()); + File update = new File("target/classes/verbs/update.json"); + schemaStore.create(update.toURI()); + assert( schemaStore.compare( schemaStore.getByUri(alert.toURI()).get(), schemaStore.getByUri(update.toURI()).get()) == 0); + } + + @Test + public void compareVerbFieldRef() { + SchemaStore schemaStore = new SchemaStore(); + File update = new File("target/classes/verbs/update.json"); + schemaStore.create(update.toURI()); + File object = new File("target/classes/object.json"); + schemaStore.create(object.toURI()); + assert( schemaStore.compare( schemaStore.getByUri(update.toURI()).get(), schemaStore.getByUri(object.toURI()).get()) == 1); + Iterator<Schema> schemaIterator = schemaStore.getSchemaIterator(); + assertContainsItemsEndingWithInOrder( + schemaIterator, + Lists.newArrayList( + "object.json", + "update.json" + ) + ); + } + + @Test + public void compareObjectTypeFieldRef() { + SchemaStore schemaStore = new SchemaStore(); + File alert = new File("target/classes/objectTypes/alert.json"); + schemaStore.create(alert.toURI()); + File media_link = new File("target/classes/media_link.json"); + schemaStore.create(media_link.toURI()); + assert( schemaStore.compare( schemaStore.getByUri(media_link.toURI()).get(), schemaStore.getByUri(alert.toURI()).get()) == -1); + Iterator<Schema> schemaIterator = schemaStore.getSchemaIterator(); + assertContainsItemsEndingWithInOrder( + schemaIterator, + Lists.newArrayList( + "media_link.json", + "object.json", + "alert.json" + ) + ); + } + + @Test + public void compareVerbAncestorIndirect() { + SchemaStore schemaStore = new SchemaStore(); + File update = new File("target/classes/verbs/update.json"); + schemaStore.create(update.toURI()); + File media_link = new File("target/classes/media_link.json"); + assert( schemaStore.compare( schemaStore.getByUri(media_link.toURI()).get(), schemaStore.getByUri(update.toURI()).get()) == -1); + Iterator<Schema> schemaIterator = schemaStore.getSchemaIterator(); + assertContainsItemsEndingWithInOrder( + schemaIterator, + Lists.newArrayList( + "media_link.json", + "update.json" + ) + ); + } + + + public void assertContainsItemsEndingWithInOrder(Iterator<Schema> iterator, List<String> items) { + for( String item : items ) { + Optional<Schema> tryFind = Iterators.tryFind( iterator, new SchemaUriEndsWithPredicate(item) ); + assert( tryFind.isPresent() ); + } + } + + public class SchemaUriEndsWithPredicate implements Predicate<Schema> { + + private String endsWith; + + public SchemaUriEndsWithPredicate(String endsWith) { + this.endsWith = endsWith; + } + + @Override + public boolean apply(Schema input) { + return input.getURI().getPath().endsWith(endsWith); + } + + @Override + public boolean equals(Object object) { + return false; + } + } +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/java/org/apache/streams/schema/test/SchemaStoreTests.java ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/java/org/apache/streams/schema/test/SchemaStoreTests.java b/streams-schemas/src/test/java/org/apache/streams/schema/test/SchemaStoreTests.java new file mode 100644 index 0000000..9e354fe --- /dev/null +++ b/streams-schemas/src/test/java/org/apache/streams/schema/test/SchemaStoreTests.java @@ -0,0 +1,76 @@ +package org.apache.streams.schema.test; + +import com.google.common.base.Optional; +import com.google.common.base.Predicate; +import com.google.common.collect.Iterators; +import com.google.common.collect.Lists; +import org.apache.streams.schema.Schema; +import org.apache.streams.schema.SchemaStore; +import org.junit.Test; + +import java.io.File; +import java.net.URI; +import java.util.Iterator; +import java.util.List; + +/** + * Created by sblackmon on 5/2/16. + */ +public class SchemaStoreTests { + + @Test + public void indexMediaLink() { + SchemaStore schemaStore = new SchemaStore(); + File file = new File("target/classes/media_link.json"); + schemaStore.create(file.toURI()); + assert( schemaStore.getFileUriCount() == 1); + assert( schemaStore.getByUri(file.toURI()).isPresent()); + assert( schemaStore.getById(schemaStore.getByUri(file.toURI()).get().getId()).isPresent()); + } + + @Test + public void indexApprove() { + SchemaStore schemaStore = new SchemaStore(); + File file = new File("target/classes/verbs/approve.json"); + schemaStore.create(file.toURI()); + assert( schemaStore.getFileUriCount() == 4); + assert( schemaStore.getByUri(file.toURI()).isPresent()); + assert( schemaStore.getById(schemaStore.getByUri(file.toURI()).get().getId()).isPresent()); + } + + @Test + public void indexCollection() { + SchemaStore schemaStore = new SchemaStore(); + File file = new File("target/classes/collection.json"); + schemaStore.create(file.toURI()); + assert( schemaStore.getFileUriCount() == 3); + assert( schemaStore.getByUri(file.toURI()).isPresent()); + assert( schemaStore.getById(schemaStore.getByUri(file.toURI()).get().getId()).isPresent()); + Schema collection = schemaStore.getByUri(file.toURI()).get(); + assert( collection.getParent() == null ); + assert( schemaStore.getById( + URI.create("http://streams.incubator.apache.org/site/0.3-incubating-SNAPSHOT/streams-schemas/object.json#" + )).isPresent()); + } + + @Test + public void indexUpdate() { + SchemaStore schemaStore = new SchemaStore(); + File file = new File("target/classes/verbs/update.json"); + schemaStore.create(file.toURI()); + assert( schemaStore.getFileUriCount() == 4); + assert( schemaStore.getByUri(file.toURI()).isPresent()); + assert( schemaStore.getById(schemaStore.getByUri(file.toURI()).get().getId()).isPresent()); + Schema update = schemaStore.getByUri(file.toURI()).get(); + assert( update.getParent() != null ); + assert( update.getParent().getId().getScheme().equals("http")); + assert( update.getParent().getId().getHost().equals("streams.incubator.apache.org")); + assert( update.getParent().getId().getPath().startsWith("/site/0.3-incubating-SNAPSHOT/streams-schemas")); + assert( update.getParent().getId().getPath().endsWith("activity.json")); + } + + // test create from messed up URI + + // test create from URI with messed up reference + +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/accept.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/accept.json b/streams-schemas/src/test/resources/activities/accept.json new file mode 100644 index 0000000..c1dfd5f --- /dev/null +++ b/streams-schemas/src/test/resources/activities/accept.json @@ -0,0 +1,16 @@ +{ + "$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": "Sally" + }, + "verb": "accept", + "object": { + "objectType": "job", + "displayName": "Director of Marketing" + }, + "title": "Sally accepted the Director of Marketing job." +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/access.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/access.json b/streams-schemas/src/test/resources/activities/access.json new file mode 100644 index 0000000..93bc6e2 --- /dev/null +++ b/streams-schemas/src/test/resources/activities/access.json @@ -0,0 +1,17 @@ +{ + "$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": "Joe" + }, + "verb": "access", + "object": { + "objectType": "file", + "displayName": "4Q2012 Sales Forecast.xls" + }, + "published": "2012-12-12T12:12:12Z", + "title": "Joe accessed the file \"4Q2012 Sales Forecast.xls\"" +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/acknowledge.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/acknowledge.json b/streams-schemas/src/test/resources/activities/acknowledge.json new file mode 100644 index 0000000..2b69fa7 --- /dev/null +++ b/streams-schemas/src/test/resources/activities/acknowledge.json @@ -0,0 +1,16 @@ +{ + "$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": "Sally" + }, + "verb": "acknowledge", + "object": { + "objectType": "issue", + "displayName": "#123: There is a problem with the build" + }, + "content": "Sally acknowledged Issue #123" +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/add.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/add.json b/streams-schemas/src/test/resources/activities/add.json new file mode 100644 index 0000000..b4e8151 --- /dev/null +++ b/streams-schemas/src/test/resources/activities/add.json @@ -0,0 +1,21 @@ +{ + "$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": "Joe" + }, + "verb": "add", + "object": { + "objectType": "image", + "displayName": "My cat", + "fullImage": {"url": "http://example.org/cat.jpg"} + }, + "target": { + "objectType": "collection", + "displayName": "Joe's Photo Album", + "objectTypes": ["image"] + } +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/agree.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/agree.json b/streams-schemas/src/test/resources/activities/agree.json new file mode 100644 index 0000000..3034cd8 --- /dev/null +++ b/streams-schemas/src/test/resources/activities/agree.json @@ -0,0 +1,15 @@ +{ + "$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": "Sally" + }, + "verb": "agree", + "object": { + "objectType": "article", + "displayName": "Some Random Article Online" + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/append.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/append.json b/streams-schemas/src/test/resources/activities/append.json new file mode 100644 index 0000000..d8fb3be --- /dev/null +++ b/streams-schemas/src/test/resources/activities/append.json @@ -0,0 +1,16 @@ +{ + "$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": "Joe" + }, + "verb": "append", + "object": {"content": "This is some text"}, + "target": { + "objectType": "file", + "displayName": "log.txt" + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/approve.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/approve.json b/streams-schemas/src/test/resources/activities/approve.json new file mode 100644 index 0000000..b6f378e --- /dev/null +++ b/streams-schemas/src/test/resources/activities/approve.json @@ -0,0 +1,20 @@ +{ + "$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": "Sally" + }, + "verb": "approve", + "object": { + "objectType": "task", + "actor": {"displayName": "Joe"}, + "verb": "join", + "object": { + "objectType": "group", + "displayName": "Administrators" + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/archive.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/archive.json b/streams-schemas/src/test/resources/activities/archive.json new file mode 100644 index 0000000..557dcdf --- /dev/null +++ b/streams-schemas/src/test/resources/activities/archive.json @@ -0,0 +1,15 @@ +{ + "$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": "Joe" + }, + "verb": "archive", + "object": { + "objectType": "file", + "displayName": "4Q2012 Sales Forecast.xls" + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/assign.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/assign.json b/streams-schemas/src/test/resources/activities/assign.json new file mode 100644 index 0000000..51b8a51 --- /dev/null +++ b/streams-schemas/src/test/resources/activities/assign.json @@ -0,0 +1,20 @@ +{ + "$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": "Sally" + }, + "verb": "assign", + "object": { + "objectType": "issue", + "displayName": "Issue #123: Some Issue" + }, + "target": { + "objectType": "person", + "displayName": "Joe" + }, + "title": "Sally assigned Issue #123 to Joe" +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/at.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/at.json b/streams-schemas/src/test/resources/activities/at.json new file mode 100644 index 0000000..64a77f9 --- /dev/null +++ b/streams-schemas/src/test/resources/activities/at.json @@ -0,0 +1,15 @@ +{ + "$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": "Joe" + }, + "verb": "at", + "object": { + "objectType": "place", + "displayName": "Acme, Co." + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/attach.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/attach.json b/streams-schemas/src/test/resources/activities/attach.json new file mode 100644 index 0000000..716616b --- /dev/null +++ b/streams-schemas/src/test/resources/activities/attach.json @@ -0,0 +1,20 @@ +{ + "$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": "Sally" + }, + "verb": "attach", + "object": { + "objectType": "binary", + "data": "dGhpcyBpcyB1bmNvbXByZXNzZWQgZGF0YQo=" + }, + "target": { + "objectType": "issue", + "displayName": "Issue #123" + }, + "title": "Sally added an attachment to Issue #123" +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/attend.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/attend.json b/streams-schemas/src/test/resources/activities/attend.json new file mode 100644 index 0000000..f8c0838 --- /dev/null +++ b/streams-schemas/src/test/resources/activities/attend.json @@ -0,0 +1,15 @@ +{ + "$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": "Joe" + }, + "verb": "attend", + "object": { + "objectType": "event", + "displayName": "Sally's Meeting" + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/author.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/author.json b/streams-schemas/src/test/resources/activities/author.json new file mode 100644 index 0000000..1903700 --- /dev/null +++ b/streams-schemas/src/test/resources/activities/author.json @@ -0,0 +1,15 @@ +{ + "$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": "Sally" + }, + "verb": "author", + "object": { + "objectType": "file", + "displayName": "4Q2012 Sales Forecast.xls" + } +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/authorize.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/authorize.json b/streams-schemas/src/test/resources/activities/authorize.json new file mode 100644 index 0000000..2d9d1b3 --- /dev/null +++ b/streams-schemas/src/test/resources/activities/authorize.json @@ -0,0 +1,23 @@ +{ + "$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": "Joe" + }, + "verb": "authorize", + "object": { + "objectType": "task", + "actor": { + "objectType": "person", + "displayName": "Sally" + }, + "verb": "access", + "object": { + "objectType": "place", + "displayName": "Joe's Home" + } + } +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/borrow.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/borrow.json b/streams-schemas/src/test/resources/activities/borrow.json new file mode 100644 index 0000000..e21809a --- /dev/null +++ b/streams-schemas/src/test/resources/activities/borrow.json @@ -0,0 +1,21 @@ +{ + "$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": "Sally" + }, + "verb": "borrow", + "object": { + "objectType": "book", + "displayName": "Cloud Atlas" + }, + "target": { + "objectType": "person", + "displayName": "Joe" + }, + "title": "Sally borrowed the book 'Cloud Atlas' from Joe" +} + http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/build.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/build.json b/streams-schemas/src/test/resources/activities/build.json new file mode 100644 index 0000000..78878e1 --- /dev/null +++ b/streams-schemas/src/test/resources/activities/build.json @@ -0,0 +1,16 @@ +{ + "$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": "Joe" + }, + "verb": "build", + "object": { + "objectType": "application", + "displayName": "MyApp Builder 12345" + } +} + http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/cancel.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/cancel.json b/streams-schemas/src/test/resources/activities/cancel.json new file mode 100644 index 0000000..b7aba81 --- /dev/null +++ b/streams-schemas/src/test/resources/activities/cancel.json @@ -0,0 +1,16 @@ +{ + "$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": "Sally" + }, + "verb": "cancel", + "object": { + "objectType": "offer", + "displayName": "Free Money!" + }, + "title": "Sally cancelled the offer for free money." +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/checkin.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/checkin.json b/streams-schemas/src/test/resources/activities/checkin.json new file mode 100644 index 0000000..97216b9 --- /dev/null +++ b/streams-schemas/src/test/resources/activities/checkin.json @@ -0,0 +1,16 @@ +{ + "$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": "Joe" + }, + "verb": "checkin", + "object": { + "objectType": "place", + "displayName": "Acme, Co" + }, + "title": "Joe checked in at Acme, Co" +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/close.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/close.json b/streams-schemas/src/test/resources/activities/close.json new file mode 100644 index 0000000..362e3f6 --- /dev/null +++ b/streams-schemas/src/test/resources/activities/close.json @@ -0,0 +1,16 @@ +{ + "$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": "Joe" + }, + "verb": "close", + "object": { + "objectType": "issue", + "displayName": "Issue #123" + }, + "title": "Joe closed issue #123" +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/complete.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/complete.json b/streams-schemas/src/test/resources/activities/complete.json new file mode 100644 index 0000000..06694a7 --- /dev/null +++ b/streams-schemas/src/test/resources/activities/complete.json @@ -0,0 +1,16 @@ +{ + "$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": "Sally" + }, + "verb": "complete", + "object": { + "objectType": "process", + "displayName": "Some long process" + } +} + http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/confirm.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/confirm.json b/streams-schemas/src/test/resources/activities/confirm.json new file mode 100644 index 0000000..9307c38 --- /dev/null +++ b/streams-schemas/src/test/resources/activities/confirm.json @@ -0,0 +1,17 @@ +{ + "$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": "Joe" + }, + "verb": "confirm", + "object": { + "objectType": "issue", + "displayName": "Issue #123" + }, + "title": "Joe confirmed issue #123" +} + http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/consume.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/consume.json b/streams-schemas/src/test/resources/activities/consume.json new file mode 100644 index 0000000..ed907e3 --- /dev/null +++ b/streams-schemas/src/test/resources/activities/consume.json @@ -0,0 +1,16 @@ +{ + "$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": "Sally" + }, + "verb": "consume", + "object": { + "objectType": "product", + "displayName": "Some amazing product" + } +} + http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/create.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/create.json b/streams-schemas/src/test/resources/activities/create.json new file mode 100644 index 0000000..5d8afb3 --- /dev/null +++ b/streams-schemas/src/test/resources/activities/create.json @@ -0,0 +1,15 @@ +{ + "$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": "Sally" + }, + "verb": "create", + "object": { + "objectType": "product", + "displayName": "Some amazing product" + } +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/delete.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/delete.json b/streams-schemas/src/test/resources/activities/delete.json new file mode 100644 index 0000000..6943046 --- /dev/null +++ b/streams-schemas/src/test/resources/activities/delete.json @@ -0,0 +1,16 @@ +{ + "$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": "Joe" + }, + "verb": "delete", + "object": { + "objectType": "file", + "displayName": "4Q2012 Sales Forecast.xls" + }, + "title": "Joe is probably going to get fired." +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/deliver.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/deliver.json b/streams-schemas/src/test/resources/activities/deliver.json new file mode 100644 index 0000000..620f0b5 --- /dev/null +++ b/streams-schemas/src/test/resources/activities/deliver.json @@ -0,0 +1,20 @@ +{ + "$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": "Sally" + }, + "verb": "deliver", + "object": { + "objectType": "note", + "displayName": "Bad News", + "content": "Joe deleted the sales forecast" + }, + "target": { + "objectType": "person", + "displayName": "Joe's Boss" + } +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/deny.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/deny.json b/streams-schemas/src/test/resources/activities/deny.json new file mode 100644 index 0000000..b83ca60 --- /dev/null +++ b/streams-schemas/src/test/resources/activities/deny.json @@ -0,0 +1,23 @@ +{ + "$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": "Joe" + }, + "verb": "deny", + "object": { + "objectType": "task", + "actor": { + "objectType": "person", + "displayName": "Joe" + }, + "verb": "delete", + "object": { + "objectType": "file", + "displayName": "4Q2012 Sales Forecast.xls" + } + } +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/disagree.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/disagree.json b/streams-schemas/src/test/resources/activities/disagree.json new file mode 100644 index 0000000..8614e88 --- /dev/null +++ b/streams-schemas/src/test/resources/activities/disagree.json @@ -0,0 +1,30 @@ +{ + "$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": "Sally" + }, + "verb": "disagree", + "object": { + "actor": { + "objectType": "person", + "displayName": "Joe" + }, + "verb": "deny", + "object": { + "objectType": "task", + "actor": { + "objectType": "person", + "displayName": "Joe" + }, + "verb": "delete", + "object": { + "objectType": "file", + "displayName": "4Q2012 Sales Forecast.xls" + } + } + } +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/dislike.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/dislike.json b/streams-schemas/src/test/resources/activities/dislike.json new file mode 100644 index 0000000..16c2148 --- /dev/null +++ b/streams-schemas/src/test/resources/activities/dislike.json @@ -0,0 +1,15 @@ +{ + "$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": "Joe" + }, + "verb": "dislike", + "object": { + "objectType": "person", + "displayName": "Sally" + } +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/experience.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/experience.json b/streams-schemas/src/test/resources/activities/experience.json new file mode 100644 index 0000000..d81d024 --- /dev/null +++ b/streams-schemas/src/test/resources/activities/experience.json @@ -0,0 +1,16 @@ +{ + "$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": "Sally" + }, + "verb": "experience", + "object": { + "objectType": "event", + "displayName": "Disciplinary Action for Joe" + } +} + http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/favorite.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/favorite.json b/streams-schemas/src/test/resources/activities/favorite.json new file mode 100644 index 0000000..3df99bf --- /dev/null +++ b/streams-schemas/src/test/resources/activities/favorite.json @@ -0,0 +1,15 @@ +{ + "$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": "Joe's Boss" + }, + "verb": "favorite", + "object": { + "objectType": "person", + "displayName": "Sally" + } +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/find.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/find.json b/streams-schemas/src/test/resources/activities/find.json new file mode 100644 index 0000000..9c25c59 --- /dev/null +++ b/streams-schemas/src/test/resources/activities/find.json @@ -0,0 +1,19 @@ +{ + "$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": "Joe" + }, + "verb": "find", + "object": { + "objectType": "application", + "displayName": "Unapproved Software Application" + }, + "location": { + "objectType": "place", + "displayName": "Sally's Computer" + } +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/flag-as-inappropriate.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/flag-as-inappropriate.json b/streams-schemas/src/test/resources/activities/flag-as-inappropriate.json new file mode 100644 index 0000000..6f4d202 --- /dev/null +++ b/streams-schemas/src/test/resources/activities/flag-as-inappropriate.json @@ -0,0 +1,24 @@ +{ + "$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": "Sally's Boss" + }, + "verb": "flag-as-inappropriate", + "object": { + "objectType": "application", + "displayName": "Unapproved Software Application", + "location": { + "displayName": "Sally's Computer" + } + }, + "context": { + "objectType": "issue", + "displayName": "Issue #125", + "types": ["http://example.org/violation-of-corporate-policy"] + } +} + http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/follow.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/follow.json b/streams-schemas/src/test/resources/activities/follow.json new file mode 100644 index 0000000..fc8c992 --- /dev/null +++ b/streams-schemas/src/test/resources/activities/follow.json @@ -0,0 +1,15 @@ +{ + "$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": "Joe" + }, + "verb": "follow", + "object": { + "objectType": "issue", + "displayName": "Issue #125" + } +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/give.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/give.json b/streams-schemas/src/test/resources/activities/give.json new file mode 100644 index 0000000..f145296 --- /dev/null +++ b/streams-schemas/src/test/resources/activities/give.json @@ -0,0 +1,28 @@ +{ + "$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": "Joe's Boss" + }, + "verb": "give", + "object": { + "objectType": "note", + "displayName": "Notice of Employment Termination" + }, + "target": { + "objectType": "collection", + "items": [ + { + "objectType": "person", + "displayName": "Joe" + }, + { + "objectType": "person", + "displayName": "Sally" + } + ] + } +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/host.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/host.json b/streams-schemas/src/test/resources/activities/host.json new file mode 100644 index 0000000..3331353 --- /dev/null +++ b/streams-schemas/src/test/resources/activities/host.json @@ -0,0 +1,15 @@ +{ + "$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": "Bob" + }, + "verb": "host", + "object": { + "objectType": "event", + "displayName": "Job Interview" + } +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/ignore.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/ignore.json b/streams-schemas/src/test/resources/activities/ignore.json new file mode 100644 index 0000000..012013a --- /dev/null +++ b/streams-schemas/src/test/resources/activities/ignore.json @@ -0,0 +1,15 @@ +{ + "$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": "ignore", + "object": { + "objectType": "note", + "displayName": "Joe's request for his job back." + } +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/1bc84dbc/streams-schemas/src/test/resources/activities/insert.json ---------------------------------------------------------------------- diff --git a/streams-schemas/src/test/resources/activities/insert.json b/streams-schemas/src/test/resources/activities/insert.json new file mode 100644 index 0000000..57bda66 --- /dev/null +++ b/streams-schemas/src/test/resources/activities/insert.json @@ -0,0 +1,19 @@ +{ + "$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": "Bob" + }, + "verb": "insert", + "object": { + "objectType": "note", + "displayName": "Notes about Employee Disciplinary Actions" + }, + "target": { + "objectType": "file", + "displayName": "2013 Corporate Policy Updates.doc" + } +}