Skip to content

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

Closed
@daenney

Description

@daenney

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Testing

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions