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/{knowledgeGraphId}/models/{modelId}/import/rdf
- Production SOAP
https://api.corporate-data-league.ch/knowledge-graph-api/soap/v1/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/import/rdf
- Production
https://api.corporate-data-league.ch/knowledge-graph-api/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/import/rdf
curl -i -X POST \
-u <username>:<password> \
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/1/models/1/import/rdf \
-H 'Content-Type: multipart/form-data' \
-H 'X-Credential-Username: 87b1bdb1-ba87-4522-b363-c5a0e6e917b3' \
-F inputFile=file.csv \
-F importMode=MERGE \
-F separatorType=COMMA{ "importId": "1", "importJobId": "1", "importMode": "MERGE", "separatorType": "COMMA", "inputFile": "file.csv" }
Parameter used to filter import jobs by type.
| Enum Value | Description |
|---|---|
| CSV_IMPORT | Import a job for CSV file. |
| MODEL_IMPORT | Import a job for a model. |
| RDF_IMPORT | Import job for an RDF file. |
The number of the page to read. Parameter isn't required, by default, set to '0'.
- Mock server
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/import
- Production SOAP
https://api.corporate-data-league.ch/knowledge-graph-api/soap/v1/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/import
- Production
https://api.corporate-data-league.ch/knowledge-graph-api/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/import
curl -i -X GET \
-u <username>:<password> \
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/1/models/1/import \
-H 'X-Credential-Username: 87b1bdb1-ba87-4522-b363-c5a0e6e917b3'{ "summary": "List of executed CSV import jobs", "value": "{ values: [{ \"id\": 1, \"editId\": 1, \"startDate\": \"2022-01-12T17:32:00\", \"endDate\": \"2022-01-12T17:32:00\", \"user\": \"user\", \"status\": \"FINISHED\", \"inputFile\": \"path/to/file.csv\", \"jobUuid\": \"0000-00000-00000-00000\", \"type\": \"CSV_IMPORT\" }], page: 0, pageSize: 10, total: 1 }\n" }
- Mock server
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/import/csv
- Production SOAP
https://api.corporate-data-league.ch/knowledge-graph-api/soap/v1/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/import/csv
- Production
https://api.corporate-data-league.ch/knowledge-graph-api/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/import/csv
curl -i -X POST \
-u <username>:<password> \
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/1/models/1/import/csv \
-H 'Content-Type: multipart/form-data' \
-H 'X-Credential-Username: 87b1bdb1-ba87-4522-b363-c5a0e6e917b3' \
-F inputFile=file.csv{ "summary": "Successful CSV file import response. \"jobId\" is the uuid of the created job, returned from services.", "value": "{ \"importId\": null, \"importJobId\": \"jobId\", \"importMode\": \"MERGE\", \"inputFile\": null, \"separatorType\": \"COMMA\" }\n" }
- Mock server
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/import/model
- Production SOAP
https://api.corporate-data-league.ch/knowledge-graph-api/soap/v1/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/import/model
- Production
https://api.corporate-data-league.ch/knowledge-graph-api/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/import/model
curl -i -X POST \
-u <username>:<password> \
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/1/models/1/import/model \
-H 'Content-Type: application/json' \
-H 'X-Credential-Username: 87b1bdb1-ba87-4522-b363-c5a0e6e917b3' \
-d '{
"srcModelId": 1,
"srcKnowledgeGraphId": 1
}'{ "summary": "Successful submitted request", "value": "{ \"importId\": 1, \"importJobId\": \"job-uuid\", \"importMode\": \"MERGE\", \"srcModelId\": 1 }\n" }
- Mock server
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/import/concepts
- Production SOAP
https://api.corporate-data-league.ch/knowledge-graph-api/soap/v1/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/import/concepts
- Production
https://api.corporate-data-league.ch/knowledge-graph-api/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/import/concepts
curl -i -X POST \
-u <username>:<password> \
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/1/models/1/import/concepts \
-H 'Content-Type: application/json' \
-H 'X-Credential-Username: 87b1bdb1-ba87-4522-b363-c5a0e6e917b3' \
-d '{
"srcModelId": 1,
"srcKnowledgeGraphId": 1,
"conceptsIdList": [
1,
2
]
}'{ "importId": "1", "importJobId": "1", "importMode": "MERGE", "separatorType": "COMMA", "srcModelId": "1", "conceptsIdList": [ "1" ] }