Package org.openrefine.model.recon
Class Recon
- java.lang.Object
-
- org.openrefine.model.recon.Recon
-
- All Implemented Interfaces:
Serializable
,HasFields
public class Recon extends Object implements HasFields, Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
Recon.Features
static class
Recon.Judgment
-
Field Summary
Fields Modifier and Type Field Description com.google.common.collect.ImmutableList<ReconCandidate>
candidates
static int
Feature_max
static int
Feature_nameLevenshtein
static int
Feature_nameMatch
static int
Feature_nameWordDistance
static int
Feature_typeMatch
Object[]
features
long
id
String
identifierSpace
Recon.Judgment
judgment
String
judgmentAction
long
judgmentHistoryEntry
ReconCandidate
match
int
matchRank
protected static Map<String,Integer>
s_featureMap
String
schemaSpace
String
service
-
Constructor Summary
Constructors Constructor Description Recon(long id, long judgmentHistoryEntry, Recon.Judgment judgment, ReconCandidate match, Object[] features, List<ReconCandidate> candidates, String service, String identifierSpace, String schemaSpace, String judgmentAction, Integer matchRank)
Recon(long judgmentHistoryEntry, String identifierSpace, String schemaSpace)
-
Method Summary
-
-
-
Field Detail
-
Feature_typeMatch
public static final int Feature_typeMatch
- See Also:
- Constant Field Values
-
Feature_nameMatch
public static final int Feature_nameMatch
- See Also:
- Constant Field Values
-
Feature_nameLevenshtein
public static final int Feature_nameLevenshtein
- See Also:
- Constant Field Values
-
Feature_nameWordDistance
public static final int Feature_nameWordDistance
- See Also:
- Constant Field Values
-
Feature_max
public static final int Feature_max
- See Also:
- Constant Field Values
-
id
public final long id
-
service
public final String service
-
identifierSpace
public final String identifierSpace
-
schemaSpace
public final String schemaSpace
-
features
public final Object[] features
-
candidates
public final com.google.common.collect.ImmutableList<ReconCandidate> candidates
-
judgment
public final Recon.Judgment judgment
-
judgmentAction
public final String judgmentAction
-
judgmentHistoryEntry
public final long judgmentHistoryEntry
-
match
public final ReconCandidate match
-
matchRank
public final int matchRank
-
-
Constructor Detail
-
Recon
public Recon(long id, long judgmentHistoryEntry, Recon.Judgment judgment, ReconCandidate match, Object[] features, List<ReconCandidate> candidates, String service, String identifierSpace, String schemaSpace, String judgmentAction, Integer matchRank)
-
-
Method Detail
-
judgmentToString
@Deprecated public static String judgmentToString(Recon.Judgment judgment)
Deprecated.
-
stringToJudgment
@Deprecated public static Recon.Judgment stringToJudgment(String s)
Deprecated.Deprecated: use JSON deserialization to create a Judgment object directly.
-
makeFreebaseRecon
@Deprecated public static Recon makeFreebaseRecon(long judgmentHistoryEntry)
Deprecated.
-
makeWikidataRecon
public static Recon makeWikidataRecon(long judgmentHistoryEntry)
-
dup
public Recon dup(long judgmentHistoryEntry)
-
getBestCandidate
public ReconCandidate getBestCandidate()
-
getFeature
public Object getFeature(int feature)
-
fieldAlsoHasFields
public boolean fieldAlsoHasFields(String name)
- Specified by:
fieldAlsoHasFields
in interfaceHasFields
-
judgmentToString
@Deprecated protected String judgmentToString()
Deprecated.
-
getId
public long getId()
-
getJudgmentHistoryEntry
public long getJudgmentHistoryEntry()
-
getServiceURI
public String getServiceURI()
-
getIdentifierSpace
public String getIdentifierSpace()
-
getSchemaSpace
public String getSchemaSpace()
-
getJudgment
public Recon.Judgment getJudgment()
-
getMatch
public ReconCandidate getMatch()
-
getCandidates
public List<ReconCandidate> getCandidates()
-
getfeatures
public Object[] getfeatures()
-
getJudgmentAction
public String getJudgmentAction()
-
getMatchRank
public Integer getMatchRank()
-
loadStreaming
public static Recon loadStreaming(String s) throws IOException
- Throws:
IOException
-
withId
public Recon withId(long newId)
-
withJudgmentHistoryEntry
public Recon withJudgmentHistoryEntry(long newJudgmentHistoryEntry)
-
withJudgment
public Recon withJudgment(Recon.Judgment newJudgment)
-
withMatch
public Recon withMatch(ReconCandidate newMatch)
-
withCandidates
public Recon withCandidates(List<ReconCandidate> newCandidates)
-
withCandidate
public Recon withCandidate(ReconCandidate newCandidate)
Adds a reconciliation candidate at the end of the list of candidates
-
withMatchRank
public Recon withMatchRank(int newMatchRank)
-
-