Struct rdf_store_rs::class::Class
source · 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 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.