oa:#Choice leaf node


URI

http://www.w3.org/ns/oa#Choice

Label

Choice

Description

A multiplicity construct that conveys to a consuming application that it should select one of the constituent resources to display to the user, and not render/use all of them.

oa:Choice can be used as the object of the object of the oa:hasBody, oa:hasTarget, oa:hasSelector, oa:hasState, oa:styledBy and oa:hasScope relationships,

There MUST be 1 or more oa:item relationships for each oa:Choice.

There SHOULD be exactly 1 default relationship for each Choice.

Usage

Instances of oa:#Choice can have the following properties:

PROPERTYTYPEDESCRIPTIONRANGE
From class oa:#Choice
oa:#default owl:ObjectProperty The constituent resource of a oa:Choice to use as a default option, if there is no other means to determine which would be most appropriate. There SHOULD be exactly 1 default relationship for each Choice. owl:Thing
From class owl:Thing
oa:#equivalentTo owl:ObjectProperty The subject and object resources of the oa:equivalentTo relationship represent the same resource, but potentially have different metadata such as oa:serializedBy, oa:serializedAt and serialization format. oa:equivalentTo is a symmetrical and transitive relationship; if A oa:equivalentTo B, then it is also true that B oa:equivalent A; and that if B oa:equivalentTo C, then it is also true that A oa:equivalentTo C. The Annotation MAY include 0 or more instances of the oa:equivalentTo relationship between copies of the Annotation or other resources, and SHOULD include as many as are available. If a system publishes an embedded resource (a cnt:Content) at a new HTTP URI, then it SHOULD express the oa:equivalentTo relationship between the resource's URN and the new URI from which it is available. owl:Thing
oa:#item owl:ObjectProperty The relationship between a multiplicity construct node and its constituent resources. There MUST be 1 or more item relationships for each multiplicity construct oa:Choice, oa:Composite and oa:List. owl:Thing

Implementation

@prefix oa: <http://www.w3.org/ns/oa#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

oa:Choice a owl:Class ;
    rdfs:label "Choice"@en ;
    rdfs:comment """A multiplicity construct that conveys to a consuming application that it should select one of the constituent resources to display to the user, and not render/use all of them. 

oa:Choice can be used as the object of the object of the oa:hasBody, oa:hasTarget, oa:hasSelector, oa:hasState, oa:styledBy and oa:hasScope relationships, 

There MUST be 1 or more oa:item relationships for each oa:Choice.

There SHOULD be exactly 1 default relationship for each Choice."""@en ;
    rdfs:isDefinedBy oa: ;
    rdfs:subClassOf rdf:Alt .