FromFunctional

Trait FromFunctional 

Source
pub trait FromFunctional: Sized + FromPair {
    // Required method
    fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>;

    // Provided method
    fn from_ofn(s: &str) -> Result<Self> { ... }
}
Expand description

A trait for OWL elements that can be deserialized from OWL Functional syntax.

The deserialization will fail if the entirety of the input string cannot be deserialized into the declared type.

Required Methods§

Source

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Provided Methods§

Source

fn from_ofn(s: &str) -> Result<Self>

Deserialize a string containing an OWL element in functional syntax.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FromFunctional for AnnotationValue

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl FromFunctional for Axiom

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl FromFunctional for ClassExpression

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl FromFunctional for DataRange

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl FromFunctional for Facet

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl FromFunctional for Individual

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl FromFunctional for Literal

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl FromFunctional for ObjectPropertyExpression

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl FromFunctional for SubObjectPropertyExpression

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl FromFunctional for u32

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl FromFunctional for BTreeSet<Annotation>

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl FromFunctional for String

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl FromFunctional for AnnotatedAxiom

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl FromFunctional for Annotation

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl FromFunctional for AnnotationProperty

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl FromFunctional for AnonymousIndividual

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl FromFunctional for Class

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl FromFunctional for DataProperty

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl FromFunctional for Datatype

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl FromFunctional for DeclareAnnotationProperty

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl FromFunctional for DeclareClass

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl FromFunctional for DeclareDataProperty

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl FromFunctional for DeclareDatatype

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl FromFunctional for DeclareNamedIndividual

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl FromFunctional for DeclareObjectProperty

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl FromFunctional for FacetRestriction

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl FromFunctional for IRI

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl FromFunctional for Import

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl FromFunctional for NamedIndividual

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl FromFunctional for ObjectProperty

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl FromFunctional for OntologyAnnotation

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl FromFunctional for SetOntology

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl FromFunctional for AxiomMappedOntology

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Source§

impl<O> FromFunctional for (O, PrefixMapping)

Source§

fn from_ofn_ctx(s: &str, context: &Context<'_>) -> Result<Self>

Implementors§