cayleygraph/cayley · error

Step of type %T is not a PathStep. A PropertyPath step must

Error message

Step of type %T is not a PathStep. A PropertyPath step must be a PathStep

What it means

Error "Step of type %T is not a PathStep. A PropertyPath step must be a PathStep" thrown in cayleygraph/cayley.

Source

Thrown at query/linkedql/property_path.go:76

	}
	errors = append(errors, err)

	var propertyIRIString PropertyIRIString
	err = json.Unmarshal(data, &propertyIRIString)
	if err == nil {
		p.PropertyPathI = propertyIRIString
		return nil
	}
	errors = append(errors, err)

	step, err := Unmarshal(data)
	if err == nil {
		pathStep, ok := step.(PathStep)
		if ok {
			p.PropertyPathI = pathStep
			return nil
		}
		errors = append(errors, fmt.Errorf("Step of type %T is not a PathStep. A PropertyPath step must be a PathStep", step))
	}
	errors = append(errors, err)

	return formatMultiError(errors)
}

// PropertyIRIs is a slice of property IRIs.
type PropertyIRIs []PropertyIRI

// BuildPath implements PropertyPath.
func (p PropertyIRIs) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error) {
	var values []quad.Value
	for _, iri := range p {
		values = append(values, iri.full(ns))
	}
	return path.StartPath(qs, values...), nil
}

View on GitHub (pinned to 81dcd7d73e)

When it happens

Trigger: Thrown at query/linkedql/property_path.go:76 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/da7926c7619ce554. Report an issue: GitHub.