select * where { ?a rdfs:subClassOf ?a.
}
select * where { ?rel p2:hasSubclass ?a; p2:hasSuperclass ?a. }