Annotation Interface OWLDataProperty
Marks an attribute mapped to an OWL datatype property.
This means that literal values are expected for such attributes.
Note that for use with RDF(S), attributes annotated with this annotation are expected to reference literals.
-
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 data property- Returns:
- IRI of the data 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, unless
datatype()
is explicitly specified.- Default:
- false
-
simpleLiteral
boolean simpleLiteral(Optional) Whether the value should be stored as a simple literal, i.e.xsd:string
.- 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:
- ""
-