forked from D-Net/dnet-hadoop
Merge pull request 'trust truncated to 3 decimals' (#24) from trunc_trust into master
LGTM
This commit is contained in:
commit
93f7b7974f
|
@ -527,9 +527,12 @@ public class MigrateDbEntitiesApplication extends AbstractMigrationApplication i
|
||||||
final Boolean deletedbyinference = rs.getBoolean("deletedbyinference");
|
final Boolean deletedbyinference = rs.getBoolean("deletedbyinference");
|
||||||
final String inferenceprovenance = rs.getString("inferenceprovenance");
|
final String inferenceprovenance = rs.getString("inferenceprovenance");
|
||||||
final Boolean inferred = rs.getBoolean("inferred");
|
final Boolean inferred = rs.getBoolean("inferred");
|
||||||
final String trust = rs.getString("trust");
|
|
||||||
|
final double trust = rs.getDouble("trust");
|
||||||
|
|
||||||
return dataInfo(
|
return dataInfo(
|
||||||
deletedbyinference, inferenceprovenance, inferred, false, ENTITYREGISTRY_PROVENANCE_ACTION, trust);
|
deletedbyinference, inferenceprovenance, inferred, false, ENTITYREGISTRY_PROVENANCE_ACTION,
|
||||||
|
String.format("%.3f", trust));
|
||||||
}
|
}
|
||||||
|
|
||||||
private Qualifier prepareQualifierSplitting(final String s) {
|
private Qualifier prepareQualifierSplitting(final String s) {
|
||||||
|
|
|
@ -31,8 +31,8 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"field": "trust",
|
"field": "trust",
|
||||||
"type": "string",
|
"type": "double",
|
||||||
"value": "0.9"
|
"value": 0.9
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"field": "inferenceprovenance",
|
"field": "inferenceprovenance",
|
||||||
|
|
|
@ -114,8 +114,8 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"field": "trust",
|
"field": "trust",
|
||||||
"type": "string",
|
"type": "double",
|
||||||
"value": "0.9"
|
"value": 0.9
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"field": "inferenceprovenance",
|
"field": "inferenceprovenance",
|
||||||
|
|
|
@ -96,8 +96,8 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"field": "trust",
|
"field": "trust",
|
||||||
"type": "string",
|
"type": "double",
|
||||||
"value": "0.9"
|
"value": 0.9
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"field": "inferenceprovenance",
|
"field": "inferenceprovenance",
|
||||||
|
|
|
@ -41,8 +41,8 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"field": "trust",
|
"field": "trust",
|
||||||
"type": "string",
|
"type": "double",
|
||||||
"value": "0.9"
|
"value": 0.9
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"field": "inferenceprovenance",
|
"field": "inferenceprovenance",
|
||||||
|
|
|
@ -86,8 +86,8 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"field": "trust",
|
"field": "trust",
|
||||||
"type": "string",
|
"type": "double",
|
||||||
"value": "0.9"
|
"value": 0.9
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"field": "inferenceprovenance",
|
"field": "inferenceprovenance",
|
||||||
|
|
Loading…
Reference in New Issue