Skip to content

Commit 1b19e86

Browse files
author
DavidUnderdown
committed
1.1 release
1 parent e77ab7d commit 1b19e86

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

csv-schema-1.1.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
subtitle : "A Language for Defining and Validating CSV Data",
1919

2020
// if you wish the publication date to be other than today, set this
21-
// publishDate: "2014-08-23",
21+
publishDate: "2016-01-25",
2222

2323
// if the specification's copyright date is a range of years, specify
2424
// the start date here:
@@ -178,7 +178,7 @@
178178
as defined by <a href="http://www.nationalarchives.gov.uk">The National Archives</a>.
179179
It is unclear yet whether this document will be submitted to a formal standards body
180180
such as the <a href="http://w3.org">W3C</a>.
181-
This version supersedes the original <a href="http://digital-preservation.github.io/csv-schema/csv-schema-1.1.html">CSV Schema Language 1.0</a> published on 28 August 2014.
181+
This version supersedes the original <a href="http://digital-preservation.github.io/csv-schema/csv-schema-1.0.html">CSV Schema Language 1.0</a> published on 28 August 2014.
182182
</section>
183183
<section id='abstract'>
184184
<acronym title="Comma Separated Value">CSV</acronym> (Comma Separated Value) data comes in many shapes and sizes. Apart from [[RFC4180]] which is a fairly recent development (and often ignored),
@@ -1130,6 +1130,7 @@ <h5>Usage</h5>
11301130
<pre class="example" data-lt="Regular Expression Expression Syntax">
11311131
a_column: regex("[bcm]at") //the value of a_column must match the regular expression [bcm]at ie a string containing "bat", "cat" or "mat"
11321132
another_column: regex("[0-5]") //the value of another_column match the regular expression [0-5] ie a string containing only the digits only 0-5.
1133+
</section>
11331134
</section>
11341135
<section>
11351136
<h4>Range Expressions</h4>
@@ -1667,6 +1668,8 @@ <h4>Integrity Check Expressions</h4>
16671668
The default value for this string is an empty string.
16681669
The second parameter allows a string provider to be given to point to an explicit subdirectory relative to the location of the base path.
16691670
By default this subdirectory is expected to be called "content".
1671+
If only a single OPTIONAL parameter is supplied, it will be assumed to be the first, so if you wish to set only the second OPTIONAL parameter,
1672+
you MUST also explicitly supply the first as an empty string ("")
16701673
The final expression MUST be supplied. This indicates whether references to subfolders are explicitly included in the CSV file,
16711674
if the CSV file has a row for each subfolder the exact string "includeFolder" should be given,
16721675
if the subfolders do not have explicit references, the exact string "excludeFolder" should be given.
@@ -1691,7 +1694,7 @@ <h5>Usage</h5>
16911694
as the second parameter has not been supplied it defaults to the value "content" meaning that all sub folders must
16921695
sit within a folder with that name*/
16931696
another_column: integrityCheck("file:///C:/","excludeFolder") //here the string "file:///C:/" is prepended to the contents of another_column before the integrity check is made
1694-
third_column: integrityCheck("","excludeFolder") //here as an empty string is included, we indicate that there is no content folder
1697+
third_column: integrityCheck("","","excludeFolder") //here as an strings are passed for both optional parameters, we indicate that there is no content folder
16951698
</pre>
16961699
</section>
16971700
</section>

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<ul class="nav navbar-nav navbar-right">
4545
<li><a href="http://digital-preservation.github.io/csv-validator">CSV Validator</a></li>
4646
<li class="active"><a href="#">CSV Schema</a></li>
47-
<li><a href="http://digital-preservation.github.io/csv-schema/csv-schema-1.0.html">CSV Schema Specification</a></li>
47+
<li><a href="http://digital-preservation.github.io/csv-schema/csv-schema-1.1.html">CSV Schema Specification</a></li>
4848
</ul>
4949
</div><!--/.nav-collapse -->
5050
</div>
@@ -88,7 +88,7 @@ <h3>Background</h3>
8888
<div>
8989
<h2>CSV Schema Language</h2>
9090
<p>
91-
The CSV Schema Language is defined in the <a href="csv-schema-1.0.html">CSV Schema Language 1.0 specification</a>.
91+
The CSV Schema Language is defined in the <a href="csv-schema-1.1.html">CSV Schema Language 1.1 specification</a>, (this supersedes the original <a href="csv-schema-1.0.html">CSV Schema Language 1.0 specification</a> as 25 January 2016).
9292
It is suggested that the extension .csvs be used for CSV Schema Language files.
9393
</p>
9494
</div>
@@ -100,8 +100,8 @@ <h2>Reference Implementation</h2>
100100
<h2>Example CSV Schemas</h2>
101101
<p>
102102
In order to understand how to write CSV Schemas in practice, see the example CSV Schema file,
103-
<a href="http://github.com/digital-preservation/csv-schema/blob/master/example-schemas/digitised_surrogate_tech_acq_metadata_v1_TESTBATCH000.csvs">digitised_surrogate_tech_acq_metadata_v1_TESTBATCH000.csvs</a>,
104-
in the GitHub repository <a href="http://github.com/digital-preservation/csv-schema">digital-preservation/csv-schema</a>.
103+
<a href="https://github.com/digital-preservation/csv-schema/blob/master/example-schemas/generic_digitised_surrogate_tech_acq_metadata_v1.1.csvs">digitised_surrogate_tech_acq_metadata_v1.1_TESTBATCH000.csvs</a>,
104+
in the GitHub repository <a href="https://github.com/adamretter/csv-schema/tree/master/example-schemas">digital-preservation/csv-schema/example-schemas</a>.
105105
In the <a href="http://github.com/digital-preservation/csv-schema/tree/master/example-schemas/example-data">example-data</a> subfolder you will find a CSV file,
106106
<a href="http://github.com/digital-preservation/csv-schema/blob/master/example-schemas/digitised_surrogate_tech_acq_metadata_v1_TESTBATCH000.csv">digitised_surrogate_tech_acq_metadata_v1_TESTBATCH000.csv</a>,
107107
which complies with the schema. This CSV file refers to XML files in the folder structure below <a href="http://github.com/digital-preservation/csv-schema/tree/master/example-schemas/example-data/TEST_1">TEST_1</a>

0 commit comments

Comments
 (0)