how to get individual(s) for given class/individual with given object property using SPARQL

Posted by udayalkonline on Stack Overflow See other posts from Stack Overflow or by udayalkonline
Published on 2010-06-17T11:00:15Z Indexed on 2010/06/17 11:03 UTC
Read the original article Hit count: 281

Filed under:

hi, I have simple ontology called "campus.owl".There is a class called"Lecturer" and which has two sub classes ,RegularLecturer and VisitingLecturer.There is a another class called "Student" which is a sibling class of Lecturer class. I have created individuals for all the classes.

Student class is joind with Lecture class with "has" object property.

problem

I want to get some Lecturer/VisitingLecturer individuals for given student individual. Could you please help me to get this result! Thanks in advance!

PREFIX rdfs: http://www.w3.org/2000/01/rdf-schema# PREFIX rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# PREFIX my: http://www.semanticweb.org/ontologies/2010/5/Ontology1275975684120.owl#

SELECT ?lec WHERE { ?lec..........??? }

any idea..??

Thank in advance!

© Stack Overflow or respective owner

Related posts about sparql