- From: Niklas Lindström <lindstream@gmail.com>
- Date: Wed, 10 Aug 2016 21:46:16 +0200
- To: public-csvw@w3.org
- Message-ID: <CADjV5jejyEcXQF-ZKU1v1MmPXXggC5hB2g5UL5XjJ020_Hu=6A@mail.gmail.com>
Dear CSVW folks, Firstly, thanks for the hard work on CSVW! Alas, I haven't had much time looking into it before. Now to the question. Is it possible to produce multiple URLs from a cell value using "separator"? With the separator mechanism, an array of values can be produced from a single cell. But it seems that these values can only be in the form of literals. It does not seem possible to use a given "valueUrl" to produce URLs from each value in the array. Is this correct? In the text explaining "EXAMPLE 12: table with compact URLs and micro syntax" (from "Metadata Vocabulary for Tabular Data", section "5.1.3 URI Template Properties" [1]), it is clear that the entire array is input to the URI template. Thus, I cannot see any direct way of converting a cell value like: aut ill into this set of values (shown as JSON-LD): [{"@id": "http://id.loc.gov/vocabulary/relators/aut"}, {"@id": " http://id.loc.gov/vocabulary/relators/ill"}] When using a column definition like: { "name"; "role", "separator": " ", "valueUrl": "http://id.loc.gov/vocabulary/relators/{role}" } the result value would instead be the unwanted: {"@id": "http://id.loc.gov/vocabulary/relators/aut,ill"} Even if adding `"ordered": true`, I expect the result to just become: {"@list": [{"@id": "http://id.loc.gov/vocabulary/relators/aut,ill"}]} Am I missing something? Best regards, Niklas [1]: https://www.w3.org/TR/2015/REC-tabular-metadata-20151217/ #uri-template-properties
Received on Wednesday, 10 August 2016 19:47:15 UTC