Web Service Method: Create an Attribute in a Custom Scheme
Web Service Method: Create an Attribute in a Custom Scheme
Description |
---|
Create an attribute in a custom scheme. |
URL: /PoolParty/api/schema/createAttribute
Content-Type
application/json
Supported Methods |
---|
POST |
JSON Request Object
CreateAttributePropertyInput
Type: CreateAttributePropertyInput
Create Attribute
Attribute | Type | Comment |
---|---|---|
addToCustomScheme | Array of IRIs | Custom scheme URI(s) |
comment | Literal | Description of the property |
domain | Array of IRIs | URI(s) of domain |
label | Literal | Relation label. label:{ label:related, language: en } |
schemaUri | IRI | URI of ontology |
singlePerLanguage | boolean | Restrict language literals to one per language. |
subPropertyOf | Array of IRIs | 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 |
valueRestriction | ValueRestriction | Value restriction of attribute. BOOLEAN, DATE, LITERAL, INTEGER, URI, FLOAT |
Returns
Content-Type: application/json
Status: 200 - OK