0% found this document useful (0 votes)
44 views12 pages

Mô Hình Graph:: !DOCTYPE RDF:RDF (

The document defines an ontology for a graph model using XML/RDF code. It defines classes like Person, Student, Lecturer and properties to describe the relationships between them like teaches, studies, and writes. Entities in the ontology include students, lecturers, courses, classrooms, and textbooks with properties specifying things like names, ages, and relationships between entities.

Uploaded by

Kudo Shinichi
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views12 pages

Mô Hình Graph:: !DOCTYPE RDF:RDF (

The document defines an ontology for a graph model using XML/RDF code. It defines classes like Person, Student, Lecturer and properties to describe the relationships between them like teaches, studies, and writes. Entities in the ontology include students, lecturers, courses, classrooms, and textbooks with properties specifying things like names, ages, and relationships between entities.

Uploaded by

Kudo Shinichi
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 12

M hnh Graph:

XML/RDF Code: <?xml version="1.0"?> <!DOCTYPE rdf:RDF [ <!ENTITY owl "http://www.w3.org/2002/07/owl#" > <!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" > <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >

<!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" > ]> <rdf:RDF xmlns="http://www.owl-ontologies.com/Ontology1366363588.owl#" xml:base="http://www.owl-ontologies.com/Ontology1366363588.owl" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:owl="http://www.w3.org/2002/07/owl#"> <owl:Ontology rdf:about=""/> <Diem rdf:ID="Diem_42"> <diem rdf:datatype="&xsd;float">7.0</diem> <diemthuoc rdf:resource="#Monhoc_51"/> <diemcua rdf:resource="#Sinhvien_44"/> <diemcua rdf:resource="#Sinhvien_45"/> </Diem> <Diem rdf:ID="Diem_65"> <diem rdf:datatype="&xsd;float">9.0</diem> <diemthuoc rdf:resource="#Monhoc_51"/> <diemcua rdf:resource="#NGoc"/> <diemcua rdf:resource="#Sinhvien_47"/> </Diem> <Tailieu rdf:ID="Tailieu_60"> <ten_tailieu rdf:datatype="&xsd;string">Chat luong pm</ten_tailieu> <namxuatban rdf:datatype="&xsd;int">2010</namxuatban> <tailieuthuoc rdf:resource="#Monhoc_48"/>

<duocdungboi rdf:resource="#Giangvien_54"/> <cuatacgia rdf:resource="#Tacgia_61"/> <cuatacgia rdf:resource="#Nguye"/> </Tailieu> <Monhoc rdf:ID="Monhoc_48"> <ten_monhoc rdf:datatype="&xsd;string">CLPM</ten_monhoc> <sotrinh_monhoc rdf:datatype="&xsd;int">3</sotrinh_monhoc> <cogiangvien rdf:resource="#Giangvien_54"/> </Monhoc> <owl:ObjectProperty rdf:ID="cogiangvien"> <rdfs:domain rdf:resource="#Monhoc"/> <rdfs:range rdf:resource="#Giangvien"/> </owl:ObjectProperty> <owl:ObjectProperty rdf:ID="cuatacgia"> <rdfs:domain rdf:resource="#Tailieu"/> <rdfs:range rdf:resource="#Tacgia"/> </owl:ObjectProperty> <Giangvien rdf:ID="C&#432;&#417;"> <ten_nguoi rdf:datatype="&xsd;string">Cuoc</ten_nguoi> <tuoi rdf:datatype="&xsd;int">46</tuoi> <id_giangvien rdf:datatype="&xsd;string">gv2</id_giangvien> <giangmon rdf:resource="#Monhoc_49"/> </Giangvien> <Giangvien rdf:ID="Giangvien_54"> <ten_nguoi rdf:datatype="&xsd;string">Cuong</ten_nguoi>

<tuoi rdf:datatype="&xsd;int">52</tuoi> <id_giangvien rdf:datatype="&xsd;string">gv3</id_giangvien> <giangmon rdf:resource="#Monhoc_48"/> </Giangvien> <owl:Class rdf:ID="Diem"/> <owl:DatatypeProperty rdf:ID="diem"> <rdf:type rdf:resource="&owl;FunctionalProperty"/> <rdfs:domain rdf:resource="#Diem"/> <rdfs:range rdf:resource="&xsd;float"/> </owl:DatatypeProperty> <owl:ObjectProperty rdf:ID="diemcua"> <rdfs:domain rdf:resource="#Diem"/> <rdfs:range rdf:resource="#Sinhvien"/> </owl:ObjectProperty> <owl:ObjectProperty rdf:ID="diemthuoc"> <rdfs:domain rdf:resource="#Diem"/> <rdfs:range rdf:resource="#Monhoc"/> </owl:ObjectProperty> <owl:ObjectProperty rdf:ID="duocdungboi"> <rdfs:domain rdf:resource="#Tailieu"/> <rdfs:range rdf:resource="#Giangvien"/> </owl:ObjectProperty> <owl:ObjectProperty rdf:ID="giangboi"> <rdfs:domain rdf:resource="#Lophoc"/> <rdfs:range rdf:resource="#Giangvien"/>

</owl:ObjectProperty> <owl:ObjectProperty rdf:ID="giangmon"> <rdfs:domain rdf:resource="#Giangvien"/> <rdfs:range rdf:resource="#Monhoc"/> </owl:ObjectProperty> <owl:Class rdf:ID="Giangvien"> <rdfs:subClassOf rdf:resource="#Nguoi"/> </owl:Class> <Tailieu rdf:ID="Tailieu_63"> <ten_tailieu rdf:datatype="&xsd;string">He phan tan</ten_tailieu> <namxuatban rdf:datatype="&xsd;int">2012</namxuatban> <tailieuthuoc rdf:resource="#Monhoc_50"/> <duocdungboi rdf:resource="#Giangvien_55"/> <cuatacgia rdf:resource="#Tacgia_58"/> </Tailieu> <Tailieu rdf:ID="Tailieu_62"> <ten_tailieu rdf:datatype="&xsd;string">He thong nhung</ten_tailieu> <namxuatban rdf:datatype="&xsd;int">2011</namxuatban> <tailieuthuoc rdf:resource="#Monhoc_49"/> <duocdungboi rdf:resource="#C&#432;&#417;"/> <cuatacgia rdf:resource="#Tacgia_57"/> </Tailieu> <owl:ObjectProperty rdf:ID="hocmonj"> <rdfs:domain rdf:resource="#Sinhvien"/> <rdfs:range rdf:resource="#Monhoc"/>

</owl:ObjectProperty> <Sinhvien rdf:ID="Sinhvien_47"> <ten_nguoi rdf:datatype="&xsd;string">Hung</ten_nguoi> <tuoi rdf:datatype="&xsd;int">23</tuoi> <id_sv rdf:datatype="&xsd;string">sv4</id_sv> <hocmonj rdf:resource="#Monhoc_50"/> <hocmonj rdf:resource="#Monhoc_51"/> </Sinhvien> <owl:DatatypeProperty rdf:ID="id_giangvien"> <rdf:type rdf:resource="&owl;FunctionalProperty"/> <rdfs:domain rdf:resource="#Giangvien"/> <rdfs:range rdf:resource="&xsd;string"/> </owl:DatatypeProperty> <owl:DatatypeProperty rdf:ID="id_lophoc"> <rdf:type rdf:resource="&owl;FunctionalProperty"/> <rdfs:domain rdf:resource="#Lophoc"/> <rdfs:range rdf:resource="&xsd;string"/> </owl:DatatypeProperty> <owl:DatatypeProperty rdf:ID="id_sv"> <rdf:type rdf:resource="&owl;FunctionalProperty"/> <rdfs:domain rdf:resource="#Sinhvien"/> <rdfs:range rdf:resource="&xsd;string"/> </owl:DatatypeProperty> <owl:DatatypeProperty rdf:ID="id_tacgia"> <rdf:type rdf:resource="&owl;FunctionalProperty"/>

<rdfs:domain rdf:resource="#Tacgia"/> <rdfs:range rdf:resource="&xsd;string"/> </owl:DatatypeProperty> <Sinhvien rdf:ID="Sinhvien_44"> <ten_nguoi rdf:datatype="&xsd;string">Lan</ten_nguoi> <tuoi rdf:datatype="&xsd;int">23</tuoi> <id_sv rdf:datatype="&xsd;string">sv1</id_sv> <hocmonj rdf:resource="#Monhoc_48"/> <hocmonj rdf:resource="#Monhoc_49"/> </Sinhvien> <Lophoc rdf:ID="Lophoc_67"> <id_lophoc rdf:datatype="&xsd;string">lh1</id_lophoc> <giangboi rdf:resource="#Giangvien_54"/> <theohocmon rdf:resource="#Monhoc_48"/> </Lophoc> <Lophoc rdf:ID="Lophoc_68"> <id_lophoc rdf:datatype="&xsd;string">lh2</id_lophoc> <giangboi rdf:resource="#Giangvien_52"/> <theohocmon rdf:resource="#Monhoc_51"/> </Lophoc> <owl:Class rdf:ID="Lophoc"/> <Sinhvien rdf:ID="Sinhvien_45"> <ten_nguoi rdf:datatype="&xsd;string">Minh</ten_nguoi> <tuoi rdf:datatype="&xsd;int">23</tuoi> <id_sv rdf:datatype="&xsd;string">sv2</id_sv>

<hocmonj rdf:resource="#Monhoc_48"/> <hocmonj rdf:resource="#Monhoc_49"/> </Sinhvien> <owl:Class rdf:ID="Monhoc"/> <Monhoc rdf:ID="Monhoc_66"/> <Giangvien rdf:ID="Giangvien_55"> <ten_nguoi rdf:datatype="&xsd;string">Nam</ten_nguoi> <tuoi rdf:datatype="&xsd;int">48</tuoi> <id_giangvien rdf:datatype="&xsd;string">gv4</id_giangvien> <giangmon rdf:resource="#Monhoc_50"/> </Giangvien> <owl:DatatypeProperty rdf:ID="namxuatban"> <rdf:type rdf:resource="&owl;FunctionalProperty"/> <rdfs:domain rdf:resource="#Tailieu"/> <rdfs:range rdf:resource="&xsd;int"/> </owl:DatatypeProperty> <Sinhvien rdf:ID="NGoc"> <ten_nguoi rdf:datatype="&xsd;string">Ngoc</ten_nguoi> <tuoi rdf:datatype="&xsd;int">23</tuoi> <id_sv rdf:datatype="&xsd;string">sv3</id_sv> <hocmonj rdf:resource="#Monhoc_50"/> <hocmonj rdf:resource="#Monhoc_51"/> </Sinhvien> <owl:Class rdf:ID="Nguoi"/> <Tacgia rdf:ID="Tacgia_57">

<ten_nguoi rdf:datatype="&xsd;string">Nguyen Van Gio</ten_nguoi> <tuoi rdf:datatype="&xsd;int">45</tuoi> <id_tacgia rdf:datatype="&xsd;string">tg2</id_tacgia> </Tacgia> <Tacgia rdf:ID="Nguye"> <ten_nguoi rdf:datatype="&xsd;string">Nguyen Van Mua</ten_nguoi> <tuoi rdf:datatype="&xsd;int">34</tuoi> <id_tacgia rdf:datatype="&xsd;string">tg1</id_tacgia> </Tacgia> <Monhoc rdf:ID="Monhoc_51"> <ten_monhoc rdf:datatype="&xsd;string" >Phan tich thiet ke</ten_monhoc> <sotrinh_monhoc rdf:datatype="&xsd;int">4</sotrinh_monhoc> <cogiangvien rdf:resource="#Giangvien_52"/> </Monhoc> <Tailieu rdf:ID="Tailieu_64"> <ten_tailieu rdf:datatype="&xsd;string" >Phan tich va thiet ke</ten_tailieu> <namxuatban rdf:datatype="&xsd;int">2012</namxuatban> <tailieuthuoc rdf:resource="#Monhoc_51"/> <duocdungboi rdf:resource="#Giangvien_52"/> <cuatacgia rdf:resource="#Tacgia_59"/> </Tailieu> <Giangvien rdf:ID="Giangvien_52"> <ten_nguoi rdf:datatype="&xsd;string">Que</ten_nguoi>

<tuoi rdf:datatype="&xsd;int">50</tuoi> <id_giangvien rdf:datatype="&xsd;string">gv1</id_giangvien> <giangmon rdf:resource="#Monhoc_51"/> </Giangvien> <owl:Class rdf:ID="Sinhvien"> <rdfs:subClassOf rdf:resource="#Nguoi"/> </owl:Class> <owl:DatatypeProperty rdf:ID="sotrinh_monhoc"> <rdf:type rdf:resource="&owl;FunctionalProperty"/> <rdfs:domain rdf:resource="#Monhoc"/> <rdfs:range rdf:resource="&xsd;int"/> </owl:DatatypeProperty> <owl:Class rdf:ID="Tacgia"> <rdfs:subClassOf rdf:resource="#Nguoi"/> </owl:Class> <Tacgia rdf:ID="Tacgia_61"/> <owl:Class rdf:ID="Tailieu"/> <owl:ObjectProperty rdf:ID="tailieuthuoc"> <rdfs:domain rdf:resource="#Tailieu"/> <rdfs:range rdf:resource="#Monhoc"/> </owl:ObjectProperty> <owl:DatatypeProperty rdf:ID="ten_monhoc"> <rdf:type rdf:resource="&owl;FunctionalProperty"/> <rdfs:domain rdf:resource="#Monhoc"/> <rdfs:range rdf:resource="&xsd;string"/>

</owl:DatatypeProperty> <owl:DatatypeProperty rdf:ID="ten_nguoi"> <rdf:type rdf:resource="&owl;FunctionalProperty"/> <rdfs:domain rdf:resource="#Nguoi"/> <rdfs:range rdf:resource="&xsd;string"/> </owl:DatatypeProperty> <owl:DatatypeProperty rdf:ID="ten_tailieu"> <rdf:type rdf:resource="&owl;FunctionalProperty"/> <rdfs:domain rdf:resource="#Tailieu"/> <rdfs:range rdf:resource="&xsd;string"/> </owl:DatatypeProperty> <owl:ObjectProperty rdf:ID="theohocmon"> <rdfs:domain rdf:resource="#Lophoc"/> <rdfs:range rdf:resource="#Monhoc"/> </owl:ObjectProperty> <Tacgia rdf:ID="Tacgia_58"> <ten_nguoi rdf:datatype="&xsd;string">Tran Van Nang</ten_nguoi> <tuoi rdf:datatype="&xsd;int">65</tuoi> <id_tacgia rdf:datatype="&xsd;string">tg3</id_tacgia> </Tacgia> <Tacgia rdf:ID="Tacgia_59"> <ten_nguoi rdf:datatype="&xsd;string">Tran van Tich</ten_nguoi> <tuoi rdf:datatype="&xsd;int">49</tuoi> <id_tacgia rdf:datatype="&xsd;string">tg4</id_tacgia> </Tacgia>

<owl:DatatypeProperty rdf:ID="tuoi"> <rdf:type rdf:resource="&owl;FunctionalProperty"/> <rdfs:domain rdf:resource="#Nguoi"/> <rdfs:range rdf:resource="&xsd;int"/> </owl:DatatypeProperty> </rdf:RDF>

You might also like