pub fn parse_path(g: &Loaded, term: &Term) -> Result<Path, String>
Parse a SHACL path term. Returns an error string for malformed paths.