amalgame/commit
IMPROVED: do not fail on skos concepts without label
author | Jacco van Ossenbruggen |
---|---|
Thu Feb 27 17:28:16 2020 +0100 | |
committer | Jacco van Ossenbruggen |
Thu Feb 27 17:28:16 2020 +0100 | |
commit | eb40ef012f87535269594c6497c0e6d90823c049 |
tree | 53b5cb164efa3b644974609434965d83ad98cdf8 |
parent | ed7ae79779534371220a7449d688904c8566187e |
Diff style: patch stat
diff --git a/components/amalgame/correspondence.pl b/components/amalgame/correspondence.pl index 27763ce..6ea6af2 100644 --- a/components/amalgame/correspondence.pl +++ b/components/amalgame/correspondence.pl @@ -207,7 +207,10 @@ html_resource_context('',_) --> !. html_resource_context(URI, _Prov) --> { rdf_display_label(URI, Label), skos_all_labels(URI, Alt0), - select(Label, Alt0, Alt), + ( select(Label, Alt0, Alt) + -> true + ; Alt = [] + ), find_other_literals(URI, Alt0, Others), resource_tree(URI, Tree), findall(R, skos_related_concept(URI, R), Related),