Available Attribute Types
Available Attribute Types
This section contains an overview of attribute types available while creating custom attributes for a custom ontology.
The following table gives an overview of available attribute types and the respective data types.
Attribute Type | Description | Data Type | Example |
---|---|---|---|
URI | A valid URI. |
| |
Literal | A string that based on the defined restrictions can be with or without a language tag. | "example1234" | |
Long | May only contain digits or scientific notation and must be between |
| 4,321.768 / 4.321768×103 |
Integer | May only contain digits and must be between | 12345 | |
Float | May only contain digits and a dash ( |
| 2345.877 |
Date | A date selector helps with the input for this field. |
| 30.09.2015 |
Date/Time | A date and time selector helps with the input for this field. |
| 20.07.2017 - 11:15 |
Boolean | A boolean selector lets the user select true or false. Note: a boolean attribute is always also a |
| true |
Literal | The literal attribute has more configuration options and can have several characteristics based on those. | ||
No Language Options | Literal without a language tag. |
| "example1234" |
No Restriction | Literal with or without a language tag. |
| "example1234" or "example1234"@en |
Unique Per Language (No Restriction) | Literal with or without a language tag that can only be used once per language. |
| "example1234" or "example1234"@en |
Note
A literal with the unique per language attribute is always also a swc:FunctionalLanguageProperty
as it can only be assigned to a resource once.
Requires Language | Literal with a language tag. |
| "example1234"@en |
Unique Per Language (Requires Language) | Literal with a language tag that can only be used once per language. |
| "example1234"@en |
Note
A literal with the 'unique per language' attribute is always also a swc:FunctionalLanguageProperty
as it can only be assigned to a resource once.