Annotation Interface OWLAnnotationProperty
This means that the attribute can contain a literal or a reference to another object.
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionIRI of the datatype to use when storing values of this property.(Optional) Whether the association should be lazily loaded or must be eagerly fetched.boolean
(Optional) Marks an attribute whose value is a lexical form of a literal value.boolean
(Optional) Whether the value should be stored as a simple literal, i.e.
-
Element Details
-
iri
String iriIRI of the annotation property- Returns:
- IRI of the annotation property
-
-
-
fetch
FetchType fetch(Optional) Whether the association should be lazily loaded or must be eagerly fetched.- Returns:
- Fetch type of this property
- Default:
- EAGER
-
lexicalForm
boolean lexicalForm(Optional) Marks an attribute whose value is a lexical form of a literal value.This parameter should be used on
String
attributes, as literal lexical form is always a string. Lexical form of a literal of any datatype can be loaded. Saving the lexical form is forbidden to prevent unintentional change of the data type, unlessdatatype()
is explicitly specified.Note that if the value being loaded is an identifier, it will still be loaded, because it is not a literal and
String
is a valid identifier mapping type.- Default:
- false
-
simpleLiteral
boolean simpleLiteral(Optional) Whether the value should be stored as a simple literal, i.e.xsd:string
.Note that if the value being loaded is an identifier, it will still be loaded, because it is not a literal and
String
is a valid identifier mapping type. However, updates will replace the original with axsd:string
value.- Returns:
- Whether the mapped value is a simple literal
- Default:
- false
-
datatype
String datatypeIRI of the datatype to use when storing values of this property.If specified, the value of the attribute is treated as the lexical form of the literal (and should be a
String
).- Returns:
- Datatype IRI
- Default:
- ""
-