pub struct Entity { /* private fields */ }Expand description
An OWL entity declaration target.
Implementations§
Source§impl Entity
impl Entity
Sourcepub fn new(kind: EntityKind, iri: Iri<String>) -> Self
pub fn new(kind: EntityKind, iri: Iri<String>) -> Self
Create an entity with a concrete kind and IRI.
Sourcepub fn object_property(iri: Iri<String>) -> Self
pub fn object_property(iri: Iri<String>) -> Self
Create an OWL object property entity.
Sourcepub fn data_property(iri: Iri<String>) -> Self
pub fn data_property(iri: Iri<String>) -> Self
Create an OWL data property entity.
Sourcepub fn annotation_property(iri: Iri<String>) -> Self
pub fn annotation_property(iri: Iri<String>) -> Self
Create an OWL annotation property entity.
Sourcepub fn named_individual(iri: Iri<String>) -> Self
pub fn named_individual(iri: Iri<String>) -> Self
Create an OWL named individual entity.
Sourcepub fn kind(&self) -> EntityKind
pub fn kind(&self) -> EntityKind
Return the entity kind.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Entity
impl<'de> Deserialize<'de> for Entity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Entity
impl StructuralPartialEq for Entity
Auto Trait Implementations§
impl Freeze for Entity
impl RefUnwindSafe for Entity
impl Send for Entity
impl Sync for Entity
impl Unpin for Entity
impl UnsafeUnpin for Entity
impl UnwindSafe for Entity
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