Web Service Method: Update an Attribute Property of a Resource

Description

Use this API call to update an existing attribute property of a resource.


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

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

AttributeTypeComment
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 exist
oldValueCustomValueExisting value
predicateStringURI of attribute property
subjectStringURI of source
typeStringThe data type of the value that should be added. LITERAL, BOOLEAN, DATE, URI, INTEGER, LONG, FLOAT, DATETIME
valueCustomValueAttribute value that should be added

Example

{
  "predicate" : "some predicate",
  "subject" : "https://semantic-web.com/api/subject#7969",
  "context" : "some context",
  "oldValue" : {
    "language" : "it",
    "label" : "some label"
  },
  "type" : "https://semantic-web.com/api/type#32662",
  "value" : {
    "language" : "it",
    "label" : "some label"
  }

Response

Content-Type

text/plain

Status: 200- OK