public void RemoveInverse() { if (modifier != Modifier.INV) { return; } Ontology onto = Property.Concept.Ontology; Concept PropCon = onto[Property.Name]; Property p = PropCon.Properties[":INVERSE"]; if (p == null) { modifier = Modifier.SEM; return; } string InvProp = p.Fillers[0].ConceptFiller.Name; Property FinProp = ConceptFiller.Properties[":" + InvProp]; if (FinProp == null) { modifier = Modifier.SEM; return; } foreach (Filler fil in FinProp.Fillers) { if (fil.ConceptFiller == Property.Concept) { modifier = fil.modifier; return; } } modifier = Modifier.SEM; }
public Concept(Ontology ontology, string name) { this.Ontology = ontology; this.name = name; properties = new PropertiesDictionary(); isFull = false; }