{"record":{"id":"da7926c7619ce554","repo":"cayleygraph/cayley","slug":"step-of-type-t-is-not-a-pathstep-a-propertypath","errorCode":null,"errorMessage":"Step of type %T is not a PathStep. A PropertyPath step must be a PathStep","messagePattern":"Step of type %T is not a PathStep\\. A PropertyPath step must be a PathStep","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"query/linkedql/property_path.go","lineNumber":76,"sourceCode":"\t}\n\terrors = append(errors, err)\n\n\tvar propertyIRIString PropertyIRIString\n\terr = json.Unmarshal(data, &propertyIRIString)\n\tif err == nil {\n\t\tp.PropertyPathI = propertyIRIString\n\t\treturn nil\n\t}\n\terrors = append(errors, err)\n\n\tstep, err := Unmarshal(data)\n\tif err == nil {\n\t\tpathStep, ok := step.(PathStep)\n\t\tif ok {\n\t\t\tp.PropertyPathI = pathStep\n\t\t\treturn nil\n\t\t}\n\t\terrors = append(errors, fmt.Errorf(\"Step of type %T is not a PathStep. A PropertyPath step must be a PathStep\", step))\n\t}\n\terrors = append(errors, err)\n\n\treturn formatMultiError(errors)\n}\n\n// PropertyIRIs is a slice of property IRIs.\ntype PropertyIRIs []PropertyIRI\n\n// BuildPath implements PropertyPath.\nfunc (p PropertyIRIs) BuildPath(qs graph.QuadStore, ns *voc.Namespaces) (*path.Path, error) {\n\tvar values []quad.Value\n\tfor _, iri := range p {\n\t\tvalues = append(values, iri.full(ns))\n\t}\n\treturn path.StartPath(qs, values...), nil\n}\n","sourceCodeStart":58,"sourceCodeEnd":94,"githubUrl":"https://github.com/cayleygraph/cayley/blob/81dcd7d73e45136bc0d01802a8ba4685d8a533eb/query/linkedql/property_path.go#L58-L94","documentation":"Error \"Step of type %T is not a PathStep. A PropertyPath step must be a PathStep\" thrown in cayleygraph/cayley.","triggerScenarios":"Thrown at query/linkedql/property_path.go:76 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"81dcd7d73e45136bc0d01802a8ba4685d8a533eb","analyzedAt":"2026-09-06T06:14:12.358Z","contentChangedAt":"2026-09-06T06:14:12.358Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}