Skip to content

linkml_model/graphql/meta.graphql shipped in the linkml-runtime wheel does not parse #67

Open

Description

@jdsika

packages/linkml_runtime/src/linkml_runtime/linkml_model/graphql/meta.graphql is shipped inside the linkml-runtime wheel and does not parse:

from graphql import parse
import pathlib
parse(pathlib.Path("packages/linkml_runtime/src/linkml_runtime/linkml_model/graphql/meta.graphql").read_text())
# graphql.error.syntax_error.GraphQLSyntaxError: Syntax Error: Unexpected Name 'Extensible'.

The cause is the comma-separated implements clause that #63 fixes in the generator: ImplementsInterfaces joins with & (GraphQL spec, October 2021, §3.6). Regenerating the file with the fixed generator would make it parse, though the remaining gaps in #64 and #66 would still apply to it.

Two other committed artifacts are in the same state:

  • examples/PersonSchema/personinfo/graphql/personinfo.graphql — Syntax Error: Unexpected Name 'HasNewsEvents'. Also stale for unrelated reasons (metamodel 1.7.0).
  • examples/organization.graphql — orphaned; examples/organization.yaml no longer exists.

No test or CI job consumes any of them (.github/, Makefile, pyproject.toml checked; Makefile is the only generator reference), so nothing is currently broken by it. #63 deliberately left all three alone to keep its diff to the generator and its tests.

The question for meta.graphql specifically is where it should be regenerated: it looks vendored from linkml/linkml-model rather than produced by this repository's build, in which case the fix belongs there and this repository only re-vendors.

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions