Web Service Method: Add a New Relation Property to a Resource
Abstract
Web Service Method: Add a New Relation Property to a Resource
Description |
---|
Use this API call to add a new relation property to a resource. |
URL: /PoolParty/api/editor/{project}/addRelation
Supported Methods |
---|
POST |
Content-Type
application/x-www-form-urlencoded
Request Parameters
Parameter | Comment | Type | Required |
---|---|---|---|
editor | The editor's URI. | IRI JSON representation of an IRI object. | true |
Example IRI
{ "uri" : "https://semantic-web.com/api/uri#5233" }
Request Attributes
Attribute | Type | Comment |
---|---|---|
context | String | URI of the mutable graph in which the source exists. |
predicate | String | URI of a relation property |
subject | String | URI of source |
value | CustomValue | 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