- URL:
- https://<kgserver_datamodel-url>/queryDataModel
- Methods:
GET
Description
The query
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
Property | Details |
---|---|
| The response format. The default response format is Values: |
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 Supply
:
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 Has
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.
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 Query
file.