I am using protege for creating an ontology, actually I downloaded an existence ontology and add some subclasses and individuals in it. now I try to set a prefix for that in this shape:

PREFIX food:

it is the original ontology not that I changed so it didnt work. how can I set PREFIX from my local computer? is it possible or I should upload it somewhere?

second I want to query in protege using SPARQL tab in it, I want to 1) get individuals of a class 2) get direct class of an individual. I mean his first parent not in hierarchy. I try it with rdf:type it dident work(maybe bcz of false PREFIX!) any idea for getting individual and class of another individual? thanks in advance

More Saba Ghashghaee's questions See All
Similar questions and discussions