owl/commit

More efficient handling of resources that have no sameas.

authorJan Wielemaker
Fri Dec 10 17:55:39 2010 +0100
committerJan Wielemaker
Fri Dec 10 17:55:39 2010 +0100
commitb3b3e6c406793c459546053dcef1cd331c112c19
treed41b269c7e42aa94c9bc58cf7e82aa67c521f658
parent4889d2b55932a3c94e540a4e247657774a9374a4
Diff style: patch stat
diff --git a/lib/semweb/owl_sameas.pl b/lib/semweb/owl_sameas.pl
index fdd8e1e..8df38a8 100644
--- a/lib/semweb/owl_sameas.pl
+++ b/lib/semweb/owl_sameas.pl
@@ -79,7 +79,7 @@ owl_sameas_partition(Resources, PowerSet) :-
 
 partition([], []).
 partition([H|T], [Set0|Sets]) :-
-	(   rdf_is_resource(H)
+	(   rdf_has(H, owl:sameAs, _)
 	->  findall(R, owl_sameas(H, R), Eq),
 	    sort(Eq, Set0),
 	    ord_subtract(T, Set0, Rest),