How can I select the classes that share the same object property in protege (OWL )? And the only query that's work this one
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX food:<http://www.semanticweb.org/shatha2012/ontologies/2015/11/untitled-ontology-9>
SELECT ?subject ?object WHERE { ?subject rdfs:subClassOf ?object }
I don't have individuals in my project.