Query Data Model

URL:
https://<kgserver_datamodel-url>/queryDataModel
Methods:
GET

Description

The queryDataModel operation is performed on a knowledge graph service's data model resource. You can determine the types and properties of entities and relationships that can be created in the graph by querying the data model. The domain associated with each property is also specified.

Request parameters

PropertyDetails

f

The response format. The default response format is pbf .

Values: pbf | html

Example usage

The following is a sample request URL to get information about the graph data model's domains for a knowledge graph service named SupplyChain :

Use dark colors for code blocksCopy
1
https://machine.domain.com/webadaptor/rest/services/Hosted/SupplyChain/KnowledgeGraphServer/dataModel/queryDataModel?f=html

HTML Response syntax

When you query the knowledge graph server's data model, an HTML response is displayed on the page. The values returned depend on the entity types and relationship types defined in the service.

All knowledge graph services have a Document entity type and a HasDocument relationship type with system-defined and maintained properties. All entity types, relationship types, and properties must have unique names within the graph.

Properties for all graph items with the text data type and GUID data type can optionally be indexed to support searching their content from the graph resource. A type's strict setting determines if users who are not owners of the service or administrators in the organization can modify the type, for example, by adding a property.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
originGlobalIDFieldName: <property determining relationship origin>
documentEntityTypeInfo:
  <properties needed to support documents>
globalIdFieldName: <GUID property identifying graph items>
destinationGlobalIDFieldName: <property determining relationship destination>
domains:
  <list of domains>

objectIdFieldName: <objectID property for graph items>
entityTypes:
  schema:
   indexes:
     <list of Document entity type indexed properties>

   fields:
     <list of Document entity type properties>

  graphNamedObjectRole: document
  name: Document
  alias: Document
  strict: false

  schema:
   indexes:
     <list of user-defined entity type indexed properties>

   fields:
     <list of user-defined entity type properties>

  graphNamedObjectRole: regular
  name: <user-defined entity type name>
  alias: <user-defined entity type alias>
  strict: <boolean>

spatialReference:
 wkid: 4326

strict: false
relationshipTypes:
  schema:
   indexes:
     <list of HasDocument relationship type indexed properties>

   fields:
     <list of HasDocument relationship type properties>

  origin: [<list of user-defined entity types that have documents>]
  destination: [Document]
  graphNamedObjectRole: document
  name: HasDocument
  alias: Has document
  strict: false
  strictDest: true
  strictOrigin: false

  schema:
   indexes:
     <list of user-defined relationship type indexed properties>

   fields:
     <list of user-defined relationship type properties>

  origin: [<user-defined entity type name>]
  destination: [<user-defined entity type name>]
  graphNamedObjectRole: regular
  name: <user-defined relationship type name>
  alias: <user-defined relationship type alias>
  strict: <boolean>
  strictDest: <boolean>
  strictOrigin: <boolean>

timestamp: <dataModelTimestamp>

PBF Response

Create a PBF-formatted response to get feedback from the operation based on the QueryDataModelResponse.proto file.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.