cayleygraph/cayley · error

unsupported item: %q

Error message

unsupported item: %q

What it means

Error "unsupported item: %q" thrown in cayleygraph/cayley.

Source

Thrown at query/linkedql/registry.go:83

	// TODO: make it a part of quad/jsonld package.
	data, err := normalizeQuery(data)

	if err != nil {
		return nil, err
	}

	var m map[string]json.RawMessage
	if err := json.Unmarshal(data, &m); err != nil {
		return nil, err
	}
	var typ string
	if err := json.Unmarshal(m["@type"], &typ); err != nil {
		return nil, err
	}
	delete(m, "@type")
	tp, ok := TypeByName(typ)
	if !ok {
		return nil, fmt.Errorf("unsupported item: %q", typ)
	}
	item := reflect.New(tp).Elem()
	for i := 0; i < tp.NumField(); i++ {
		f := tp.Field(i)
		name := f.Name
		tag := strings.SplitN(f.Tag.Get("json"), ",", 2)[0]
		if tag == "-" {
			continue
		} else if tag != "" {
			name = Namespace + tag
		}
		v, ok := m[name]
		if !ok {
			continue
		}
		fv := item.Field(i)
		switch f.Type {
		case graphPattern:

View on GitHub (pinned to 81dcd7d73e)

When it happens

Trigger: Thrown at query/linkedql/registry.go:83 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of cayleygraph/cayley@81dcd7d73e (2026-09-06). Data as JSON: /api/errors/11eb07a5005219a7. Report an issue: GitHub.