amalgame/commit

FIXED: rdf11 literal handling

authorJacco van Ossenbruggen
Fri Feb 28 14:58:08 2020 +0100
committerJacco van Ossenbruggen
Fri Feb 28 14:58:08 2020 +0100
commit74ed59235d06cc7b5006ca12cc4107a8bdb3bb6d
tree3284a705aec43a939cca0c46b4124237d0008e17
parentdef4e53f487b9ed9bfe10268a867dad4b2567496
Diff style: patch stat
diff --git a/components/amalgame/correspondence.pl b/components/amalgame/correspondence.pl
index fe16d9f..82cd988 100644
--- a/components/amalgame/correspondence.pl
+++ b/components/amalgame/correspondence.pl
@@ -265,7 +265,7 @@ html_image_examples([E|Tail]) -->
 image_examples(R, Es) :-
 	% hack: assume non-literal examples to be image urls ...
 	findall(E, ( rdf(R, skos:example, E),
-		     \+ E =.. [literal|_]
+		     \+ rdf_is_literal(E)
 		   ),
 		List),
 	sort(List, Es).
@@ -416,6 +416,11 @@ evidence_shape(Resource, Shape, _Options) :-
 %	Defines graph node shape for different types of evidence
 %	resources.
 
+evidence_shape(_@_,
+	       [shape(box),
+		style(filled),
+		fontsize(10)]) :-
+	!.
 evidence_shape(literal(_),
 	       [shape(box),
 		style(filled),