Can we provide index to classes like Class 1 --1, Class 2--2, and then creating a file which will have set of all instances belongs to which class.
Actually I wanted to retrieve two files from my ontology. lets say one is ontology list and other is ontology id. Ontology id contains sets of instances in the form of indexes. If instance 1 belongs to class 1and instance 2 is also belongs to class1 1 them ontology id contains 1,1
ontology_list2 is all concepts and subconcepts in the ontology, such as "Symptom" (Concept) or name of symptom (sub-concept) in Figure 2
and ontology_idx is the concept that a word/term in ontology_list2 belongs to. This one depends on how you define your ontology's concept. For example, if I define "Symptom" is concept 1, so all words/ terms belong to "Symptom" equals 1 in the ontology_idx.
Example are attached
Actually I am new to ontology and SPARQL. If you can provide me link then that will be helpful