Enum Class RDFTranslationMode
- All Implemented Interfaces:
Serializable, Comparable<RDFTranslationMode>, Constable
Translation mode for interpretation of RDF documents
A mode represent how an RDF triple (s, p, o) is translated into atoms
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe natural translation uses the predicate p of the triple as predicate of arity 2 and the 2 terms corresponding to s and o.The NaturalFull translation uses the predicate p of the triple as predicate of arity 2 and the 2 terms corresponding to s and o.The raw translation uses the predicate "triple" of arity 3 and the 3 terms corresponding to s, p and o. -
Method Summary
Modifier and TypeMethodDescriptionstatic RDFTranslationModeReturns the enum constant of this class with the specified name.static RDFTranslationMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Raw
The raw translation uses the predicate "triple" of arity 3 and the 3 terms corresponding to s, p and o. -
Natural
The natural translation uses the predicate p of the triple as predicate of arity 2 and the 2 terms corresponding to s and o. -
NaturalFull
The NaturalFull translation uses the predicate p of the triple as predicate of arity 2 and the 2 terms corresponding to s and o. In addition, if the predicate is rdf:type, then the object is used as the predicate of arity one instead with the 1 term corresponding to s.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-