Skip to content

Commit

Permalink
rdf: graph decode, update logic to select literal by language
Browse files Browse the repository at this point in the history
  • Loading branch information
boutros committed Jul 15, 2017
1 parent aedf498 commit 61c42c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rdf/memory/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,8 @@ func (g *Graph) filterByPrefLangs(nodes []int, prefLangs []string) []int {
}
}
}

return nil
// no match in pref langs, take any available any
return []int{nodes[0]}
}

func (g *Graph) decodeStruct(rv reflect.Value, nodeID int, base string, prefLangs []string) error {
Expand Down

0 comments on commit 61c42c1

Please sign in to comment.