-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #290 from adobe/extensibility-docs
Improve Documentation of Schema Attributes
- Loading branch information
Showing
5 changed files
with
48 additions
and
5 deletions.
There are no files selected for viewing
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,17 @@ | ||
## Abstract and Concrete Schemas | ||
|
||
XDM is defined using a modular schema framework that encourages the re-use of schemas or parts of schemas. | ||
As a result, XDM consists of abstract and concrete schemas. | ||
|
||
### Abstract Schemas | ||
|
||
Abstract schemas or schema fragments are partial schemas that can be re-used in other schemas, but that do not allow the creation of any instances. | ||
As an example, the [Language Alternative](reference/assets/language-alternative.schema.md) schema which is used to define metadata that varies by language can be used as part of an [Asset](reference/assets/asset.schema.md), but it cannot stand on its own. | ||
|
||
Abstract schemas are often used to define properties that are used in multiple schemas at once. | ||
|
||
### Concrete Schemas | ||
|
||
Concrete schemas or proper schemas are schemas that can be instantiated, i.e. they describe instances of entities that are exposed by APIs that are implementing XDM. | ||
|
||
Concrete schemas often include or reference Abstract schemas. |
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,6 @@ | ||
## Identifying Entities | ||
|
||
Instances of most schemas in XDM are uniquely identifiable based on the value of the `@id` attribute. | ||
This attribute is always a URI, but may not be present or required in all schemas. | ||
|
||
Schemas that have an `@id` attribute are considered identifiable, schemas that do not have this attribute are typically only used as child-objects in identifiable schemas. |
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
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,11 @@ | ||
## Schema Status | ||
|
||
The status of each schema in XDM describes the likelihood of change of a schema. | ||
In particular for XDM Versions prior to XDM 1.0.0, this can inform users and providers of XDM-compatible APIs of the stability of a given schema. | ||
|
||
XDM defines following status values: | ||
|
||
* Stable: the schema is considered stable and can be used in production without any risk. Additions to the schema are possible, but will not impact existing implementations. | ||
* Stabilizing: No further major changes to the schema are expected, but may occur after review. Implementors should check the status of the schema regularly. | ||
* Experimental: Major changes can be expected because the schema is still in active development. Implementors should proceed with caution. | ||
* Deprecated: Schema is no longer maintained, supported or is superceded by another schema/set of schemas. Implementors should update their implementations. |
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