Component: Attribute
Stay organized with collections
Save and categorize content based on your preferences.
outlined_flag
Attribute describes a dataset or concept attribute with optional textual information, data type, and values.
It can optionally reference a concept corresponding to the attribute values.
The attribute's data type can be specified using a "ref" attribute and optionally formatted using a "format" attribute.
An optional "id" can be provided, which must be unique within the concept, otherwise it's implicitly derived from the referenced concept.
Namespace
http://schemas.google.com/dspl/2010
Annotations
Textual information about the attribute.
Diagram
Type
Info
Properties
content:
complex
minOccurs:
0
Model
name , description{0,1} , url{0,1}
Children
description , name , url
Instance
<info>
<name>{1,1}</name>
<description>{0,1}</description>
<url>{0,1}</url>
</info>
Source
<xs : element name = "info" type = "Info" minOccurs = "0" >
<xs : annotation >
<xs : documentation>Textual information about the attribute .</ xs : documentation >
</ xs : annotation >
</ xs : element >
Namespace
http://schemas.google.com/dspl/2010
Annotations
The data type of the attribute.
Diagram
Properties
content:
complex
minOccurs:
0
Attributes
QName
Type
Fixed
Default
Use
Annotation
format
xs:string
optional
A format for the value, used to parse a textual
representation of the values. See [Date formats spec] for
dates.
ref
DataType
required
Source
<xs : element name = "type" minOccurs = "0" >
<xs : annotation >
<xs : documentation>The data type of the attribute .</ xs : documentation >
</ xs : annotation >
<xs : complexType >
<xs : attribute name = "ref" type = "DataType" use = "required" / >
<xs : attribute name = "format" type = "xs:string" use = "optional" >
<xs : annotation >
<xs : documentation>A format for the value , used to parse a textual
representation of the values . See [ Date formats spec ]
for dates .</ xs : documentation >
</ xs : annotation >
</ xs : attribute >
</ xs : complexType >
</ xs : element >
Complex Type: Attribute
Namespace
http://schemas.google.com/dspl/2010
Annotations
An attribute of a dataset or a concept.
Diagram
Used by
Model
info{0,1} , type{0,1} , (value*
| conceptValue{0,1} )
Children
conceptValue , info , type ,
value
Attributes
QName
Type
Fixed
Default
Use
Annotation
concept
xs:QName
optional
A reference to a concept that corresponds to the values
of the attribute. If the attribute specifies a type, then the type
must match the type of the referenced concept. A reference to an
external concept must be of the form
"prefix:other_concept_id", where "prefix" is
the prefix used for the namespace of the external dataset (see XML
namespaces).
id
LocalId
optional
The id of the concept attribute. This identifier must be
unique within the concept (across attributes and properties). The
id may be omitted if the concept attribute is specified. In that
case, an id is implicity created with value the local name of the
referenced concept. For instance <attribute
concept="unit:currency"/> is equivalent to
<attribute id="currency"
concept="unit:currency"/>
Source
<xs : complexType name = "Attribute" >
<xs : annotation >
<xs : documentation>An attribute of a dataset or a concept .</ xs : documentation >
</ xs : annotation >
<xs : sequence >
<xs : element name = "info" type = "Info" minOccurs = "0" >
<xs : annotation >
<xs : documentation>Textual information about the attribute .</ xs : documentation >
</ xs : annotation >
</ xs : element >
<xs : element name = "type" minOccurs = "0" >
<xs : annotation >
<xs : documentation>The data type of the attribute .</ xs : documentation >
</ xs : annotation >
<xs : complexType >
<xs : attribute name = "ref" type = "DataType" use = "required" / >
<xs : attribute name = "format" type = "xs:string" use = "optional" >
<xs : annotation >
<xs : documentation>A format for the value , used to parse a textual
representation of the values . See [ Date formats spec ]
for dates .</ xs : documentation >
</ xs : annotation >
</ xs : attribute >
</ xs : complexType >
</ xs : element >
<xs : group ref = "ValuesGroup" minOccurs = "0" / >
</ xs : sequence >
<xs : attribute name = "id" type = "LocalId" use = "optional" >
<xs : annotation >
<xs : documentation>The id of the concept attribute . This identifier must be unique within the concept
( across attributes and properties ).
The id may be omitted if the concept attribute is specified . In that case , an id is
implicity created with value the local name of the referenced concept . For instance
<attribute concept = "unit:currency" / >
is equivalent to
<attribute id = "currency" concept = "unit:currency" /></xs:documentation>
</ xs : annotation >
</ xs : attribute >
<xs : attribute name = "concept" type = "xs:QName" use = "optional" >
<xs : annotation >
<xs : documentation>A reference to a concept that corresponds to the values of the attribute .
If the attribute specifies a type , then the type must match the type of
the referenced concept .
A reference to an external concept must be of the form "prefix:other_concept_id" ,
where "prefix" is the prefix used for the namespace of the external dataset
( see XML namespaces ).</ xs : documentation >
</ xs : annotation >
</ xs : attribute >
</ xs : complexType >
Namespace
No namespace
Type
DataType
Properties
Facets
enumeration
string
enumeration
float
enumeration
integer
enumeration
boolean
enumeration
date
enumeration
concept
Used by
Source
<xs : attribute name = "ref" type = "DataType" use = "required" / >
Namespace
No namespace
Annotations
A format for the value, used to parse a textual representation
of the values. See [Date formats spec] for dates.
Type
xs:string
Properties
Used by
Source
<xs : attribute name = "format" type = "xs:string" use = "optional" >
<xs : annotation >
<xs : documentation>A format for the value , used to parse a textual
representation of the values . See [ Date formats spec ]
for dates .</ xs : documentation >
</ xs : annotation >
</ xs : attribute >
Namespace
No namespace
Annotations
The id of the concept attribute. This identifier must be unique
within the concept (across attributes and properties). The id may be
omitted if the concept attribute is specified. In that case, an id is
implicity created with value the local name of the referenced concept.
For instance <attribute concept="unit:currency"/> is
equivalent to <attribute id="currency"
concept="unit:currency"/>
Type
LocalId
Properties
Facets
Used by
Source
<xs : attribute name = "id" type = "LocalId" use = "optional" >
<xs : annotation >
<xs : documentation>The id of the concept attribute . This identifier must be unique within the concept
( across attributes and properties ).
The id may be omitted if the concept attribute is specified . In that case , an id is
implicity created with value the local name of the referenced concept . For instance
<attribute concept = "unit:currency" / >
is equivalent to
<attribute id = "currency" concept = "unit:currency" /></xs:documentation>
</ xs : annotation >
</ xs : attribute >
Attribute: Attribute / @concept
Namespace
No namespace
Annotations
A reference to a concept that corresponds to the values of the
attribute. If the attribute specifies a type, then the type must match
the type of the referenced concept. A reference to an external concept
must be of the form "prefix:other_concept_id", where
"prefix" is the prefix used for the namespace of the external
dataset (see XML namespaces).
Type
xs:QName
Properties
Used by
Source
<xs : attribute name = "concept" type = "xs:QName" use = "optional" >
<xs : annotation >
<xs : documentation>A reference to a concept that corresponds to the values of the attribute .
If the attribute specifies a type , then the type must match the type of
the referenced concept .
A reference to an external concept must be of the form "prefix:other_concept_id" ,
where "prefix" is the prefix used for the namespace of the external dataset
( see XML namespaces ).</ xs : documentation >
</ xs : annotation >
</ xs : attribute >
Created using the
oXygen XML Editor .
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-26 UTC.
[null,null,["Last updated 2024-06-26 UTC."],[],["The core content describes the structure and properties of an \"Attribute\" within a dataset or concept. An attribute can include optional textual information (`info`), its data `type` (required), and value. The `type` specifies the data type and can have a `format`. Attributes have an optional `id` for unique identification and can refer to another `concept`. The `info` section may include name, description, and URL.\n"]]