Skip to content

compaction: t0112, t0113 in LD 1.0 processing mode #649

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
daenney opened this issue Apr 6, 2025 · 0 comments
Open

compaction: t0112, t0113 in LD 1.0 processing mode #649

daenney opened this issue Apr 6, 2025 · 0 comments

Comments

@daenney
Copy link

daenney commented Apr 6, 2025

I'm running into an issue with t0112 and t0113 in compaction. No specVersion or processingMode is specified for those tests, so I'm assuming they should pass in ld-1.0 and ld-1.1.

However, I can't get them to pass on 1.0.

For t0112, the context is:

{
  "@context": {
    "ex": "http://example.org/ns/",
    "prop": {
      "@id": "ex:prop",
      "@container": "@index",
      "@index": "ex:name"
    }
  }
}

For t0113, the context is:

{
  "@context": {
    "ex": "http://example.org/ns/",
    "prop": {
      "@id": "ex:prop",
      "@container": "@index",
      "@index": "http://example.org/ns/name"
    }
  }
}

When running in LD 1.0 mode, I get an "Invalid Term Definition", based on step 20.1 in Create Term:

If value contains the entry @index:

The way I'm reading that is that if a property definition has an @index entry, and we're in LD 1.0 mode we need to bail out. The definition of prop includes @index, so it can't pass?

Looking at the expansion tests, I don't think there's one where @index is set on a term in an @context that runs for LD 1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant