Web Service Method: Update a Relation Property for a Resource

Description

Use this API call to update a relation property from a resource.


URL: /PoolParty/api/editor/{project}/updateRelation

Supported Methods
POST

Content-Type

application/json

Request Parameters

Parameter

Comment

Type

Required

editorThe editor's URI.

IRI

JSON representation of an IRI object.

true

IRI Type Object

Attribute

Type

Comment

uriStringThe string value of the URI. URIs must contain a colon ':' and must not contain any whitespaces.

Example IRI

{
  "uri" : "https://semantic-web.com/api/uri#5233"
}

Request Attributes

AttributeTypeComment
contextStringURI of the mutable graph in which the source exists.
predicateStringURI of a relation property
subjectStringURI of source
valueCustomValue

URI of target resource.

Example

{
  "predicate" : "some predicate",
  "subject" : "https://semantic-web.com/api/subject#22780",
  "context" : "some context",
  "value" : "some value"
}

Response

Content-Type

text/plain

Status: 200- OK