public static bool IsXsdDatatype(this OntologyClass oClass) { if (oClass.IsNamed()) { return(oClass.GetIri().ToString().StartsWith(XmlSpecsHelper.NamespaceXmlSchema, StringComparison.Ordinal)); } return(false); }
public static bool IsOwlThing(this OntologyClass cls) { Uri owlThing = new Uri("http://www.w3.org/2002/07/owl#Thing"); return(cls.IsNamed() && cls.GetIri().Equals(owlThing)); }