w3c / csvw

Documents produced by the CSV on the Web Working Group
Other
161 stars 57 forks source link

Cell value expansion example #879

Open rossbowen opened 3 years ago

rossbowen commented 3 years ago

Hello,

Example 12 of Metadata Vocabulary for Tabular Data describes how cell values are also subject to expansion.

EXAMPLE 12: table with compact URLs and micro syntax

project_name,project_type,keywords
CSVW,foaf:Project,table;data;conversion

The project_type column might have a valueUrl specified as "{project_type}". In the first row the cell value is "foaf:Project". The foaf prefix is understood, as described in § 5.8 Common Properties, to expand to http://xmlns.com/foaf/0.1/Project.

We are wondering whether the URI template should read {+project_type}, else the foaf:Project would get percent-encoded to foaf%3AProject and then not be expanded.