pub enum PatchOp {
Show 81 variants
AddPrefix {
prefix: String,
namespace_iri: String,
},
RemovePrefix {
prefix: String,
},
SetPrefix {
prefix: String,
namespace_iri: String,
},
SetOntologyIri {
ontology_iri: String,
},
SetVersionIri {
ontology_iri: String,
version_iri: String,
},
AddOntologyAnnotation {
ontology_iri: String,
predicate: String,
value: String,
},
RemoveOntologyAnnotation {
ontology_iri: String,
predicate: String,
value: String,
},
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,
},
AddHasKey {
class_iri: String,
properties: Vec<String>,
},
RemoveHasKey {
class_iri: String,
properties: Vec<String>,
},
AddDisjointUnion {
class_iri: String,
members: Vec<String>,
},
RemoveDisjointUnion {
class_iri: String,
members: Vec<String>,
},
AddInverseObjectProperties {
property_iri: String,
inverse_iri: String,
},
RemoveInverseObjectProperties {
property_iri: String,
inverse_iri: String,
},
AddEquivalentObjectProperties {
properties: Vec<String>,
},
RemoveEquivalentObjectProperties {
properties: Vec<String>,
},
AddDisjointObjectProperties {
properties: Vec<String>,
},
RemoveDisjointObjectProperties {
properties: Vec<String>,
},
AddEquivalentDataProperties {
properties: Vec<String>,
},
RemoveEquivalentDataProperties {
properties: Vec<String>,
},
AddDisjointDataProperties {
properties: Vec<String>,
},
RemoveDisjointDataProperties {
properties: Vec<String>,
},
AddSubObjectPropertyOf {
property_iri: String,
parent_iri: String,
},
RemoveSubObjectPropertyOf {
property_iri: String,
parent_iri: String,
},
AddSubDataPropertyOf {
property_iri: String,
parent_iri: String,
},
RemoveSubDataPropertyOf {
property_iri: String,
parent_iri: String,
},
AddNegativeObjectPropertyAssertion {
entity_iri: String,
property_iri: String,
target_iri: String,
},
RemoveNegativeObjectPropertyAssertion {
entity_iri: String,
property_iri: String,
target_iri: String,
},
AddNegativeDataPropertyAssertion {
entity_iri: String,
property_iri: String,
value: String,
},
RemoveNegativeDataPropertyAssertion {
entity_iri: String,
property_iri: String,
value: String,
},
AddSameIndividual {
individuals: Vec<String>,
},
RemoveSameIndividual {
individuals: Vec<String>,
},
AddDifferentIndividuals {
individuals: Vec<String>,
},
RemoveDifferentIndividuals {
individuals: Vec<String>,
},
AddDatatypeDefinition {
datatype_iri: String,
manchester: String,
},
RemoveDatatypeDefinition {
datatype_iri: String,
manchester: String,
},
AddAxiomAnnotation {
axiom_op: String,
subject_iri: String,
related_iri: Option<String>,
predicate: String,
value: String,
},
RemoveAxiomAnnotation {
axiom_op: String,
subject_iri: String,
related_iri: Option<String>,
predicate: String,
value: String,
},
AddSwrlRule {
ontology_iri: String,
rule_json: String,
},
RemoveSwrlRule {
ontology_iri: String,
rule_json: String,
},
ReplaceSwrlRule {
ontology_iri: String,
old_rule_json: String,
new_rule_json: String,
},
}Expand description
A single authoring patch operation (v0.4 Turtle scope).
Variants§
AddPrefix
RemovePrefix
SetPrefix
SetOntologyIri
SetVersionIri
AddOntologyAnnotation
RemoveOntologyAnnotation
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
AddHasKey
RemoveHasKey
AddDisjointUnion
RemoveDisjointUnion
AddInverseObjectProperties
RemoveInverseObjectProperties
AddEquivalentObjectProperties
RemoveEquivalentObjectProperties
AddDisjointObjectProperties
RemoveDisjointObjectProperties
AddEquivalentDataProperties
RemoveEquivalentDataProperties
AddDisjointDataProperties
RemoveDisjointDataProperties
AddSubObjectPropertyOf
RemoveSubObjectPropertyOf
AddSubDataPropertyOf
RemoveSubDataPropertyOf
AddNegativeObjectPropertyAssertion
RemoveNegativeObjectPropertyAssertion
AddNegativeDataPropertyAssertion
RemoveNegativeDataPropertyAssertion
AddSameIndividual
RemoveSameIndividual
AddDifferentIndividuals
RemoveDifferentIndividuals
AddDatatypeDefinition
RemoveDatatypeDefinition
AddAxiomAnnotation
RemoveAxiomAnnotation
AddSwrlRule
SWRL rule authoring (v0.23) — stores rule as JSON via strixonomy:swrlRule.
RemoveSwrlRule
ReplaceSwrlRule
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.