如何使用 SPARQL 获取具有给定对象属性的给定类/个体的个体
我有一个名为“campus.owl”的简单本体。有一个名为“Lecturer”的类,它有两个子类,RegularLecturer 和 VisitingLecturer。还有一个名为“Student”的类,它是 Lecturer 类的兄弟类。 我为所有班级创建了个人。
学生类与讲座类通过“has”对象属性连接在一起。
问题
我想为给定的学生个体找到一些讲师/客座讲师。你能帮我得到这个结果吗?提前致谢!
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..........??? }
任何想法..??
预先感谢!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
比如:
应该这样做。
Something like:
Should do it.