27 lines
1.6 KiB
JSON
27 lines
1.6 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "schema:LinkRole",
|
|
"title": "LinkRole",
|
|
"description": "A Role that represents a Web link, e.g. as expressed via the 'url' property. Its linkRelationship property can indicate URL-based and plain textual link types, e.g. those in IANA link registry or others such as 'amphtml'. This structure provides a placeholder where details from HTML's link element can be represented outside of HTML, e.g. in JSON-LD feeds.",
|
|
"type": "object",
|
|
"allOf": [
|
|
{
|
|
"description": "Represents additional information about a relationship or property. For example a Role can be used to say that a 'member' role linking some SportsTeam to a player occurred during a particular time period. Or that a Person's 'actor' role in a Movie was for some particular characterName. Such properties can be attached to a Role entity, which is then associated with the main entities using ordinary properties like 'member' or 'actor'.\\n\\nSee also [blog post](http://blog.schema.org/2014/06/introducing-role.html).",
|
|
"$ref": "schema:Role"
|
|
}
|
|
],
|
|
"properties": {
|
|
"inLanguage": {
|
|
"description": "The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]].",
|
|
"anyOf": [{ "type": "string" }, { "$ref": "schema:Language" }]
|
|
},
|
|
"linkRelationship": {
|
|
"description": "Indicates the relationship type of a Web link. ",
|
|
"oneOf": [
|
|
{ "type": "string" },
|
|
{ "type": "array", "items": { "type": "string" } }
|
|
]
|
|
}
|
|
}
|
|
}
|