Repository: incubator-streams Updated Branches: refs/heads/0.2-incubating-rc3 [created] f6c75bfd9
http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/play.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/play.json b/streams-pojo/src/main/jsonschema/verbs/play.json new file mode 100644 index 0000000..3f25748 --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/play.json @@ -0,0 +1,24 @@ +{ + "$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": "Play", + "description": "Indicates that the actor spent some time enjoying the object. For example, if the object is a video this indicates that the subject watched all or part of the video.", + "extends": { + "$ref": "../activity.json" + }, + "properties": { + "verb": { + "type": "string", + "default": "play" + }, + "title": { + "type": "string", + "default": "{actor.displayName} played {object.displayName}" + } + } +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/post.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/post.json b/streams-pojo/src/main/jsonschema/verbs/post.json new file mode 100644 index 0000000..ea1ad39 --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/post.json @@ -0,0 +1,24 @@ +{ + "$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": "Post", + "description": "To publish an object", + "extends": { + "$ref": "../activity.json" + }, + "properties": { + "verb": { + "type": "string", + "default": "post" + }, + "title": { + "type": "string", + "default": "{actor.displayName} posted {object.displayName}" + } + } +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/present.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/present.json b/streams-pojo/src/main/jsonschema/verbs/present.json new file mode 100644 index 0000000..bcfb1dc --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/present.json @@ -0,0 +1,24 @@ +{ + "$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": "Present", + "description": "Indicates that the actor has presented the object. For instance, when a person gives a presentation at a conference.", + "extends": { + "$ref": "../activity.json" + }, + "properties": { + "verb": { + "type": "string", + "default": "present" + }, + "title": { + "type": "string", + "default": "{actor.displayName} presented {object.displayName}" + } + } +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/purchase.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/purchase.json b/streams-pojo/src/main/jsonschema/verbs/purchase.json new file mode 100644 index 0000000..303386a --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/purchase.json @@ -0,0 +1,24 @@ +{ + "$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": "Purchase", + "description": "Indicates that the actor has purchased the object. If a target is specified, in indicates the entity from which the object was purchased.", + "extends": { + "$ref": "../activity.json" + }, + "properties": { + "verb": { + "type": "string", + "default": "purchase" + }, + "title": { + "type": "string", + "default": "{actor.displayName} purchased {object.displayName} from {target.displayName}" + } + } +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/qualify.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/qualify.json b/streams-pojo/src/main/jsonschema/verbs/qualify.json new file mode 100644 index 0000000..974448f --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/qualify.json @@ -0,0 +1,24 @@ +{ + "$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": "Qualify", + "description": "Indicates that the actor has qualified for the object. If a target is specified, it indicates the context within which the qualification applies.", + "extends": { + "$ref": "../activity.json" + }, + "properties": { + "verb": { + "type": "string", + "default": "qualify" + }, + "title": { + "type": "string", + "default": "{actor.displayName} qualified {object.displayName}" + } + } +} http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/read.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/read.json b/streams-pojo/src/main/jsonschema/verbs/read.json new file mode 100644 index 0000000..e797f41 --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/read.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/receive.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/receive.json b/streams-pojo/src/main/jsonschema/verbs/receive.json new file mode 100644 index 0000000..0d44aef --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/receive.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/reject.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/reject.json b/streams-pojo/src/main/jsonschema/verbs/reject.json new file mode 100644 index 0000000..b82fac7 --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/reject.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/remove-friend.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/remove-friend.json b/streams-pojo/src/main/jsonschema/verbs/remove-friend.json new file mode 100644 index 0000000..073441d --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/remove-friend.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/remove.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/remove.json b/streams-pojo/src/main/jsonschema/verbs/remove.json new file mode 100644 index 0000000..5b694db --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/remove.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/replace.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/replace.json b/streams-pojo/src/main/jsonschema/verbs/replace.json new file mode 100644 index 0000000..198c8c5 --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/replace.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/request-friend.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/request-friend.json b/streams-pojo/src/main/jsonschema/verbs/request-friend.json new file mode 100644 index 0000000..9e246ca --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/request-friend.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/request.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/request.json b/streams-pojo/src/main/jsonschema/verbs/request.json new file mode 100644 index 0000000..35807f5 --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/request.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/resolve.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/resolve.json b/streams-pojo/src/main/jsonschema/verbs/resolve.json new file mode 100644 index 0000000..0b71ce3 --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/resolve.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/retract.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/retract.json b/streams-pojo/src/main/jsonschema/verbs/retract.json new file mode 100644 index 0000000..ff7cbe7 --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/retract.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/return.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/return.json b/streams-pojo/src/main/jsonschema/verbs/return.json new file mode 100644 index 0000000..14a8cfb --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/return.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/rsvp-maybe.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/rsvp-maybe.json b/streams-pojo/src/main/jsonschema/verbs/rsvp-maybe.json new file mode 100644 index 0000000..4838406 --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/rsvp-maybe.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/rsvp-no.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/rsvp-no.json b/streams-pojo/src/main/jsonschema/verbs/rsvp-no.json new file mode 100644 index 0000000..dc36ee3 --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/rsvp-no.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/rsvp-yes.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/rsvp-yes.json b/streams-pojo/src/main/jsonschema/verbs/rsvp-yes.json new file mode 100644 index 0000000..f62141e --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/rsvp-yes.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/satisfy.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/satisfy.json b/streams-pojo/src/main/jsonschema/verbs/satisfy.json new file mode 100644 index 0000000..a719680 --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/satisfy.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/save.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/save.json b/streams-pojo/src/main/jsonschema/verbs/save.json new file mode 100644 index 0000000..1bdbc4b --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/save.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/schedule.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/schedule.json b/streams-pojo/src/main/jsonschema/verbs/schedule.json new file mode 100644 index 0000000..a9824a3 --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/schedule.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/search.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/search.json b/streams-pojo/src/main/jsonschema/verbs/search.json new file mode 100644 index 0000000..3263bbb --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/search.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/sell.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/sell.json b/streams-pojo/src/main/jsonschema/verbs/sell.json new file mode 100644 index 0000000..16aa351 --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/sell.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/send.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/send.json b/streams-pojo/src/main/jsonschema/verbs/send.json new file mode 100644 index 0000000..ead4108 --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/send.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/share.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/share.json b/streams-pojo/src/main/jsonschema/verbs/share.json new file mode 100644 index 0000000..18c0aea --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/share.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/sponsor.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/sponsor.json b/streams-pojo/src/main/jsonschema/verbs/sponsor.json new file mode 100644 index 0000000..cc6f5cf --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/sponsor.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/start.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/start.json b/streams-pojo/src/main/jsonschema/verbs/start.json new file mode 100644 index 0000000..61eaf06 --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/start.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/stop-following.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/stop-following.json b/streams-pojo/src/main/jsonschema/verbs/stop-following.json new file mode 100644 index 0000000..e09317d --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/stop-following.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/submit.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/submit.json b/streams-pojo/src/main/jsonschema/verbs/submit.json new file mode 100644 index 0000000..c1d25b1 --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/submit.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/tag.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/tag.json b/streams-pojo/src/main/jsonschema/verbs/tag.json new file mode 100644 index 0000000..6208eae --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/tag.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/terminate.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/terminate.json b/streams-pojo/src/main/jsonschema/verbs/terminate.json new file mode 100644 index 0000000..280eb31 --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/terminate.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/tie.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/tie.json b/streams-pojo/src/main/jsonschema/verbs/tie.json new file mode 100644 index 0000000..7530ed2 --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/tie.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/unfavorite.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/unfavorite.json b/streams-pojo/src/main/jsonschema/verbs/unfavorite.json new file mode 100644 index 0000000..bfa9c20 --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/unfavorite.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/unlike.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/unlike.json b/streams-pojo/src/main/jsonschema/verbs/unlike.json new file mode 100644 index 0000000..4dc75f6 --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/unlike.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/unsatisfy.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/unsatisfy.json b/streams-pojo/src/main/jsonschema/verbs/unsatisfy.json new file mode 100644 index 0000000..8ea075b --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/unsatisfy.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/unsave.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/unsave.json b/streams-pojo/src/main/jsonschema/verbs/unsave.json new file mode 100644 index 0000000..e45a97f --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/unsave.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/unshare.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/unshare.json b/streams-pojo/src/main/jsonschema/verbs/unshare.json new file mode 100644 index 0000000..4ca924b --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/unshare.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/update.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/update.json b/streams-pojo/src/main/jsonschema/verbs/update.json new file mode 100644 index 0000000..4b143fc --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/update.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": "#", + "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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/use.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/use.json b/streams-pojo/src/main/jsonschema/verbs/use.json new file mode 100644 index 0000000..d5a79fd --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/use.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/watch.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/watch.json b/streams-pojo/src/main/jsonschema/verbs/watch.json new file mode 100644 index 0000000..192d56e --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/watch.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/jsonschema/verbs/win.json ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/jsonschema/verbs/win.json b/streams-pojo/src/main/jsonschema/verbs/win.json new file mode 100644 index 0000000..a5bef2a --- /dev/null +++ b/streams-pojo/src/main/jsonschema/verbs/win.json @@ -0,0 +1,24 @@ +{ + "$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/d9b0c88d/streams-pojo/src/main/xmlschema/activity.xsd ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/xmlschema/activity.xsd b/streams-pojo/src/main/xmlschema/activity.xsd new file mode 100644 index 0000000..1d81b44 --- /dev/null +++ b/streams-pojo/src/main/xmlschema/activity.xsd @@ -0,0 +1,94 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<!-- + ~ 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. + --> + +<xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema"> + + <xs:element name="id" type="xs:string"/> + <xs:element name="actor" type="objectType"/> + <xs:element name="verb" type="verbType"/> + <xs:element name="object" type="objectType"/> + <xs:element name="target" type="objectType"/> + <xs:element name="object-type" type="xs:string"/> + <xs:element name="published" type="xs:dateTime"/> + <xs:element name="updated" type="xs:dateTime"/> + <xs:element name="provider" type="objectType"/> + <xs:element name="title" type="xs:string"/> + <xs:element name="content" type="xs:string"/> + <xs:element name="url" type="xs:string"/> + + <xs:simpleType name="verbType"> + <xs:restriction base="xs:string"> + <xs:enumeration value="favorite"/> + <xs:enumeration value="follow"/> + <xs:enumeration value="join"/> + <xs:enumeration value="like"/> + <xs:enumeration value="make-friend"/> + <xs:enumeration value="play"/> + <xs:enumeration value="post"/> + <xs:enumeration value="rsvp-yes"/> + <xs:enumeration value="rsvp-no"/> + <xs:enumeration value="rsvp-maybe"/> + <xs:enumeration value="save"/> + <xs:enumeration value="share"/> + <xs:enumeration value="tag"/> + <xs:enumeration value="update"/> + </xs:restriction> + </xs:simpleType> + + <xs:complexType name="objectType"> + <xs:sequence> + <xs:element name="id" type="xs:string"/> + <xs:element name="image" type="mediaLink"/> + <xs:element name="displayName" type="xs:string"/> + <xs:element name="summary" type="xs:string"/> + <xs:element name="content" type="xs:string"/> + <xs:element name="url" type="xs:string"/> + <xs:element name="published" type="xs:string"/> + <xs:element name="updated" type="xs:string"/> + <xs:element name="object-type" > + <xs:simpleType> + <xs:restriction base="xs:string"> + <xs:enumeration value="article"/> + <xs:enumeration value="audio"/> + <xs:enumeration value="badge"/> + <xs:enumeration value="collection"/> + <xs:enumeration value="comment"/> + <xs:enumeration value="course"/> + <xs:enumeration value="file"/> + <xs:enumeration value="image"/> + <xs:enumeration value="person"/> + <xs:enumeration value="review"/> + <xs:enumeration value="service"/> + </xs:restriction> + </xs:simpleType> + </xs:element> + </xs:sequence> + + </xs:complexType> + + <xs:complexType name="mediaLink"> + <xs:sequence> + <xs:element name="duration" type="xs:positiveInteger"/> + <xs:element name="height" type="xs:positiveInteger"/> + <xs:element name="width" type="xs:positiveInteger"/> + <xs:element name="url" type="xs:string"/> + </xs:sequence> + </xs:complexType> + +</xs:schema> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/d9b0c88d/streams-pojo/src/main/xmlschema/org/apache/streams/pojo/xml/activity.xsd ---------------------------------------------------------------------- diff --git a/streams-pojo/src/main/xmlschema/org/apache/streams/pojo/xml/activity.xsd b/streams-pojo/src/main/xmlschema/org/apache/streams/pojo/xml/activity.xsd deleted file mode 100644 index 1d81b44..0000000 --- a/streams-pojo/src/main/xmlschema/org/apache/streams/pojo/xml/activity.xsd +++ /dev/null @@ -1,94 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="yes"?> -<!-- - ~ 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. - --> - -<xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema"> - - <xs:element name="id" type="xs:string"/> - <xs:element name="actor" type="objectType"/> - <xs:element name="verb" type="verbType"/> - <xs:element name="object" type="objectType"/> - <xs:element name="target" type="objectType"/> - <xs:element name="object-type" type="xs:string"/> - <xs:element name="published" type="xs:dateTime"/> - <xs:element name="updated" type="xs:dateTime"/> - <xs:element name="provider" type="objectType"/> - <xs:element name="title" type="xs:string"/> - <xs:element name="content" type="xs:string"/> - <xs:element name="url" type="xs:string"/> - - <xs:simpleType name="verbType"> - <xs:restriction base="xs:string"> - <xs:enumeration value="favorite"/> - <xs:enumeration value="follow"/> - <xs:enumeration value="join"/> - <xs:enumeration value="like"/> - <xs:enumeration value="make-friend"/> - <xs:enumeration value="play"/> - <xs:enumeration value="post"/> - <xs:enumeration value="rsvp-yes"/> - <xs:enumeration value="rsvp-no"/> - <xs:enumeration value="rsvp-maybe"/> - <xs:enumeration value="save"/> - <xs:enumeration value="share"/> - <xs:enumeration value="tag"/> - <xs:enumeration value="update"/> - </xs:restriction> - </xs:simpleType> - - <xs:complexType name="objectType"> - <xs:sequence> - <xs:element name="id" type="xs:string"/> - <xs:element name="image" type="mediaLink"/> - <xs:element name="displayName" type="xs:string"/> - <xs:element name="summary" type="xs:string"/> - <xs:element name="content" type="xs:string"/> - <xs:element name="url" type="xs:string"/> - <xs:element name="published" type="xs:string"/> - <xs:element name="updated" type="xs:string"/> - <xs:element name="object-type" > - <xs:simpleType> - <xs:restriction base="xs:string"> - <xs:enumeration value="article"/> - <xs:enumeration value="audio"/> - <xs:enumeration value="badge"/> - <xs:enumeration value="collection"/> - <xs:enumeration value="comment"/> - <xs:enumeration value="course"/> - <xs:enumeration value="file"/> - <xs:enumeration value="image"/> - <xs:enumeration value="person"/> - <xs:enumeration value="review"/> - <xs:enumeration value="service"/> - </xs:restriction> - </xs:simpleType> - </xs:element> - </xs:sequence> - - </xs:complexType> - - <xs:complexType name="mediaLink"> - <xs:sequence> - <xs:element name="duration" type="xs:positiveInteger"/> - <xs:element name="height" type="xs:positiveInteger"/> - <xs:element name="width" type="xs:positiveInteger"/> - <xs:element name="url" type="xs:string"/> - </xs:sequence> - </xs:complexType> - -</xs:schema> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/d9b0c88d/streams-pojo/src/site/markdown/index.md ---------------------------------------------------------------------- diff --git a/streams-pojo/src/site/markdown/index.md b/streams-pojo/src/site/markdown/index.md new file mode 100644 index 0000000..be153e7 --- /dev/null +++ b/streams-pojo/src/site/markdown/index.md @@ -0,0 +1,27 @@ +streams-pojo +============== + +streams-pojo contains ActivityStream json schema definitions and utility classes. + +##Json Schemas + +[activity.json](activity.json "activity.json") + +[collection.json](collection.json "collection.json") + +[media_link.json](media_link.json "media_link.json") + +[object.json](object.json "object.json") + +[verbs](verbs "verbs/") + +[objectTypes](objectTypes "objectTypes/") + +##XML Schemas + +[activity.xsd](activity.xsd "activity.xsd") + +##Test Activities + +[activities](activities "activities/") + http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/d9b0c88d/streams-runtimes/streams-runtime-dropwizard/src/test/java/org/apache/streams/dropwizard/test/GenericWebhookResourceTest.java ---------------------------------------------------------------------- diff --git a/streams-runtimes/streams-runtime-dropwizard/src/test/java/org/apache/streams/dropwizard/test/GenericWebhookResourceTest.java b/streams-runtimes/streams-runtime-dropwizard/src/test/java/org/apache/streams/dropwizard/test/GenericWebhookResourceTest.java index c481448..ffe9d62 100644 --- a/streams-runtimes/streams-runtime-dropwizard/src/test/java/org/apache/streams/dropwizard/test/GenericWebhookResourceTest.java +++ b/streams-runtimes/streams-runtime-dropwizard/src/test/java/org/apache/streams/dropwizard/test/GenericWebhookResourceTest.java @@ -29,7 +29,6 @@ import io.dropwizard.testing.junit.ResourceTestRule; import org.apache.streams.dropwizard.GenericWebhookData; import org.apache.streams.dropwizard.GenericWebhookResource; import org.apache.streams.jackson.StreamsJacksonMapper; -import org.apache.streams.pojo.json.Person; import org.joda.time.DateTime; import org.junit.After; import org.junit.AfterClass;
