pub enum PatchOp {
Show 41 variants
CreateEntity {
entity_iri: String,
kind: PatchEntityKind,
},
DeleteEntity {
entity_iri: String,
},
SetLabel {
entity_iri: String,
value: String,
},
AddLabel {
entity_iri: String,
value: String,
},
RemoveLabel {
entity_iri: String,
value: String,
},
SetComment {
entity_iri: String,
value: String,
},
AddComment {
entity_iri: String,
value: String,
},
RemoveComment {
entity_iri: String,
value: String,
},
AddSubClassOf {
entity_iri: String,
parent_iri: String,
},
RemoveSubClassOf {
entity_iri: String,
parent_iri: String,
},
AddComplexSubClassOf {
entity_iri: String,
manchester: String,
},
RemoveComplexSubClassOf {
entity_iri: String,
manchester: String,
},
AddEquivalentClass {
entity_iri: String,
manchester: String,
},
RemoveEquivalentClass {
entity_iri: String,
manchester: String,
},
SetEquivalentClass {
entity_iri: String,
manchester: String,
},
SetDeprecated {
entity_iri: String,
value: bool,
},
AddDisjointClass {
entity_iri: String,
other_iri: String,
},
RemoveDisjointClass {
entity_iri: String,
other_iri: String,
},
AddImport {
ontology_iri: String,
import_iri: String,
},
RemoveImport {
ontology_iri: String,
import_iri: String,
},
AddDomain {
entity_iri: String,
class_iri: String,
},
RemoveDomain {
entity_iri: String,
class_iri: String,
},
AddRange {
entity_iri: String,
range_iri: String,
},
RemoveRange {
entity_iri: String,
range_iri: String,
},
SetFunctional {
entity_iri: String,
value: bool,
},
SetInverseFunctional {
entity_iri: String,
value: bool,
},
SetTransitive {
entity_iri: String,
value: bool,
},
SetSymmetric {
entity_iri: String,
value: bool,
},
SetAsymmetric {
entity_iri: String,
value: bool,
},
SetReflexive {
entity_iri: String,
value: bool,
},
SetIrreflexive {
entity_iri: String,
value: bool,
},
AddPropertyChain {
entity_iri: String,
properties: Vec<String>,
},
RemovePropertyChain {
entity_iri: String,
properties: Vec<String>,
},
AddClassAssertion {
entity_iri: String,
class_iri: String,
},
RemoveClassAssertion {
entity_iri: String,
class_iri: String,
},
AddObjectPropertyAssertion {
entity_iri: String,
property_iri: String,
target_iri: String,
},
RemoveObjectPropertyAssertion {
entity_iri: String,
property_iri: String,
target_iri: String,
},
AddDataPropertyAssertion {
entity_iri: String,
property_iri: String,
value: String,
},
RemoveDataPropertyAssertion {
entity_iri: String,
property_iri: String,
value: String,
},
AddAnnotation {
entity_iri: String,
predicate: String,
value: String,
},
RemoveAnnotation {
entity_iri: String,
predicate: String,
value: String,
},
}Expand description
A single authoring patch operation (v0.4 Turtle scope).
Variants§
CreateEntity
DeleteEntity
SetLabel
AddLabel
RemoveLabel
SetComment
AddComment
RemoveComment
AddSubClassOf
RemoveSubClassOf
AddComplexSubClassOf
RemoveComplexSubClassOf
AddEquivalentClass
RemoveEquivalentClass
SetEquivalentClass
SetDeprecated
AddDisjointClass
RemoveDisjointClass
AddImport
RemoveImport
AddDomain
RemoveDomain
AddRange
RemoveRange
SetFunctional
SetInverseFunctional
SetTransitive
SetSymmetric
SetAsymmetric
SetReflexive
SetIrreflexive
AddPropertyChain
RemovePropertyChain
AddClassAssertion
RemoveClassAssertion
AddObjectPropertyAssertion
RemoveObjectPropertyAssertion
AddDataPropertyAssertion
RemoveDataPropertyAssertion
AddAnnotation
RemoveAnnotation
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PatchOp
impl<'de> Deserialize<'de> for PatchOp
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 PatchOp
impl StructuralPartialEq for PatchOp
Auto Trait Implementations§
impl Freeze for PatchOp
impl RefUnwindSafe for PatchOp
impl Send for PatchOp
impl Sync for PatchOp
impl Unpin for PatchOp
impl UnsafeUnpin for PatchOp
impl UnwindSafe for PatchOp
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.