curl --request POST \
--url https://api.datalinks.com/api/v1/ontology/curate-links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"namespace": "my_namespace",
"dataset": "my_dataset"
}
'{
"datasetsProcessed": 5,
"totalSelected": 45,
"curatedLinks": [
{
"destination": "ri.user.examples.actor.name",
"hits": 6,
"matchType": "ExactMatch",
"origin": "ri.user.examples.movies.director"
}
],
"cascade": {
"pairs": 123,
"links": 123,
"decidedLinkPairs": 123,
"decidedDropPairs": 123,
"reviewPairs": 123,
"failedPairs": 123,
"notJudgedPairs": 123,
"escalatedLinks": 123,
"agentSelectedLinks": 123
}
}{
"error_code": "UNAUTHORIZED",
"message": "Missing authentication token",
"error_message": "",
"sub_errors": [
{
"code": "<string>",
"message": "<string>"
}
]
}{
"error_code": "UNAUTHORIZED",
"message": "Missing authentication token",
"error_message": "",
"sub_errors": [
{
"code": "<string>",
"message": "<string>"
}
]
}{
"error_code": "UNAUTHORIZED",
"message": "Missing authentication token",
"error_message": "",
"sub_errors": [
{
"code": "<string>",
"message": "<string>"
}
]
}ontology
Curate ontology links
Curate the computed links for a dataset or all datasets in a namespace. When a link judge is configured it decides the pairs it can and the OntologyCurator agent judges the rest; otherwise the agent judges every link. When activate is true, the curated links are added to the ontology. When activate is false (default), only returns the curated links without activating them.
POST
/
ontology
/
curate-links
curl --request POST \
--url https://api.datalinks.com/api/v1/ontology/curate-links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"namespace": "my_namespace",
"dataset": "my_dataset"
}
'{
"datasetsProcessed": 5,
"totalSelected": 45,
"curatedLinks": [
{
"destination": "ri.user.examples.actor.name",
"hits": 6,
"matchType": "ExactMatch",
"origin": "ri.user.examples.movies.director"
}
],
"cascade": {
"pairs": 123,
"links": 123,
"decidedLinkPairs": 123,
"decidedDropPairs": 123,
"reviewPairs": 123,
"failedPairs": 123,
"notJudgedPairs": 123,
"escalatedLinks": 123,
"agentSelectedLinks": 123
}
}{
"error_code": "UNAUTHORIZED",
"message": "Missing authentication token",
"error_message": "",
"sub_errors": [
{
"code": "<string>",
"message": "<string>"
}
]
}{
"error_code": "UNAUTHORIZED",
"message": "Missing authentication token",
"error_message": "",
"sub_errors": [
{
"code": "<string>",
"message": "<string>"
}
]
}{
"error_code": "UNAUTHORIZED",
"message": "Missing authentication token",
"error_message": "",
"sub_errors": [
{
"code": "<string>",
"message": "<string>"
}
]
}Authorizations
bearerAuthopenId
Body
application/json
Request to curate ontology links for a dataset or namespace using the OntologyCurator agent.
Response
Links curated successfully
Response containing curation statistics and optionally the curated links when activate is false.