pub struct Class {
pub namespace: Namespace,
pub local_name: String,
}
Expand description
The Class
struct represents an RDFS or OWL class identifier
consisting of a Namespace
(i.e. a namespace) and a “local name”.
Fields§
§namespace: Namespace
§local_name: String
Implementations§
Source§impl Class
impl Class
pub fn declare(namespace: Namespace, local_name: &str) -> Self
pub fn as_iri(&self) -> Result<IriBuf, RDFStoreError>
pub fn display_turtle<'a>(&'a self) -> impl Display + 'a
pub fn plural_label(&self) -> String
pub fn is_literal(&self, literal: &Literal) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Class
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnwindSafe for Class
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.