Skip to content

toRDF tli12 test seems inconsistent with the specification #660

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Tpt opened this issue May 29, 2025 · 1 comment
Open

toRDF tli12 test seems inconsistent with the specification #660

Tpt opened this issue May 29, 2025 · 1 comment

Comments

@Tpt
Copy link

Tpt commented May 29, 2025

tli12 test checks if list elements expanded to IRIs with a bad base.

Input:

{
  "@context": {
    "@base": "http://invalid/<>/",
    "list": {
      "@id": "foo:bar",
      "@container": "@list",
      "@type": "@id"
    }
  },
  "list": ["test"]
}

Output:

_:b0 <foo:bar> _:b1 .
_:b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .

Note that http://invalid/<>/ is not a valid IRI.

The context processing specification states that:
5.7.3) Otherwise, if value is an IRI, the base IRI of result is set to value.
5.7.5) Otherwise, an invalid base IRI error has been detected and processing is aborted.

Hence, it seems to me that parsing should fail with an invalid base IRI error instead of returning the expected RDF triples.

@gkellogg
Copy link
Member

Yes, I believe that if the base IRI is invalid, then the invalid base IRI error should be generated. But, would need to look more at the history of this test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Errata
Development

No branches or pull requests

2 participants