public static List <UriNode> GetObjectProperties(this OntologyResource resource, string propertyName) { return(resource.GetProperties(propertyName).Cast <UriNode>().ToList()); }