API for Matcher on Project
Use this Matcher API function when you have a matcher project defined in OneData, and you want to use the matcher project through REST. You must pass the project name in the URL as given in the URL syntax. In the JSON input, you must pass the data to be matched and the candidates against which the data should be matched. This function is applicable to any type of project, including a pluggable type matcher.
In the API input, columnName should be the name of attribute defined for the project in the project mappings. Any additional configurations required for the matching process to complete should be mentioned in additionalConfig. For example, goodMatchWeightage, suspectMatchWeightage must be included for the OneData Matcher type, else the default values of 90 and 75 are used respectively.
URL
http://host:port/custom_OneData_application_name/rest/OneData_repository_ID/schema/DQ/matcher/project/matcher_project_name
Example: http://localhost:8080/WMOnedata/rest/OD98HAPA/Standard%20Project/DQ/matcher/project/ScarusMatcher
Mandatory Input Attributes
Required: | inputDataSet, matchCandidate |
Example of API Syntax
{
{
"dqConfig":
{
"additionalConfig":
{
"goodMatchWeightage":90,
"suspectMatchWeightage":80
}
},
"inputDataSet":
{
"rows":
[
{
"columns":
[
{
"name":"Name",
"value":"Software AG Kochi Pvt Ltd"
},
{
"name":"Website",
"value":"www.softwareag.com"
},
{
"name":"City",
"value":"Kochi"
},
{
"name":"State",
"value":"Kerala"
},
{
"name":"Street",
"value":"Panampilly Avenue"
}
],
"pkIdentifier":"1"
},
{
"columns":
[
{
"name":"Name",
"value":"Software AG Kochi Pvt Ltd"
},
{
"name":"Website",
"value":"www.softwareag.com"
},
{
"name":"State",
"value":"Kerala"
},
{
"name":"Street",
"value":"Panampilly Avenuecccccccccccccccccccccccccccc"
}
],
"pkIdentifier":"2"
},
{
"columns":
[
{
"name":"Website",
"value":"www.softwareag.com"
},
{
"name":"City",
"value":"Kochi"
},
{
"name":"State",
"value":"Kerala"
},
{
"name":"Street",
"value":"Panampilly Avenue"
}
],
"pkIdentifier":"3"
}
]
},
"matchCandidate":
{
"rows":
[
{
"columns":
[
{
"name":"Name",
"value":"Software AG Kochi Pvt Ltd"
},
{
"name":"Website",
"value":"www.softwareag.com"
},
{
"name":"City",
"value":"Kochi"
},
{
"name":"State",
"value":"Kerala"
},
{
"name":"Street",
"value":"Panampilly Avenue"
}
],
"pkIdentifier":"111"
},
{
"columns":
[
{
"name":"Name",
"value":"Software AG Kochi Pvt Ltd"
},
{
"name":"Website",
"value":"www.softwareag"
},
{
"name":"City",
"value":""
},
{
"name":"State",
"value":"Kerala"
},
{
"name":"Street",
"value":"111111"
},
{
"name":"Detailidentifier",
"value":"111222"
},
{
"name":"Buildingno",
"value":"28"
},
{
"name":"Zipcode",
"value":"682021"
}
],
"pkIdentifier":"222"
}
]
}
}