How to get object properties of specific class in SPARQL

Posted by udayalkonline on Stack Overflow See other posts from Stack Overflow or by udayalkonline
Published on 2010-06-14T11:01:14Z Indexed on 2010/06/14 11:02 UTC
Read the original article Hit count: 342

Filed under:

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!

© Stack Overflow or respective owner

Related posts about sparql