Enum sophia_term::TermError [−][src]
pub enum TermError {
InvalidDatatype(String),
InvalidIri(String),
IsSuffixed,
InvalidLanguageTag {
tag: String,
err: String,
},
InvalidLexicalValue {
lex: String,
dt: String,
source: Box<dyn Error>,
},
InvalidVariableName(String),
InvalidBlankNodeId(String),
UnsupportedKind(String),
UnsupportedDatatype(String),
}
Expand description
This error is raised when the creation of a term fails.
Variants
InvalidDatatype(String)
Tuple Fields
0: String
Datatypes must be IRIs.
InvalidIri(String)
Tuple Fields
0: String
The IRI of a term must apply to RFC 3987.
IsSuffixed
An IRI must be represented by one TermData
to be able to convert it
to a Namespace
.
InvalidLanguageTag
The language tags of literals must apply to BCP47.
InvalidLexicalValue
The lexical value of a literal can not be interpreted according to its datatype
InvalidVariableName(String)
Tuple Fields
0: String
Names of variables must apply to SPARQL’s production rules.
InvalidBlankNodeId(String)
Tuple Fields
0: String
Names of variables must apply to N3’s production rules.
UnsupportedKind(String)
Tuple Fields
0: String
Raised when failing to convert a term into another type
UnsupportedDatatype(String)
Tuple Fields
0: String
Raised when failing to convert a literal into a native type
Trait Implementations
Performs the conversion.