skos/commit
FIXED: better deal with multiple property values in the same language for some skos literal values
author | Jacco van Ossenbruggen |
---|---|
Thu Aug 21 15:35:28 2014 +0200 | |
committer | Jacco van Ossenbruggen |
Thu Aug 21 15:35:28 2014 +0200 | |
commit | 7babd187fc802f4344606d9a41c4a11ed738ff72 |
tree | 8084e695a3cac4158c7b522d59bab1936d01edca |
parent | 151f28b329c667e91417a4b8b294d567eabf76a8 |
Diff style: patch stat
diff --git a/lib/skos/json.pl b/lib/skos/json.pl index 69fb1f0..a90ec2b 100644 --- a/lib/skos/json.pl +++ b/lib/skos/json.pl @@ -1,8 +1,9 @@ :- module(skos_json, [ json_all_literal_propvalues/3]). -:- use_module(library('semweb/rdf_db')). -:- use_module(library('semweb/rdf_label')). +:- use_module(library(pairs)). +:- use_module(library(semweb/rdf_db)). +:- use_module(library(semweb/rdf_label)). :- rdf_meta json_all_literal_propvalues(r, r, -). @@ -21,4 +22,5 @@ json_all_literal_propvalues(R,P,Definitions) :- ; Lang=lang_undefined ) ), Pairs), - dict_pairs(Definitions, lang, Pairs). + group_pairs_by_key(Pairs, Grouped), + dict_pairs(Definitions, lang, Grouped).