LangString

Struct LangString 

Source
pub struct LangString<'g, G>
where G: Graph<'g> + 'g,
{ /* private fields */ }
Expand description

rdf:langString The datatype of language-tagged string values

Implementations§

Source§

impl<'g, G> LangString<'g, G>
where G: Graph<'g>,

Source

pub fn class_iri() -> &'static str

http://www.w3.org/1999/02/22-rdf-syntax-ns#langString

Trait Implementations§

Source§

impl<'g, G> Clone for LangString<'g, G>
where G: Graph<'g>,

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'g, G> Comment<'g> for LangString<'g, G>
where G: Graph<'g> + 'g,

Source§

fn property_iri() -> &'static str

http://www.w3.org/2000/01/rdf-schema#comment
Source§

fn comment<G>(&self) -> ObjectIter<'g, Literal<'g, G>>
where Literal<'g, G>: ResourceBase<'g, Graph = Self::Graph>, G: Graph<'g>, Self: 'g,

rdfs:comment A description of the subject resource. http://www.w3.org/2000/01/rdf-schema#comment
Source§

impl<'g, G> IsDefinedBy<'g> for LangString<'g, G>
where G: Graph<'g> + 'g,

Source§

fn property_iri() -> &'static str

http://www.w3.org/2000/01/rdf-schema#isDefinedBy
Source§

fn is_defined_by<G>(&self) -> ObjectIter<'g, Resource<'g, G>>
where Resource<'g, G>: ResourceBase<'g, Graph = Self::Graph>, G: Graph<'g>, Self: 'g,

rdfs:isDefinedBy The defininition of the subject resource. http://www.w3.org/2000/01/rdf-schema#isDefinedBy
Source§

impl<'g, G> Label<'g> for LangString<'g, G>
where G: Graph<'g> + 'g,

Source§

fn property_iri() -> &'static str

http://www.w3.org/2000/01/rdf-schema#label
Source§

fn label<G>(&self) -> ObjectIter<'g, Literal<'g, G>>
where Literal<'g, G>: ResourceBase<'g, Graph = Self::Graph>, G: Graph<'g>, Self: 'g,

rdfs:label A human-readable name for the subject. http://www.w3.org/2000/01/rdf-schema#label
Source§

impl<'g, G> Member<'g> for LangString<'g, G>
where G: Graph<'g> + 'g,

Source§

fn property_iri() -> &'static str

http://www.w3.org/2000/01/rdf-schema#member
Source§

fn member<G>(&self) -> ObjectIter<'g, Resource<'g, G>>
where Resource<'g, G>: ResourceBase<'g, Graph = Self::Graph>, G: Graph<'g>, Self: 'g,

rdfs:member A member of the subject resource. http://www.w3.org/2000/01/rdf-schema#member
Source§

impl<'g, G> Ord for LangString<'g, G>
where G: Graph<'g>,

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl<'g, G> PartialEq for LangString<'g, G>
where G: Graph<'g>,

Source§

fn eq(&self, rhs: &LangString<'g, G>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'g, G> PartialOrd for LangString<'g, G>
where G: Graph<'g>,

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<'g, G> ResourceBase<'g> for LangString<'g, G>
where G: Graph<'g> + 'g,

Source§

type Graph = G

Type of the graph that on which this resource is mapped.
Source§

fn new( resource: Resource<'g, <<Self as ResourceBase<'g>>::Graph as Graph<'g>>::BlankNodePtr, <<Self as ResourceBase<'g>>::Graph as Graph<'g>>::IRIPtr, <<Self as ResourceBase<'g>>::Graph as Graph<'g>>::LiteralPtr>, adapter: &'g OntologyAdapter<'g, Self::Graph>, ) -> Self

Wrap a Resource with an ontology class. And link a ResourceBase
Source§

fn iter(adapter: &'g OntologyAdapter<'g, Self::Graph>) -> SubjectIter<'g, Self>

Iterate over all instances of this class
Source§

fn this( &self, ) -> &Resource<'g, <<Self as ResourceBase<'g>>::Graph as Graph<'g>>::BlankNodePtr, <<Self as ResourceBase<'g>>::Graph as Graph<'g>>::IRIPtr, <<Self as ResourceBase<'g>>::Graph as Graph<'g>>::LiteralPtr>

The Resource that underlies this wrapper.
Source§

fn adapter(&self) -> &'g OntologyAdapter<'g, Self::Graph>

The adapter that wraps the graph.
Source§

fn iter_objects<O>( &self, predicate: Option<&<<Self as ResourceBase<'g>>::Graph as Graph<'g>>::IRIPtr>, ) -> ObjectIter<'g, O>
where O: ResourceBase<'g, Graph = Self::Graph>, Self: 'g,

iterate over all the objects for this subject and the given predicate
Source§

fn iri(&self) -> Option<IRI<'g, Self>>

Return this resource as an IRI, if it is an IRI.
Source§

impl<'g, G> SeeAlso<'g> for LangString<'g, G>
where G: Graph<'g> + 'g,

Source§

fn property_iri() -> &'static str

http://www.w3.org/2000/01/rdf-schema#seeAlso
Source§

fn see_also<G>(&self) -> ObjectIter<'g, Resource<'g, G>>
where Resource<'g, G>: ResourceBase<'g, Graph = Self::Graph>, G: Graph<'g>, Self: 'g,

rdfs:seeAlso Further information about the subject resource. http://www.w3.org/2000/01/rdf-schema#seeAlso
Source§

impl<'g, G> Type<'g> for LangString<'g, G>
where G: Graph<'g> + 'g,

Source§

fn property_iri() -> &'static str

http://www.w3.org/1999/02/22-rdf-syntax-ns#type
Source§

fn a<G>(&self) -> ObjectIter<'g, Class<'g, G>>
where Class<'g, G>: ResourceBase<'g, Graph = Self::Graph>, G: Graph<'g>, Self: 'g,

rdf:type The subject is an instance of a class. http://www.w3.org/1999/02/22-rdf-syntax-ns#type
Source§

impl<'g, G> Value<'g> for LangString<'g, G>
where G: Graph<'g> + 'g,

Source§

fn property_iri() -> &'static str

http://www.w3.org/1999/02/22-rdf-syntax-ns#value
Source§

fn value<G>(&self) -> ObjectIter<'g, Resource<'g, G>>
where Resource<'g, G>: ResourceBase<'g, Graph = Self::Graph>, G: Graph<'g>, Self: 'g,

rdf:value Idiomatic property used for structured values. http://www.w3.org/1999/02/22-rdf-syntax-ns#value
Source§

impl<'g, G> Eq for LangString<'g, G>
where G: Graph<'g>,

Auto Trait Implementations§

§

impl<'g, G> Freeze for LangString<'g, G>
where <G as Graph<'g>>::BlankNodePtr: Freeze, <G as Graph<'g>>::IRIPtr: Freeze, <G as Graph<'g>>::LiteralPtr: Freeze,

§

impl<'g, G> RefUnwindSafe for LangString<'g, G>

§

impl<'g, G> Send for LangString<'g, G>
where <G as Graph<'g>>::BlankNodePtr: Send, <G as Graph<'g>>::IRIPtr: Send + Sync, <G as Graph<'g>>::LiteralPtr: Send, G: Sync,

§

impl<'g, G> Sync for LangString<'g, G>
where <G as Graph<'g>>::BlankNodePtr: Sync, <G as Graph<'g>>::IRIPtr: Sync, <G as Graph<'g>>::LiteralPtr: Sync, G: Sync,

§

impl<'g, G> Unpin for LangString<'g, G>
where <G as Graph<'g>>::BlankNodePtr: Unpin, <G as Graph<'g>>::IRIPtr: Unpin, <G as Graph<'g>>::LiteralPtr: Unpin,

§

impl<'g, G> UnwindSafe for LangString<'g, G>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.