Skip to main content

Available Attribute Types

Abstract

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.

rdfs:Resource

http://www.example.com

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 -9223372036854775808 and +9223372036854775807

xsd:long

4,321.768 / 4.321768×103

Integer

May only contain digits and must be between -2147483648 and +2147483647.

12345

Float

May only contain digits and a dash (-). A dot (.) is required.

xsd:float

2345.877

Date

A date selector helps with the input for this field.

xsd:date

30.09.2015

Date/Time

A date and time selector helps with the input for this field.

xsd:dateTime

20.07.2017 - 11:15

Boolean

A boolean selector lets the user select true or false.

Note: a boolean attribute is always also a owl:FunctionalProperty as it can be only assigned once to a resource.

xsd:boolean

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.

xsd:string

"example1234"

No-Language-Options.png

No Restriction

Literal with or without a language tag.

rdfs:Literal

"example1234" or "example1234"@en

No-Restriction.png

Unique Per Language (No Restriction)

Literal with or without a language tag that can only be used once per language.

rdfs:Literal

"example1234" or "example1234"@en

Unique-Per-Language-_No-Restriction_.png

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.

rdf:langString

"example1234"@en

Requires-Language.png

Unique Per Language (Requires Language)

Literal with a language tag that can only be used once per language.

rdf:langString

"example1234"@en

Unique-Per-Language-_Requires-Language_.png

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.