-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add stub schemas for Option and Activity to be able to reference them in propositions - rename suffix for properties that are identifiers from Id to ID, spell out 'Identifier' in the descriptions and titles - remove eventmetrics schema and replace with two metricdefinitions schemas - remove explicit property to group metrics in propositions, instead allow them to appear inside the proposition detail next to the entity that was measured, update examples accordingly (proposition-detail.example.1.json) - rename measure for offer interactions in direct marketing from offerClicks to offerOpens
- Loading branch information
Showing
10 changed files
with
262 additions
and
91 deletions.
There are no files selected for viewing
65 changes: 65 additions & 0 deletions
65
extensions/adobe/experience/decisioning/activity.schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"meta:license": [ | ||
"Copyright 2017 Adobe Systems Incorporated. All rights reserved.", | ||
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license", | ||
"you may not use this file except in compliance with the License. You may obtain a copy", | ||
"of the License at https://creativecommons.org/licenses/by/4.0/" | ||
], | ||
"$id": "https://ns.adobe.com/experience/decisioning/activity", | ||
"$schema": "http://json-schema.org/draft-06/schema#", | ||
"title": "Decision Option", | ||
"type": "object", | ||
"auditable": true, | ||
"meta:extensible": true, | ||
"meta:abstract": true, | ||
"meta:extends": [ | ||
"https://ns.adobe.com/xdm/data/record", | ||
"https://ns.adobe.com/xdm/common/auditable" | ||
], | ||
"description": | ||
"Entity to to control the decisioning process. It specifies the filter applied to the total inventory of options in order to narrow them down by topic/category. The activity also specifies a fallback option should the combined constraints disqualify all narrowed-down options. A decision activity ican be thought of as a type of http://schema.org/Action .", | ||
"definitions": { | ||
"option": { | ||
"properties": { | ||
"xdm:name": { | ||
"type": "string", | ||
"title": "Name", | ||
"description": "Activity name. The name is displayed in various user interfaces. Property has the semantic of schema.org's 'name' property defined on http://schema.org/Thing" | ||
}, | ||
"xdm:startTime": { | ||
"type": "string", | ||
"format": "date-time", | ||
"title": "Start Date and Time", | ||
"description": "Activity Start Date and Time. Property has the semantic of schema.org's 'startTime' property defined on http://schema.org/Action" | ||
}, | ||
"xdm:endTime": { | ||
"type": "string", | ||
"format": "date-time", | ||
"title": "End Date and Time", | ||
"description": "Activity End Date and Time. Property has the semantic of schema.org's 'endTime' property defined on http://schema.org/Action" | ||
}, | ||
"xdm:fallback": { | ||
"type": "string", | ||
"format": "uri-reference", | ||
"title": "Fallback Option", | ||
"description": "The reference to a fallback option that is used when decisioning in the context of this activity does not qualify any of the regular options (this typically happens when hard constraints are applied). The value is the URI (@id) of the fallback option that is referenced. See schema https://ns.adobe.com/experience/decisioning/unconstrained-option", | ||
} | ||
} | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"$ref": "https://ns.adobe.com/xdm/common/extensible#/definitions/@context" | ||
}, | ||
{ | ||
"$ref": "https://ns.adobe.com/xdm/common/auditable" | ||
}, | ||
{ | ||
"$ref": "https://ns.adobe.com/xdm/data/record" | ||
}, | ||
{ | ||
"$ref": "#/definitions/option" | ||
} | ||
], | ||
"meta:status": "experimental" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 0 additions & 30 deletions
30
extensions/adobe/experience/decisioning/eventmetrics.schema.json
This file was deleted.
Oops, something went wrong.
52 changes: 52 additions & 0 deletions
52
extensions/adobe/experience/decisioning/option-propositions-profile.schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"meta:license": [ | ||
"Copyright 2018 Adobe Systems Incorporated. All rights reserved.", | ||
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license", | ||
"you may not use this file except in compliance with the License. You may obtain a copy", | ||
"of the License at https://creativecommons.org/licenses/by/4.0/" | ||
], | ||
"$id": "https://ns.adobe.com/experience/decisioning/option-propositions-profile", | ||
"$schema": "http://json-schema.org/draft-06/schema#", | ||
"title": "Option propositions to profile", | ||
"type": "object", | ||
"meta:extensible": true, | ||
"meta:extends": ["https://ns.adobe.com/xdm/data/metricdefinition"], | ||
"description": | ||
"The number a particular option was proposed so far to a particular profile.", | ||
"definitions": { | ||
"metricdefinition": { | ||
"properties": { | ||
"@id": { | ||
"type": "string", | ||
"const": | ||
"https://ns.adobe.com/experience/decisioning/optionPropositionsProfile", | ||
"description": "The unique identifier of this metric." | ||
}, | ||
"schema:name": { | ||
"type": "string", | ||
"const": "option metric: per profile propositions", | ||
"description": | ||
"The human-readable name of the metric. The name can be used in user interfaces and does not have to be unique." | ||
}, | ||
"xdm:measurement": { | ||
"type": "string", | ||
"description": "How to take measures of this metric.", | ||
"const": "count" | ||
}, | ||
"xdm:unit": { | ||
"const": null | ||
} | ||
} | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/metricdefinition" | ||
}, | ||
{ | ||
"$ref": "https://ns.adobe.com/xdm/data/metricdefinition" | ||
} | ||
], | ||
"required": ["@id", "schema:name", "xdm:measurement", "xdm:unit"], | ||
"meta:status": "experimental" | ||
} |
52 changes: 52 additions & 0 deletions
52
extensions/adobe/experience/decisioning/option-propositions-total.schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"meta:license": [ | ||
"Copyright 2018 Adobe Systems Incorporated. All rights reserved.", | ||
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license", | ||
"you may not use this file except in compliance with the License. You may obtain a copy", | ||
"of the License at https://creativecommons.org/licenses/by/4.0/" | ||
], | ||
"$id": "https://ns.adobe.com/experience/decisioning/option-propositions-total", | ||
"$schema": "http://json-schema.org/draft-06/schema#", | ||
"title": "Option propositions total", | ||
"type": "object", | ||
"meta:extensible": true, | ||
"meta:extends": ["https://ns.adobe.com/xdm/data/metricdefinition"], | ||
"description": | ||
"The total number a particular option was proposed so far across all profiles.", | ||
"definitions": { | ||
"metricdefinition": { | ||
"properties": { | ||
"@id": { | ||
"type": "string", | ||
"const": | ||
"https://ns.adobe.com/experience/decisioning/optionPropositionsTotal", | ||
"description": "The unique identifier of this metric." | ||
}, | ||
"schema:name": { | ||
"type": "string", | ||
"const": "option metric: total propositions", | ||
"description": | ||
"The human-readable name of the metric. The name can be used in user interfaces and does not have to be unique." | ||
}, | ||
"xdm:measurement": { | ||
"type": "string", | ||
"description": "How to take measures of this metric.", | ||
"const": "count" | ||
}, | ||
"xdm:unit": { | ||
"const": null | ||
} | ||
} | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/metricdefinition" | ||
}, | ||
{ | ||
"$ref": "https://ns.adobe.com/xdm/data/metricdefinition" | ||
} | ||
], | ||
"required": ["@id", "schema:name", "xdm:measurement", "xdm:unit"], | ||
"meta:status": "experimental" | ||
} |
47 changes: 47 additions & 0 deletions
47
extensions/adobe/experience/decisioning/option.schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"meta:license": [ | ||
"Copyright 2017 Adobe Systems Incorporated. All rights reserved.", | ||
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license", | ||
"you may not use this file except in compliance with the License. You may obtain a copy", | ||
"of the License at https://creativecommons.org/licenses/by/4.0/" | ||
], | ||
"$id": "https://ns.adobe.com/experience/decisioning/option", | ||
"$schema": "http://json-schema.org/draft-06/schema#", | ||
"title": "Decision Option", | ||
"type": "object", | ||
"auditable": true, | ||
"meta:extensible": true, | ||
"meta:abstract": true, | ||
"meta:extends": [ | ||
"https://ns.adobe.com/xdm/data/record", | ||
"https://ns.adobe.com/xdm/common/auditable" | ||
], | ||
"description": | ||
"Entity to represent one of the possible selections or choices of a decision. Options have record semantics when composed into a schema. When referenced in propositions, options are enriched with the observed metrics that applied to them, i.e. they are measurable.", | ||
"definitions": { | ||
"option": { | ||
"properties": { | ||
"xdm:name": { | ||
"type": "string", | ||
"title": "Name", | ||
"description": "Option name. The name is displayed in various user interfaces. Property has the semantic of schema.org's 'name' property defined on http://schema.org/Thing" | ||
} | ||
} | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"$ref": "https://ns.adobe.com/xdm/common/extensible#/definitions/@context" | ||
}, | ||
{ | ||
"$ref": "https://ns.adobe.com/xdm/common/auditable" | ||
}, | ||
{ | ||
"$ref": "https://ns.adobe.com/xdm/data/record" | ||
}, | ||
{ | ||
"$ref": "#/definitions/option" | ||
} | ||
], | ||
"meta:status": "experimental" | ||
} |
19 changes: 9 additions & 10 deletions
19
extensions/adobe/experience/decisioning/proposition-detail.example.1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
{ | ||
"xdm:activity": { | ||
"@id": "xcore:offer-activity:ebc48132c26ccfc", | ||
"xdm:name": "Tutorial videos to watch", | ||
"xdm:startDate": "2018-10-13T05:59:18.914Z", | ||
"xdm:endDate": "2018-12-27T05:59:18.914Z", | ||
"xdm:fallback": "xcore:fallback-offer:e91ce7243fd8c2a", | ||
"xdm:name": "Kiosk", | ||
"xdm:placement": "xcore:offer-placement:e91a84cc83ad12f", | ||
"xdm:filter": "xcore:offer-filter:e9201a6650bb7e3", | ||
"xdm:startDate": "2018-10-13T05:59:18.914Z", | ||
"xdm:endDate": "2018-12-27T05:59:18.914Z" | ||
"xdm:filter": "xcore:offer-filter:e9201a6650bb7e3" | ||
}, | ||
"xdm:selections": [ | ||
{ | ||
"@id": "xcore:personalized-offer:e91ee850a0bb7d9", | ||
"xdm:name": "Introduction to machine learning", | ||
"https://ns.adobe.com/experience/decisioning/profileConstraint": { | ||
"xdm:eligibilityRule": "xcore:eligibility-rule:ec0ef7ceacb2ecd" | ||
}, | ||
"https://ns.adobe.com/experience/decisioning/optionPropositionsTotal": { | ||
"xdm:value": 948 | ||
} | ||
} | ||
], | ||
"xdm:metrics": { | ||
"https://ns.adobe.com/experience/offer-management/offer-propositions": { | ||
"xdm:value": 948 | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.