Skip to main content

Web Service Method: Update an Attribute Property of a Resource

Abstract

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

editor

The editor's URI.

IRI

JSON representation of an IRI object.

true

IRI Type Object

Attribute

Type

Comment

uri

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

oldValue

CustomValue

Existing value

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#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