amalgame/commit

skos_match independent of format, do not crunch on empty literals

authorJacco van Ossenbruggen
Fri May 23 12:17:11 2014 +0200
committerJacco van Ossenbruggen
Fri May 23 12:17:11 2014 +0200
commitaeb35ed6856c38f4ebb1e82f925d3d3edb336fb1
tree8a93008edd73cf254c28905d560782021e8ff0b9
parent8606534118cc4595e6600e28f49dfa0b541f507a
Diff style: patch stat
diff --git a/lib/ag_modules/exact_label_match.pl b/lib/ag_modules/exact_label_match.pl
index 992ba93..1a749d8 100644
--- a/lib/ag_modules/exact_label_match.pl
+++ b/lib/ag_modules/exact_label_match.pl
@@ -70,8 +70,6 @@ match(align(Source, Target, Prov0), align(Source, Target, [Prov|Prov0]), Options
 	option(matchacross_type(IgnoreType),  Options, true),
 	option(case_sensitive(CaseSensitive), Options, false),
 	option(source_language(Lang), Options, 'any'),
-	option(source_format(FormatS), Options, 'skos'),
-	option(target_format(FormatT), Options, 'skos'),
 	(   Lang == 'any'
 	->  SourceLang = _
 	;   SourceLang = Lang
@@ -89,9 +87,11 @@ match(align(Source, Target, Prov0), align(Source, Target, [Prov|Prov0]), Options
 	;   true
 	),
 
-	skos_match(FormatS, Source, MatchPropS, literal(lang(SourceLang, SourceLabel)), 
-		SourceProp, Options),
-	skos_match(FormatT, Target, MatchPropT, SearchTarget,                           
+	skos_match(Source, MatchPropS,
+		   literal(lang(SourceLang, SourceLabel)),
+		   SourceProp, Options),
+	SourceLabel \= '',
+	skos_match(Target, MatchPropT, SearchTarget,
 		TargetProp, Options),
 
 	(   option(target_scheme(TargetScheme), Options)