public static bool IsEnumerationDatatype(this OntologyClass oClass) { INode oneOf = oClass.Graph.CreateUriNode(VocabularyHelper.OWL.oneOf); if (oClass.IsDatatype()) { if (oClass.EquivalentClasses.Count() == 1) { return(oClass.EquivalentClasses.Single().GetNodesViaPredicate(oneOf).Count() == 1); } else { return(oClass.GetNodesViaPredicate(oneOf).Count() == 1); } } return(false); }