Skip to main content

Web Service Method: Create a Directed Relation in a Custom Scheme

Abstract

Web Service Method: Create a Directed Relation in a Custom Scheme

Description

Creates a directed relation for an existing custom scheme.

URL: /PoolParty/api/schema/createDirectedRelation

Request

Supported Methods

POST

Content-Type

application/json

Request Body

Attribute

Type

Comment

addToCustomScheme

Array of IRI

Custom scheme URI(s)

comment

Literal

Description of the property

domain

Array of IRI

URI(s) of domain

label

Literal

Relation label. label:{ label:related, language: en }

range

Array of IRI

URI(s) of range

schemaUri

IRI

URI of ontology

subPropertyOf

Array of IRI

URI(s) of super-properties

uri

IRI

URI of relation

usageRestriction

UsageRestriction

Usage restriction for the attribute. Possible values are: MULTIPLE_USE(default), SINGLE_USE, SINGLE_PER_LANGUAGE(only for attributes) MULTIPLE_USE | SINGLE_USE | SINGLE_PER_LANGUAGE

Example
{
  "subPropertyOf" : [ {
    "uri" : "https://semantic-web.com/api/subPropertyOf#9910"
  } ],
  "addToCustomScheme" : [ {
    "uri" : "https://semantic-web.com/api/addToCustomScheme#13373"
  }, {
    "uri" : "https://semantic-web.com/api/addToCustomScheme#15263"
  } ],
  "domain" : [ {
    "uri" : "https://semantic-web.com/api/domain#3206"
  }, {
    "uri" : "https://semantic-web.com/api/domain#334"
  } ],
  "range" : [ {
    "uri" : "https://semantic-web.com/api/range#19507"
  } ],
  "comment" : {
    "language" : "en-us",
    "label" : "Label 20183"
  },
  "schemaUri" : {
    "uri" : "https://semantic-web.com/api/schemaUri#1464"
  },
  "label" : {
    "language" : "en-gb",
    "label" : "Label 27938"
  },
  "usageRestriction" : "MULTIPLE_USE",
  "uri" : {
    "uri" : "https://semantic-web.com/api/uri#29134"
  }
}
Returns

Content-Type: application/json

Status: 200 - OK