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

VariableDescription
{project}The project UUID or textual identifier

Request Attributes

JsonCreateEditorRequest

AttributeTypeComment
baseUrlStringBase url for creation of new resources
contributorStringGraphEditor contributor
customschemesArray of IRICustom scheme(s) to be used in editor
descriptionStringGraphEditor description
graphsArray of JsonGraphRequestOne or more graph(s) to be used for editing and lookup
incrementFromintIncrement start only needed when ID-Generation is 'increment'
methodStringURI Generation method. Possible Values: increment, UUID, manual
repositoryIRIRepository Id as specified in Semantic Middleware
subjectStringPrimary subject of the project
titleStringTitle 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

AttributeTypeComment
contextIRIGraph uri
priorityintGraph priority for adding of new resource
readOnlybooleanTrue 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