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/
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.
Allows changing the default sorting order (ASC) to desire by user.
| Enum Value | Description |
|---|---|
| DESC | Sort in descending order. |
| ASC | Sort in ascending order. |
If enabled modification date will be determined against concept values.
- Mock server
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/concepts
- Production SOAP
https://api.corporate-data-league.ch/knowledge-graph-api/soap/v1/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/concepts
- Production
https://api.corporate-data-league.ch/knowledge-graph-api/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/concepts
curl -i -X GET \
-u <username>:<password> \
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/1/models/1/concepts \
-H 'X-Credential-Username: 87b1bdb1-ba87-4522-b363-c5a0e6e917b3'OK
List of concepts.
URL to the documentation which summarizes all details of the Business Partner Concepts.
Date of the last modification.
{ "summary": "Paginated response of concepts saved inside a model.", "value": "{\"pageSize\":10,\"page\":0,\"values\":[{\"id\":\"101\",\"url\":\"https://www.cdq.com/Configuration_parameters/CDQ_BASEURL\",\"lastModifier\":\"database-creation\",\"lastModificationDate\":\"2021-12-29T13:56:50\"},{\"id\":\"102\",\"url\":\"https://www.cdq.com/Has_value\",\"lastModifier\":\"database-creation\",\"lastModificationDate\":\"2021-12-29T13:56:50\"}],\"total\":2}\n" }
URL to the documentation which summarizes all details of the Business Partner Concepts.
- Mock server
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/concepts
- Production SOAP
https://api.corporate-data-league.ch/knowledge-graph-api/soap/v1/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/concepts
- Production
https://api.corporate-data-league.ch/knowledge-graph-api/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/concepts
curl -i -X POST \
-u <username>:<password> \
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/1/models/1/concepts \
-H 'Content-Type: application/json' \
-H 'X-Credential-Username: 87b1bdb1-ba87-4522-b363-c5a0e6e917b3' \
-d '{
"conceptUrl": "https://cdq.com/concept",
"properties": [
{
"propertyConcept": {
"url": "https://cdq.com/propertyA"
},
"value": {
"literal": "literal value example 1",
"datatypeUrl": "xsd:string",
"lang": "en"
}
},
{
"propertyConcept": {
"url": "https://cdq.com/propertyB"
},
"value": {
"literal": "literal value example 2",
"datatypeUrl": "xsd:string",
"lang": "en"
}
}
]
}'Created
URL to the documentation which summarizes all details of the Business Partner Concepts.
{ "summary": "Create concept response", "value": "{ \"id\": \"110\", \"url\": \"https://cdq.com/concept\", \"lastModifier\": \"demo_user\", \"lastModificationDate\": \"2021-12-30T08:05:00\" }\n" }
- Mock server
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/concepts/export
- Production SOAP
https://api.corporate-data-league.ch/knowledge-graph-api/soap/v1/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/concepts/export
- Production
https://api.corporate-data-league.ch/knowledge-graph-api/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/concepts/export
curl -i -X GET \
-u <username>:<password> \
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/1/models/1/concepts/export \
-H 'X-Credential-Username: 87b1bdb1-ba87-4522-b363-c5a0e6e917b3'{ "summary": "Successfully exported the concept as a CSV file.", "value": "{ \"linkToCSVPath\": \"knowledgegraphs/pathToFolder/userName-2022-12-14T09-04-01.082706266.csv\"}\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.
Sort concept values.
| Enum Value | Description |
|---|---|
| URL | Sort by url of the concept value. Sorts by URLs of properties. |
| VALUE | Sort by value of the concept. In case of literal value sorts by literals, in case of |
Allows changing the default sorting order (ASC) to desire by user.
| Enum Value | Description |
|---|---|
| DESC | Sort in descending order. |
| ASC | Sort in ascending order. |
- Mock server
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/concepts/{conceptId}/values
- Production SOAP
https://api.corporate-data-league.ch/knowledge-graph-api/soap/v1/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/concepts/{conceptId}/values
- Production
https://api.corporate-data-league.ch/knowledge-graph-api/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/concepts/{conceptId}/values
curl -i -X GET \
-u <username>:<password> \
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/1/models/1/concepts/1/values \
-H 'X-Credential-Username: 87b1bdb1-ba87-4522-b363-c5a0e6e917b3'OK
To be used when creating/editing of a new concept (or its associated values). It is expected in most cases only either of the properties will be set.
List of values assigned to the concept.
To be used when creating/editing of a new concept (or its associated values). It is expected in most cases only either of the properties will be set.
{ "summary": null, "value": "{\"pageSize\":10,\"page\":0,\"subjectConcept\":{\"id\":110,\"url\":\"https://cdq.com/concept/1\",\"creator\":\"demo_user\",\"creationDate\":\"2021-12-22T13:13:40\"},\"values\":[{\"propertyConcept\":{\"id\":111,\"url\":\"https://cdq.com/hasName\",\"creator\":\"demo_user\",\"creationDate\":\"2021-12-22T08:45:56\"},\"urlPropertyValues\":null,\"literalPropertyValues\":{\"value\":[{\"id\":139,\"literal\":\"Detailed name of concept\",\"datatypeUrl\":\"xsd:string\",\"lang\":\"en\",\"creator\":\"demo_user\",\"creationDate\":\"2021-12-22T09:31:39\"}]}},{\"propertyConcept\":{\"id\":112,\"url\":\"https://cdq.com/hasColour\",\"creator\":\"demo_user\",\"creationDate\":\"2021-12-22T08:46:03\"},\"urlPropertyValues\":{\"value\":[{\"id\":141,\"url\":\"https://cdq.com/colors/red\",\"creator\":\"demo_user\",\"creationDate\":\"2021-12-22T13:13:40\"}]},\"literalPropertyValues\":null}],\"total\":2}\n" }
To be used when creating/editing of a new concept (or its associated values). It is expected in most cases only either of the properties will be set.
URL to the documentation which summarizes all details of the Business Partner Concepts.
Date of creation (ISO 8601-compliant).
Date of deletion (ISO 8601-compliant).
Represents value of:
- an RDF object property (value refers to another concept by its URL)
- an RDF data property/literal value
URL to the documentation which summarizes all details of the Business Partner Concepts.
Date of creation (ISO 8601-compliant).
Date of deletion (ISO 8601-compliant).
Indicates if the concept is unmodifiable. If true, the concept is unmodifiable.
URL of the literal's datatype.
- Mock server
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/concepts/{conceptId}/values
- Production SOAP
https://api.corporate-data-league.ch/knowledge-graph-api/soap/v1/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/concepts/{conceptId}/values
- Production
https://api.corporate-data-league.ch/knowledge-graph-api/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/concepts/{conceptId}/values
curl -i -X POST \
-u <username>:<password> \
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/1/models/1/concepts/1/values \
-H 'Content-Type: application/json' \
-H 'X-Credential-Username: 87b1bdb1-ba87-4522-b363-c5a0e6e917b3' \
-d '{}'- Mock server
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/concepts/{conceptId}/values
- Production SOAP
https://api.corporate-data-league.ch/knowledge-graph-api/soap/v1/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/concepts/{conceptId}/values
- Production
https://api.corporate-data-league.ch/knowledge-graph-api/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/concepts/{conceptId}/values
curl -i -X PATCH \
-u <username>:<password> \
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/1/models/1/concepts/1/values \
-H 'Content-Type: application/json' \
-H 'X-Credential-Username: 87b1bdb1-ba87-4522-b363-c5a0e6e917b3' \
-d '[
"1"
]'URL to the documentation which summarizes all details of the Business Partner Concepts.
Date of creation (ISO 8601-compliant).
Date of deletion (ISO 8601-compliant).
Indicates if the concept is unmodifiable. If true, the concept is unmodifiable.
- Mock server
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/concepts/{conceptId}/values/{valueId}
- Production SOAP
https://api.corporate-data-league.ch/knowledge-graph-api/soap/v1/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/concepts/{conceptId}/values/{valueId}
- Production
https://api.corporate-data-league.ch/knowledge-graph-api/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/concepts/{conceptId}/values/{valueId}
curl -i -X PUT \
-u <username>:<password> \
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/1/models/1/concepts/1/values/1 \
-H 'Content-Type: application/json' \
-H 'X-Credential-Username: 87b1bdb1-ba87-4522-b363-c5a0e6e917b3' \
-d '{
"value": {
"literal": "new literal value",
"datatypeUrl": "xsd:string",
"lang": "en"
}
}'- Mock server
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/concepts/{conceptId}/values/{valueId}
- Production SOAP
https://api.corporate-data-league.ch/knowledge-graph-api/soap/v1/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/concepts/{conceptId}/values/{valueId}
- Production
https://api.corporate-data-league.ch/knowledge-graph-api/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/concepts/{conceptId}/values/{valueId}
curl -i -X DELETE \
-u <username>:<password> \
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/1/models/1/concepts/1/values/1 \
-H 'X-Credential-Username: 87b1bdb1-ba87-4522-b363-c5a0e6e917b3'URL to the documentation which summarizes all details of the Business Partner Concepts.
- Mock server
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/concepts/{conceptId}
- Production SOAP
https://api.corporate-data-league.ch/knowledge-graph-api/soap/v1/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/concepts/{conceptId}
- Production
https://api.corporate-data-league.ch/knowledge-graph-api/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/concepts/{conceptId}
curl -i -X PUT \
-u <username>:<password> \
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/1/models/1/concepts/1 \
-H 'Content-Type: application/json' \
-H 'X-Credential-Username: 87b1bdb1-ba87-4522-b363-c5a0e6e917b3' \
-d '{
"conceptUrl": "https://cdq.com/concept/2",
"properties": [
{
"propertyConcept": {
"url": "https://cdq.com/hasName",
"value": "1.842"
},
"value": {
"url": "https://cdq.com/propertyNames"
}
},
{
"propertyConcept": {
"url": "https://cdq.com/value/hasType"
},
"value": {
"literal": "custom type",
"datatypeUrl": "xsd:string",
"lang": "en"
}
},
{
"propertyConcept": {
"url": "https://cdq.com/value/hasSubType"
},
"value": {
"literal": "subtype",
"datatypeUrl": "xsd:string",
"lang": "pl"
}
}
],
"description": "Concept with updated type and subtype"
}'Concept updated successfully
URL to the documentation which summarizes all details of the Business Partner Concepts.
{ "summary": null, "value": "{ \"id\": \"110\", \"url\": \"https://cdq.com/concept/2\", \"lastModifier\": \"user\", \"lastModificationDate\": \"2021-12-30T08:51:47\" }\n" }
- Mock server
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/concepts/{conceptId}
- Production SOAP
https://api.corporate-data-league.ch/knowledge-graph-api/soap/v1/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/concepts/{conceptId}
- Production
https://api.corporate-data-league.ch/knowledge-graph-api/knowledgegraphs/{knowledgeGraphId}/models/{modelId}/concepts/{conceptId}
curl -i -X DELETE \
-u <username>:<password> \
https://idp.cdq.com/_mock/apis/knowledge-graph-api/api-v1/knowledgegraphs/1/models/1/concepts/1 \
-H 'X-Credential-Username: 87b1bdb1-ba87-4522-b363-c5a0e6e917b3'