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

editorThe editor's URI.

IRI

JSON representation of an IRI object.

true

Example IRI

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

Request Attributes

AttributeTypeComment
predicateStringURI of the property
resourcesArray of ResourceInfoRequestList of resources to perform bulk operatio(s) on
searchRequestJsonSearchRequestSearch request, if bulk operation is to be applied on specifc search result

JsonSearchRequest

AttributeType
additionalPropertiesArray of IRI
attributeFiltersArray of JsonAttributeFilter
customClassesArray of JsonClassFilter
limitint
noClassboolean
offsetint
relationFiltersArray of JsonRelationFilter
sortRequestArray 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