Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Jena 3.10.0
-
None
Description
riot 3.10.0 emits a NON_INITIAL_DOT_SEGMENT warning on data that I believe if valid:
$ cat test.ttl @base <http://example.org/foo/bar/> . <./../../../useless/../../../still-root> <> "not ok" . $ riot -q test.ttl 10:56:50 WARN riot :: [line: 2, col: 1 ] Bad IRI: <http://example.org/still-root> Code: 8/NON_INITIAL_DOT_SEGMENT in PATH: The path contains a segment /../ not at the beginning of a relative reference, or it contains a /./ These should be removed. <http://example.org/still-root> <http://example.org/foo/bar/> "not ok" .
The resulting IRI is what I expect, but the warning seems spurious. The cited ref text in the definition of that warning suggests that it should only be warning if the dot segments are used outside of a relative IRI:
The complete path segments "." and ".." are intended <em>only</em> for use within relative references
In this example, however, they are being used in a relative IRI, and seem to be successfully removed during resolution against the base IRI to produce the expected output.
Attachments
Issue Links
- links to