<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:site="https://mbsky.com/vocab/" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:dc="http://purl.org/dc/elements/1.1/" xml:base="https://mbsky.com/learning/">
<owl:Class rdf:about="#Course"/><owl:Class rdf:about="#FrontendCourse"><rdfs:subClassOf rdf:resource="#Course"/></owl:Class><owl:Class rdf:about="#WebCourse"><owl:equivalentClass rdf:resource="#FrontendCourse"/></owl:Class><rdf:Description rdf:about="html"><rdf:type rdf:resource="#FrontendCourse"/></rdf:Description><owl:ObjectProperty rdf:about="https://mbsky.com/vocab/teaches"><owl:inverseOf rdf:resource="https://mbsky.com/vocab/learnedFrom"/></owl:ObjectProperty><rdf:Description rdf:about="team"><site:teaches rdf:resource="html"/></rdf:Description>
</rdf:RDF>
本例需在 Python3.12;RDFLib7.1.4;owlrl7.1.4;本地固定字节 中运行,请复制源码、保存文件或下载工程包后在本地执行验证。
运行说明与环境独立工程
运行环境:Python3.12;RDFLib7.1.4;owlrl7.1.4;本地固定字节
入口文件:projects/rdf-lab/ontology.rdf
预期结果与验证条件观察提示
- 实际推导Course、WebCourse类型及learnedFrom逆向关系
请结合实际环境逐项观察。
附件与关联工程包下载
课程关联工程包(登记关联10章) · 含当前章节或实例 · mbskycom202611a442.zip