How to get object properties of specific class in SPARQL
- by udayalkonline
hi,
I have some ontology(campus.owl).There are tree classes(Student,Sport,Lecturer).Student class is joined with Lecturer class using "has" object property and Student class joined with Sport class with "isPlay" object property.
problem
I want to get the object property between Student and Lecturer using some SPARQL query.
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 ?prop
WHERE {
?prop ..........???
}
Any Idea..??
Thank in advance!