MCP
Entités Wikidata Serveur MCP
Wikidata est une base de connaissances collaborative qui compte plus de 121 millions d'éléments couvrant des personnes, organisations, lieux, œuvres et concepts. Elle est importante pour la résolution d'entités, les graphes de connaissances, l'enrichissement de recherche et la recherche structurée.
MCP Version: 1.0.0 10 Outils MCP Authentification
URL de base
https://mcp.pressmonitor.com Authentification
Les appels MCP utilisent aussi des jetons Bearer sur des requêtes JSON-RPC 2.0.
Authorization: Bearer YOUR_TOKEN suggest_entities
Suggérer des entités
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| query_text | string | Oui | Texte de la requête |
| lang | string | Non | Langue |
| limit | string | Non | Limite |
| offset | string | Non | Décalage |
Exemples de code
curl -X POST "" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "suggest_entities",
"arguments": {
"query_text": "VALUE"
}
},
"id": 1
}' search_entities_by_label
Rechercher des entités par libellé
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| query_text | string | Oui | Texte de la requête |
| lang | string | Non | Langue |
| limit | string | Non | Limite |
| offset | string | Non | Décalage |
Exemples de code
curl -X POST "" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "search_entities_by_label",
"arguments": {
"query_text": "VALUE"
}
},
"id": 1
}' search_entities_by_description
Rechercher des entités par description
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| query_text | string | Oui | Texte de la requête |
| lang | string | Non | Langue |
| limit | string | Non | Limite |
| offset | string | Non | Décalage |
Exemples de code
curl -X POST "" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "search_entities_by_description",
"arguments": {
"query_text": "VALUE"
}
},
"id": 1
}' search_entities_by_type
Rechercher des entités par type
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| type | string | Oui | Type |
| query_text | string | Non | Texte de la requête |
| lang | string | Non | Langue |
| limit | string | Non | Limite |
| offset | string | Non | Décalage |
Exemples de code
curl -X POST "" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "search_entities_by_type",
"arguments": {
"type": "VALUE"
}
},
"id": 1
}' search_entities_by_claim_value
Rechercher des entités par valeur de revendication
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| property | string | Oui | Propriété |
| value | string | Non | Valeur |
| mode | string | Non | Mode |
| lang | string | Non | Langue |
| limit | string | Non | Limite |
| offset | string | Non | Décalage |
Exemples de code
curl -X POST "" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "search_entities_by_claim_value",
"arguments": {
"property": "VALUE"
}
},
"id": 1
}' search_entities_by_property
Rechercher des entités par propriété
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| property | string | Oui | Propriété |
| value | string | Non | Valeur |
| qualifier | string | Non | Qualificateur |
| rank | string | Non | Rang |
| lang | string | Non | Langue |
| limit | string | Non | Limite |
| offset | string | Non | Décalage |
Exemples de code
curl -X POST "" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "search_entities_by_property",
"arguments": {
"property": "VALUE"
}
},
"id": 1
}' search_entities_by_date_range
Rechercher des entités par intervalle de dates
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| property | string | Oui | Propriété |
| from | string | Non | De |
| to | string | Non | À |
| value | string | Non | Valeur |
| lang | string | Non | Langue |
| limit | string | Non | Limite |
| offset | string | Non | Décalage |
Exemples de code
curl -X POST "" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "search_entities_by_date_range",
"arguments": {
"property": "VALUE"
}
},
"id": 1
}' get_entity_by_id
Obtenir une entité par ID
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| wikidata_id | string | Oui | ID Wikidata |
| lang | string | Non | Langue |
Exemples de code
curl -X POST "" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "get_entity_by_id",
"arguments": {
"wikidata_id": "VALUE"
}
},
"id": 1
}' get_entity_claims
Obtenir les revendications d'une entité
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| wikidata_id | string | Oui | ID Wikidata |
| lang | string | Non | Langue |
| limit | string | Non | Limite |
| offset | string | Non | Décalage |
Exemples de code
curl -X POST "" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "get_entity_claims",
"arguments": {
"wikidata_id": "VALUE"
}
},
"id": 1
}' get_properties
Obtenir les propriétés
Exemples de code
curl -X POST "" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "get_properties",
"arguments": {}
},
"id": 1
}'