Web Service Method: Add a New Attribute Property to a Resource
Web Service Method: Add a New Attribute Property to a Resource
Description |
---|
Use this API call to add a new attribute property to a resource. |
URL: /PoolParty/api/editor/{project}/addAttribute
Supported Methods |
---|
POST |
Content-Type
application/json
Request Parameters
Parameter | Comment | Type | Required |
---|---|---|---|
editor | The editor's URI. | IRI JSON representation of an IRI object. | true |
IRI Type Object
Attribute | Type | Comment |
---|---|---|
| String | The 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
Attribute | Type | Comment |
---|---|---|
context | String | URI of the mutable graph in which the source exist. |
predicate | String | URI of attribute property |
subject | String | URI of source |
type | String | The data type of the value that should be added. LITERAL, BOOLEAN, DATE, URI, INTEGER, LONG, FLOAT, DATETIME |
value | CustomValue | Attribute value that should be added. |
Example
{ "predicate" : "some predicate", "subject" : "https://semantic-web.com/api/subject#32540", "context" : "some context", "type" : "https://semantic-web.com/api/type#10948", "value" : { "language" : "en-us", "label" : "some label" } }
Response
Content-Type
text/plain
Status: 200- OK