<datacatalog_uri>/relationship[.<format>]
The relationship resource represents the relational datasource. It can access the dataset set registered by Data Store and get the entry of the dataset importing operation.
Supported Methods:
Supported output formats: rjson, json, html, xml.
Implement the HTTP request on the following URI, where supermapiserver is the server name, with rjson being the output format.
http://supermapiserver:8090/iserver/services/datacatalog/rest/datacatalog/relationship.rjson
Get the dataset set and the entry of the dataset importing operation.
GET request in relationship resource is a resource descriptive collection in the entity of response messaging, where the structure of a single resource description is as follows:
Field | Type | Description |
name | String | The resource name. |
path | String | Resource URL. |
resourceConfigID | String | The configuration item ID of the resource. |
resourceType | String | The resource type. |
supportedMediaTypes | String[] | The media-type of the supported representation. |
The returned rjson format representation after implementing the GET request on the relationship resource is as follows:
[
{
"name": "datasetsimport",
"path": "http://supermapiserver:8090/iserver/services/datacatalog/rest/datacatalog/relationship/datasetsimport",
"resourceConfigID": "datasetsimport",
"resourceType": null,
"supportedMediaTypes": null
},
{
"name": "datasets",
"path": "http://supermapiserver:8090/iserver/services/datacatalog/rest/datacatalog/relationship/datasets",
"resourceConfigID": "datasets",
"resourceType": null,
"supportedMediaTypes": null
}
]
Returns the same HTTP response header as the GET request, but does not have the response entity. It can get the metadata information in the response header without transferring the whole response content. Metadata information includes media type, character encoding, compression encoding, entity content length, and so on.
The HEAD request can be used to determine whether the relationship resource exists or whether the client has authority to access the relationship resource. It can quickly determine whether the relationship resource supports the representation in <format> format by performing HEAD request on URI with <format>.