Skip to content
This repository was archived by the owner on May 22, 2026. It is now read-only.
This repository was archived by the owner on May 22, 2026. It is now read-only.

Inconsistent absolute urls in tests #900

Description

@filipjezek

The test cases expect different results when it comes to URLs relative to the input CSV file. As an example, consider expected output for tests 158 and 284 (both testing number formats).

test158.ttl (excerpt)

csvw:row [
  a csvw:Row;
  csvw:describes [
    <test158.csv#decimal> "0.1"^^xsd:decimal;
    <test158.csv#decimal1> "10000.1"^^xsd:decimal;
    <test158.csv#double> "0.0e0"^^xsd:double;
    <test158.csv#integer> "0"^^xsd:integer
  ];
  csvw:rownum 1;
  csvw:url <test158.csv#row=2>
]

test284.ttl (excerpt)

 csvw:row [
  a csvw:Row;
  csvw:describes [
    <http://www.w3.org/2013/csvw/tests/test284.csv#%23%23%230.%23%23%23%23%23> "1"^^xsd:decimal;
    <http://www.w3.org/2013/csvw/tests/test284.csv#%23%23%230.0000%23> "1.2345"^^xsd:decimal;
    <http://www.w3.org/2013/csvw/tests/test284.csv#%23%2C%23%23%2C%23%230> "1"^^xsd:integer;
    <http://www.w3.org/2013/csvw/tests/test284.csv#%23%2C%23%23%2C%2300> "12"^^xsd:integer;
    <http://www.w3.org/2013/csvw/tests/test284.csv#%23%2C%23%23%2C000> "123"^^xsd:integer;
    <http://www.w3.org/2013/csvw/tests/test284.csv#%23%2C%230%2C000> "1234"^^xsd:integer;
    <http://www.w3.org/2013/csvw/tests/test284.csv#%23%2C00%2C000> "12345"^^xsd:integer;
    <http://www.w3.org/2013/csvw/tests/test284.csv#0%2C00%2C000> "123456"^^xsd:integer;
    <http://www.w3.org/2013/csvw/tests/test284.csv#00000.0000> "12345.6789"^^xsd:decimal
  ];
  csvw:rownum "1"^^xsd:integer;
  csvw:url <http://www.w3.org/2013/csvw/tests/test284.csv#row=2>
]

The absolute URLs appear in tests 263 to 304.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions