我有一个本体:https ://raw.githubusercontent.com/amiraelsayed/lumiere/master/lumiere3.owl
我想获得名为 CS-Java 的特定课程的所有课程
我尝试使用 owlready 搜索方法并使用课程名称和对象属性添加过滤,但总是给出 0,而它应该检索大约 19 个项目
这是我的个人
<owl:NamedIndividual rdf:about="http://www.smacrs.com/lumiere.owl#CS-Java">
<rdf:type rdf:resource="http://www.smacrs.com/lumiere.owl#Course"/>
<contains rdf:resource="http://www.smacrs.com/lumiere.owl#Arrays"/>
<contains rdf:resource="http://www.smacrs.com/lumiere.owl#Do_..._While"/>
<contains rdf:resource="http://www.smacrs.com/lumiere.owl#Final"/>
<contains rdf:resource="http://www.smacrs.com/lumiere.owl#For_Loops"/>
<contains rdf:resource="http://www.smacrs.com/lumiere.owl#Getting_User_Input"/>
<contains rdf:resource="http://www.smacrs.com/lumiere.owl#Hello_World_Program"/>
<contains rdf:resource="http://www.smacrs.com/lumiere.owl#If_conditions"/>
<contains rdf:resource="http://www.smacrs.com/lumiere.owl#Introduction_and_Installation"/>
<contains rdf:resource="http://www.smacrs.com/lumiere.owl#Method_Parameters"/>
<contains rdf:resource="http://www.smacrs.com/lumiere.owl#Methods"/>
<contains rdf:resource="http://www.smacrs.com/lumiere.owl#Multi-Dimensional_Arrays"/>
<contains rdf:resource="http://www.smacrs.com/lumiere.owl#Static"/>
<contains rdf:resource="http://www.smacrs.com/lumiere.owl#String_Builder_and_String_Formatting"/>
<contains rdf:resource="http://www.smacrs.com/lumiere.owl#Switch"/>
<contains rdf:resource="http://www.smacrs.com/lumiere.owl#Using_Variables"/>
<contains rdf:resource="http://www.smacrs.com/lumiere.owl#What_Java_Is_and_How_It_Works"/>
<contains rdf:resource="http://www.smacrs.com/lumiere.owl#While_Loops"/>
<contains rdf:resource="http://www.smacrs.com/lumiere.owl#Strings:_Working_With_Text"/>
<Code rdf:datatype="http://www.w3.org/2001/XMLSchema#string">CS102</Code>
<Description rdf:datatype="http://www.w3.org/2000/01/rdf-schema#Literal">This course of study builds on the skills gained by students in Java Fundamentals or Java Foundations to help advance Java programming skills. Students will design object-oriented applications with Java and will create Java programs using hands-on, engaging activities.</Description>
<Name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Introduction to Java Programming Language</Name>
</owl:NamedIndividual>
这是课程,它包含课程个人列表
onto.search(part_of="*")
它带来了所有课程中的所有课程,当我使用onto.search(part_of="CS-Java")
它时返回 0 而我需要它只返回本课程中的课程