Revision 37183
Added by Claudio Atzori about 9 years ago
dissimilarity_2_hbase.xsl | ||
---|---|---|
12 | 12 |
<xsl:variable name="type" select="/ROW/FIELD[@name = 'entitytype']" /> |
13 | 13 |
<xsl:variable name="source" select="dnet:oafSimpleId($type, /ROW/FIELD[@name = 'id1'])" /> |
14 | 14 |
<xsl:variable name="target" select="dnet:oafSimpleId($type, /ROW/FIELD[@name = 'id2'])" /> |
15 |
|
|
16 |
<xsl:variable name="columnFamily"> |
|
17 |
<xsl:choose> |
|
18 |
<xsl:when test="$type = 'result'">resultResult_dedupSimilarity_isSimilarTo</xsl:when> |
|
19 |
<xsl:when test="$type = 'person'">personPerson_dedupSimilarity_isSimilarTo</xsl:when> |
|
20 |
<xsl:when test="$type = 'organization'">organizationOrganization_dedupSimilarity_isSimilarTo</xsl:when> |
|
21 |
</xsl:choose> |
|
22 |
</xsl:variable> |
|
15 | 23 |
|
16 | 24 |
<ROWS> |
17 |
<xsl:if test="string-length($source) > 0 and string-length($target) > 0"> |
|
18 |
<ROW key="{$source}" columnFamily="resultResult_dedupSimilarity_isSimilarTo">
|
|
25 |
<xsl:if test="string-length($source) > 0 and string-length($target) > 0 and string-length($columnFamily) > 0">
|
|
26 |
<ROW key="{$source}" columnFamily="{$columnFamily}">
|
|
19 | 27 |
<QUALIFIER name="{$target}" type="base64"></QUALIFIER> |
20 | 28 |
</ROW> |
21 |
<ROW key="{$target}" columnFamily="resultResult_dedupSimilarity_isSimilarTo">
|
|
29 |
<ROW key="{$target}" columnFamily="{$columnFamily}">
|
|
22 | 30 |
<QUALIFIER name="{$source}" type="base64"></QUALIFIER> |
23 | 31 |
</ROW> |
24 | 32 |
</xsl:if> |
Also available in: Unified diff
fixed user action mapping