As entidades DataSource são usadas em feeds para fornecer as fontes de dados que podem ser reunidas para formar entidades Attribution.
Atributos
A tabela a seguir mostra os atributos de DataSource:
| Atributo | Obrigatório? | Tipo | Descrição |
|---|---|---|---|
objectId |
Obrigatório | ID |
Identificador interno exclusivo usado por outros elementos para fazer referência a este elemento. |
Elementos
A tabela a seguir mostra os elementos de DataSource:
| Elemento | Multiplicidade | Tipo | Descrição |
|---|---|---|---|
DisplayName |
1 | InternationalizedText |
O nome da fonte de dados como deve ser exibido. |
Uri |
1 ou mais | InternationalizedUri |
O URL da fonte de dados. |
Exemplos
XML
<DataSource objectId="issuer"> <DisplayName> <Text language="en">Issuer Company</Text> </DisplayName> <Uri language="en">http://www.issuer.com</Uri> </DataSource> <DataSource objectId="abc"> <DisplayName> <Text language="en">ABC</Text> </DisplayName> <Uri language="en">http://www.abc.com</Uri> </DataSource> <DataSource objectId="xyz"> <DisplayName> <Text language="en">XYZ</Text> </DisplayName> <Uri language="en">http://www.xyz.com</Uri> </DataSource>
JSON
"DataSource": [ { "objectId": "issuer", "DisplayName": { "Text": [ { "value": "Issuer Company", "language": "en" } ] }, "Uri": [ { "value": "http://www.issuer.com", "language": "en" } ] }, { "objectId": "abc", "DisplayName": { "Text": [ { "value": "ABC", "language": "en" } ] }, "Uri": [ { "value": "http://www.abc.com", "language": "en" } ] }, { "objectId": "xyz", "DisplayName": { "Text": [ { "value": "XYZ", "language": "en" } ] }, "Uri": [ { "value": "http://www.xyz.com", "language": "en" } ] } ]