Find paths between the start and end objects up to a specified number of hops in length
Performs a path search between the start and end objects. Matching paths are returned as a list of endpoints, from the leaf vertex to the root vertex, since clients are typically most interested in the leaves, and the rest of the path provides contextual information. The response item media type is application/vnd.sas.sand.path. This endpoint is experimental and should be used only in test environments.
1{2 "links": [3 {4 "method": "POST",5 "rel": "self",6 "href": "/svi-sand/paths?start=0&limit=50",7 "uri": "/svi-sand/paths?start=0&limit=50",8 "type": "application/vnd.sas.sand.paths.request",9 "responseType": "application/vnd.sas.collection",10 "responseItemType": "application/vnd.sas.sand.path"11 },12 {13 "method": "POST",14 "rel": "collection",15 "href": "/svi-sand/paths",16 "uri": "/svi-sand/paths",17 "type": "application/vnd.sas.sand.paths.request",18 "responseType": "application/vnd.sas.collection",19 "responseItemType": "application/vnd.sas.sand.path"20 }21 ],22 "name": "paths",23 "accept": "application/vnd.sas.sand.path",24 "start": 0,25 "count": 1,26 "items": [27 {28 "endpoints": [29 {30 "id": "10",31 "type": "claim",32 "typeLabel": "Claim",33 "label": "Claim: 0009900136650",34 "attachmentsCount": 3,35 "adjacent": 1,36 "degree": 137 },38 {39 "id": "9",40 "type": "entityRelationship",41 "label": "regarding",42 "endpoints": [43 {44 "id": "10",45 "type": "claim"46 },47 {48 "id": "73",49 "type": "address"50 }51 ]52 },53 {54 "id": "73",55 "type": "address",56 "typeLabel": "Address",57 "label": "1203 SAMUEL ADAMS CIR, CONCORD, NC",58 "attachmentsCount": 1,59 "adjacent": 3,60 "degree": 361 },62 {63 "id": "11",64 "type": "entityRelationship",65 "label": "regarding",66 "endpoints": [67 {68 "id": "4",69 "type": "claim"70 },71 {72 "id": "73",73 "type": "address"74 }75 ]76 },77 {78 "id": "4",79 "type": "claim",80 "typeLabel": "Claim",81 "label": "Claim: 0009900073608",82 "attachmentsCount": 2,83 "adjacent": 1,84 "degree": 185 },86 {87 "id": "5",88 "type": "resolvedEntityRelationship",89 "label": "raised by",90 "compoundValues": [91 "Smith 1982-03-14"92 ],93 "endpoints": [94 {95 "id": "4",96 "type": "claim"97 },98 {99 "id": "115",100 "type": "person"101 }102 ]103 },104 {105 "id": "115",106 "type": "person",107 "typeLabel": "Person",108 "compoundValues": [109 "Smith 1982-03-14"110 ],111 "label": "John Smith",112 "adjacent": 4,113 "degree": 4114 }115 ]116 }117 ],118 "limit": 50,119 "version": 2120}
| Name | Type | Required | Description |
|---|---|---|---|
edgeExpansionLimit | integer | false | The maximum number of new vertices to be found when traversing edges. If a value greater than 0 is specified and the number of new vertices found by the search exceeds the limit, then the search is cancelled and a message is returned. Default: 10000 |
expansionLimit | integer | false | The maximum number of new vertices to be found when searching vertices. If a value greater than 0 is specified and the number of new vertices found by the search exceeds the limit, then the search is cancelled and a message is returned. Default: 2000 |
limit | integer | false | The maximum number of paths to include in each page. Default: 20 |
start | integer | false | The index of the first path to include in the current page. Default: 0 |
The request to /relatedObjects when searching for paths between start and end objects.
| Name | Type | Required | Description |
|---|---|---|---|
version | integer | false | The representation version (1). |
startTypes | array [string] | false | The optional list of type names for the start objects. If missing, all types are searched. |
startQuery | query or anyOf queryTypeAndqueryTypeCompoundqueryTypeObjectqueryTypeOrqueryTypeText | false | The different query types that can be used to search for objects. See specific query definitions for more details. |
startFilter | filter or oneOf filterTypeAndfilterTypeBoxfilterTypeDateRangefilterTypeNotfilterTypeOrfilterTypePolygonfilterTypeQueryfilterTypeRadiusfilterTypeRangefilterTypeTermsfilterTypeTypefilterTypeShape | false | The different filter types that can be applied to narrow or drill down into the search results. See specific filter definitions for more details. |
endTypes | array [string] | false | The optional list of type names for the end objects. If missing, all types are searched. |
endQuery | query or anyOf queryTypeAndqueryTypeCompoundqueryTypeObjectqueryTypeOrqueryTypeText | false | The different query types that can be used to search for objects. See specific query definitions for more details. |
endFilter | filter or oneOf filterTypeAndfilterTypeBoxfilterTypeDateRangefilterTypeNotfilterTypeOrfilterTypePolygonfilterTypeQueryfilterTypeRadiusfilterTypeRangefilterTypeTermsfilterTypeTypefilterTypeShape | false | The different filter types that can be applied to narrow or drill down into the search results. See specific filter definitions for more details. |
hops | integer | false | The maximum number of hops, that is, relationships to be included in each path. The minimum and default value is 1. The maximum value is 4. |
| Status | Meaning | Description | ||
|---|---|---|---|---|
| 200 | OK | The request succeeded. | Schema | |
| 400 | Bad Request | The request is malformed or contains invalid parameter values; or the search had to be cancelled because the number of new vertices exceeded the expansion limit. | Schema |