A Knowledge Graph is a graph-based data model representation of knowledge within a domain. In other words, it contains nodes and edges that represent entities and the relationships between them. The API should then enable the creation, update, or query with regard to these graphs and their models.
Knowledge Graph API (1)
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/
https://api.corporate-data-league.ch/knowledge-graph-api/soap/v1/
https://api.corporate-data-league.ch/knowledge-graph-api/
- Mock server
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs
- Production SOAP
https://api.corporate-data-league.ch/knowledge-graph-api/soap/v1/knowledgegraphs
- Production
https://api.corporate-data-league.ch/knowledge-graph-api/knowledgegraphs
curl -i -X POST \
-u <username>:<password> \
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs \
-H 'Content-Type: application/json' \
-H 'X-Credential-Username: 87b1bdb1-ba87-4522-b363-c5a0e6e917b3' \
-d '{
"url": "https://www.cdq.com",
"description": "CDQ'\''s master Knowledge Graph"
}'{ "summary": "Successfully created Knowledge Graph", "value": "{ \"id\":1, \"url\":\"https://www.cdq.com\", \"description\": \"CDQ's master Knowledge Graph\", \"creator\":\"demo_user\", \"creationDate\":\"2021-12-29T11:41:30\", \"modificationDate\":\"2021-12-29T11:41:30\", \"status\":\"ACTIVE\" }\n" }
The number of the page to read. Parameter isn't required, by default, set to '0'.
Maximum number of elements on the page to read. Parameter isn't required. Can't be negative, by default, set to 10.
Enables sorting on Knowledge Graph's attributes: * URL - sorting by url of knowledge graph. * DESCRIPTION - sorting by description of knowledge graph. * CREATOR - sorting by creator of knowledge graph. * CREATED_AT - sorting by username of creator. * LAST_MODIFICATION_DATE - sorting by last modification date. * LAST_MODIFIER - sorting by username of last modifier.
Allows changing the default sorting order (ASC) to desire by user.
| Enum Value | Description |
|---|---|
| DESC | Sort in descending order. |
| ASC | Sort in ascending order. |
Filter knowledge graphs models by status value.
| Enum Value | Description |
|---|---|
| ACTIVE | Active status. |
| DEACTIVATED | Deactivated status. |
Filter knowledge graphs by url.
- Mock server
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs
- Production SOAP
https://api.corporate-data-league.ch/knowledge-graph-api/soap/v1/knowledgegraphs
- Production
https://api.corporate-data-league.ch/knowledge-graph-api/knowledgegraphs
curl -i -X GET \
-u <username>:<password> \
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs \
-H 'X-Credential-Username: 87b1bdb1-ba87-4522-b363-c5a0e6e917b3'{ "summary": null, "value": "{\"pageSize\":100,\"page\":0,\"total\":1,\"values\":[{\"id\":1,\"url\":\"https://www.cdq.com\",\"description\":\"CDQ's master Knowledge Graph\",\"creator\":\"demo_user\",\"creationDate\":\"2021-12-29T11:41:30\",\"modificationDate\":\"2021-12-29T11:41:30\",\"status\":\"ACTIVE\"}]}\n" }
- Mock server
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/{knowledgeGraphId}
- Production SOAP
https://api.corporate-data-league.ch/knowledge-graph-api/soap/v1/knowledgegraphs/{knowledgeGraphId}
- Production
https://api.corporate-data-league.ch/knowledge-graph-api/knowledgegraphs/{knowledgeGraphId}
curl -i -X GET \
-u <username>:<password> \
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/1 \
-H 'X-Credential-Username: 87b1bdb1-ba87-4522-b363-c5a0e6e917b3'{ "summary": null, "value": "{\"id\":1,\"url\":\"https://www.cdq.com\",\"description\":\"CDQ's master Knowledge Graph\",\"creator\":\"demo_user\",\"creationDate\":\"2021-12-29T11:41:30\",\"modificationDate\":\"2021-12-29T11:41:30\",\"status\":\"ACTIVE\"}\n" }
- Mock server
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/{knowledgeGraphId}
- Production SOAP
https://api.corporate-data-league.ch/knowledge-graph-api/soap/v1/knowledgegraphs/{knowledgeGraphId}
- Production
https://api.corporate-data-league.ch/knowledge-graph-api/knowledgegraphs/{knowledgeGraphId}
curl -i -X PUT \
-u <username>:<password> \
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/1 \
-H 'Content-Type: application/json' \
-H 'X-Credential-Username: 87b1bdb1-ba87-4522-b363-c5a0e6e917b3' \
-d '{
"url": "https://www.cdq.com",
"description": "Updated description of Knowledge Graph."
}'{ "summary": "Response to a successful deactivation of a Knowledge Graph.", "value": "{ \"id\": 1, \"url\": \"https://www.cdq.com\", \"description\": \"Updated description of Knowledge Graph.\", \"creator\": \"demo_user\", \"creationDate\": \"2021-12-29T11:41:30\", \"modificationDate\": \"2021-12-29T12:47:57\", \"status\": \"ACTIVE\" }\n" }
- Mock server
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/{knowledgeGraphId}
- Production SOAP
https://api.corporate-data-league.ch/knowledge-graph-api/soap/v1/knowledgegraphs/{knowledgeGraphId}
- Production
https://api.corporate-data-league.ch/knowledge-graph-api/knowledgegraphs/{knowledgeGraphId}
curl -i -X DELETE \
-u <username>:<password> \
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/1 \
-H 'X-Credential-Username: 87b1bdb1-ba87-4522-b363-c5a0e6e917b3'{ "summary": "Response to a successful deactivation of a Knowledge Graph.", "value": "{ \"id\": 1, \"url\": \"https://www.cdq.com\", \"description\": \"Updated description of Knowledge Graph.\", \"creator\": \"demo_user\", \"creationDate\": \"2021-12-29T11:41:30\", \"modificationDate\": \"2021-12-29T12:47:57\", \"status\": \"DEACTIVATED\" }\n" }