From 61c42c1f45c419255313c10bee447597807c678f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petter=20Goks=C3=B8yr=20=C3=85sen?= Date: Sat, 15 Jul 2017 21:31:34 +0200 Subject: [PATCH] rdf: graph decode, update logic to select literal by language --- rdf/memory/graph.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rdf/memory/graph.go b/rdf/memory/graph.go index a9f1774..c442145 100644 --- a/rdf/memory/graph.go +++ b/rdf/memory/graph.go @@ -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 {