Web Service Method: Create and Configure a New GraphEditor
Web Service Method: Create and Configure a New GraphEditor
Description |
|---|
Create and configure a new GraphEditor. |
URL: /PoolParty/api/editor/{project}/create
Supported Methods |
|---|
POST |
Content-Type
application/json
Path Variables
Variable | Description |
|---|---|
{project} | The project UUID or textual identifier |
Request Attributes
JsonCreateEditorRequest
Attribute | Type | Comment |
|---|---|---|
baseUrl | String | Base url for creation of new resources |
contributor | String | GraphEditor contributor |
customschemes | Array of IRI | Custom scheme(s) to be used in editor |
description | String | GraphEditor description |
graphs | Array of JsonGraphRequest | One or more graph(s) to be used for editing and lookup |
incrementFrom | int | Increment start only needed when ID-Generation is 'increment' |
method | String | URI Generation method. Possible Values: increment, UUID, manual |
repository | IRI | Repository Id as specified in Semantic Middleware |
subject | String | Primary subject of the project |
title | String | Title for editor |
Example IRI
{
"uri" : "https://semantic-web.com/api/uri#5233"
}Example of JsonCreateEditorRequest
{
"baseUrl" : "some baseUrl",
"graphs" : [ {
"context" : {
"uri" : "https://semantic-web.com/api/context#15110"
},
"readOnly" : false,
"priority" : 3222
}, {
"context" : {
"uri" : "https://semantic-web.com/api/context#10539"
},
"readOnly" : false,
"priority" : 11769
}, {
"context" : {
"uri" : "https://semantic-web.com/api/context#10696"
},
"readOnly" : true,
"priority" : 16405
} ],
"contributor" : "some contributor",
"method" : "some method",
"subject" : "https://semantic-web.com/api/subject#9016",
"description" : "Chuck Norris counted to infinity. Twice.",
"customschemes" : [ {
"uri" : "https://semantic-web.com/api/customschemes#20248"
} ],
"repository" : {
"uri" : "https://semantic-web.com/api/repository#22940"
},
"title" : "All about Chuck Norris",
"incrementFrom" : 26391
}JsonGraphRequest
Attribute | Type | Comment |
|---|---|---|
context | IRI | Graph uri |
priority | int | Graph priority for adding of new resource |
readOnly | boolean | True only if graph can be used for lookup. False if new resources can be created in this graph |
Example of JsonGraphRequest
{
"context" : {
"uri" : "https://semantic-web.com/api/context#26767"
},
"readOnly" : true,
"priority" : 28780
}Response
Content-Type
text/plain
Status: 200- OK