Skip to main content

Web Service Method: Bulk Removal of GraphEditor Resources

Abstract

Web Service Method: Bulk Removal of GraphEditor Resources

Description

Bulk removal of resources.

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

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

Example IRI

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

Request Attributes

Attribute

Type

Comment

predicate

String

URI of the property

resources

Array of ResourceInfoRequest

List of resources to perform bulk operatio(s) on

searchRequest

JsonSearchRequest

Search request, if bulk operation is to be applied on specifc search result

JsonSearchRequest

Attribute

Type

additionalProperties

Array of IRI

attributeFilters

Array of JsonAttributeFilter

customClasses

Array of JsonClassFilter

limit

int

noClass

boolean

offset

int

relationFilters

Array of JsonRelationFilter

sortRequest

Array of SortRequest

Example of ResourceInfoRequest

{
  "predicate" : "some predicate",
  "searchRequest" : {
    "customClasses" : [ {
      "exist" : true,
      "type" : {
        "uri" : "https://semantic-web.com/api/type#31228"
      }
    }, {
      "exist" : false,
      "type" : {
        "uri" : "https://semantic-web.com/api/type#27436"
      }
    } ],
    "offset" : 29473,
    "limit" : 11515,
    "attributeFilters" : [ {
      "exist" : true,
      "predicate" : {
        "uri" : "https://semantic-web.com/api/predicate#26637"
      },
      "rules" : [ null, null ]
    } ],
    "additionalProperties" : [ {
      "uri" : "https://semantic-web.com/api/additionalProperties#5405"
    } ],
    "relationFilters" : [ {
      "exist" : true,
      "predicate" : {
        "uri" : "https://semantic-web.com/api/predicate#13058"
      },
      "relationRules" : [ null, null ],
      "lang" : "some lang"
    }, {
      "exist" : true,
      "predicate" : {
        "uri" : "https://semantic-web.com/api/predicate#30474"
      },
      "relationRules" : [ null, null ],
      "lang" : "some lang"
    }, {
      "exist" : false,
      "predicate" : {
        "uri" : "https://semantic-web.com/api/predicate#16907"
      },
      "relationRules" : [ null, null ],
      "lang" : "some lang"
    } ],
    "sortRequest" : [ {
      "property" : {
        "uri" : "https://semantic-web.com/api/property#30196"
      },
      "order" : "DESC"
    } ],
    "noClass" : true
  },
  "resources" : [ {
    "resource" : "https://semantic-web.com/api/resource#16137",
    "context" : "some context",
    "blankNode" : false
  }, {
    "resource" : "https://semantic-web.com/api/resource#30651",
    "context" : "some context",
    "blankNode" : true
  } ]
}

Response

Content-Type

text/plain

Status: 200- OK