-- 作者:wolf_xjf
-- 发布时间:6/14/2006 8:27:00 PM
--
谢谢大侠 file:D:/java/testing/reasoners/bugs/hhuSchema2.owl如下: <?xml version="1.0"?> <!DOCTYPE rdf:RDF [<!ENTITY hhu "http://www.hhu.edu.cn#"> <!ENTITY xsd "http://www.w3.org/2001/XMLSchema#"> <!ENTITY owl "http://www.w3.org/2002/07/owl#">]> <rdf:RDF xmlns = "&hhu;" xmlns:hhu = "&hhu;" xml:base = "&hhu;" xmlns:xsd = "http://www.w3.org/2001/XMLSchema#" xmlns:owl = "http://www.w3.org/2002/07/owl#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"> <owl:Ontology rdf:about=""> <rdfs:comment>An example OWL ontology</rdfs:comment> <rdfs:comment>Derived from the DAML Wine ontology at http://ontolingua.stanford.edu/doc/chimaera/ontologies/wines.daml Substantially changed, in particular the Region based relations. </rdfs:comment> <rdfs:label>owlDemoSchema</rdfs:label> </owl:Ontology> <owl:Class rdf:ID = "Teacher"> <rdfs:subClassOf> <rdf:Description> <owl:intersectionOf rdf:parseType="Collection"> <owl:Restriction> <owl:onProperty rdf:resource="#hasTNo" /> <owl:allvaluesFrom rdf:resource="http://www.w3.org/2001/XMLSchema#string"/> <owl:maxCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:maxCardinality> <owl:minCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:minCardinality> </owl:Restriction> <owl:Restriction> <owl:onProperty rdf:resource="#hasPosition" /> <owl:allvaluesFrom rdf:resource="#Position" /> </owl:Restriction> <owl:Restriction> <owl:onProperty rdf:resource="#teach" /> <owl:allvaluesFrom rdf:resource="#Project" /> </owl:Restriction> </owl:intersectionOf> </rdf:Description> </rdfs:subClassOf> </owl:Class> <owl:Class rdf:ID = "Mentor"> <rdfs:subClassOf> <rdf:Description> <owl:intersectionOf rdf:parseType="Collection"> <owl:Class rdf:about= "#Teacher"/> <owl:Restriction> <owl:unionOf rdf:parseType="Collection"> <owl:Restriction> <owl:onProperty rdf:resource="#hasPosition" /> <owl:hasvalue rdf:resource="#AssociateProfessor" /> </owl:Restriction> <owl:Restriction> <owl:onProperty rdf:resource="#hasPosition" /> <owl:hasvalue rdf:resource="#Professor" /> </owl:Restriction> </owl:unionOf> </owl:Restriction> </owl:intersectionOf> </rdf:Description> </rdfs:subClassOf> </owl:Class> <owl:Class rdf:ID = "Student"> <rdfs:subClassOf> <rdf:Description> <owl:intersectionOf rdf:parseType="Collection"> <owl:Restriction> <owl:onProperty rdf:resource="#hasSNo" /> <owl:allvaluesFrom rdf:resource="http://www.w3.org/2001/XMLSchema#string"/> <owl:maxCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:maxCardinality> <owl:minCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:minCardinality> </owl:Restriction> <owl:Restriction> <owl:onProperty rdf:resource="#elective" /> <owl:allvaluesFrom rdf:resource="#Project" /> </owl:Restriction> </owl:intersectionOf> </rdf:Description> </rdfs:subClassOf> </owl:Class> <owl:Class rdf:ID = "GradurateStudent"> <rdfs:subClassOf> <owl:Class rdf:about = "#Student"/> </rdfs:subClassOf> <rdfs:subClassOf> <owl:Restriction> <owl:onProperty rdf:resource="#hasMentor" /> <owl:allvaluesFrom rdf:resource="#Mentor" /> <owl:maxCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:maxCardinality> <owl:minCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:minCardinality> </owl:Restriction> </rdfs:subClassOf> </owl:Class> <owl:Class rdf:ID = "Project"> <rdfs:subClassOf> <owl:Restriction> <owl:onProperty rdf:resource="#hasNo" /> <owl:allvaluesFrom rdf:resource="http://www.w3.org/2001/XMLSchema#string"/> <owl:maxCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:maxCardinality> <owl:minCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:minCardinality> </owl:Restriction> </rdfs:subClassOf> <rdfs:subClassOf> <owl:Restriction> <owl:onProperty rdf:resource="#hasCredit" /> <owl:allvaluesFrom rdf:resource="http://www.w3.org/2001/XMLSchema#string"/> <owl:maxCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:maxCardinality> <owl:minCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:minCardinality> </owl:Restriction> </rdfs:subClassOf> <rdfs:subClassOf> <owl:Restriction> <owl:onProperty rdf:resource="#inv_elective" /> <owl:allvaluesFrom rdf:resource="#Student"/> </owl:Restriction> </rdfs:subClassOf> </owl:Class> <owl:Class rdf:ID = "Region"> <owl:oneOf rdf:parseType="Collection"> <owl:Thing rdf:about="#GC"/> <owl:Thing rdf:about="#SL"/> <owl:Thing rdf:about="#KX"/> <owl:Thing rdf:about="#SD"/> </owl:oneOf> </owl:Class> <owl:Class rdf:ID = "Position"> <owl:oneOf rdf:parseType="Collection"> <owl:Thing rdf:about="#AssociateProfessor"/> <owl:Thing rdf:about="#Professor"/> <owl:Thing rdf:about="#NomalTeacher"/> </owl:oneOf> </owl:Class> <owl:DatatypeProperty rdf:ID="hasTNo"> <rdfs:domain rdf:resource="#Teacher" /> <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string" /> </owl:DatatypeProperty> <owl:DatatypeProperty rdf:ID="hasSNo"> <rdfs:domain rdf:resource="#Student" /> <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string" /> </owl:DatatypeProperty> <owl:DatatypeProperty rdf:ID="hasNo"> <rdfs:domain rdf:resource="#Project" /> <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string" /> </owl:DatatypeProperty> <owl:ObjectProperty rdf:ID="hasPosition"> <rdfs:domain rdf:resource="#Teacher" /> <rdfs:range rdf:resource="#Position" /> </owl:ObjectProperty> <owl:ObjectProperty rdf:ID="hasMentor"> <rdfs:domain rdf:resource="#GradurateStudent" /> <rdfs:range rdf:resource="#Mentor" /> </owl:ObjectProperty> <owl:ObjectProperty rdf:ID="teach"> <rdfs:domain rdf:resource="#Teacher"/> <rdfs:range rdf:resource="#Project"/> </owl:ObjectProperty> <owl:ObjectProperty rdf:ID="inv_elective"> <rdfs:domain rdf:resource="#Project"/> <rdfs:range rdf:resource="#Student"/> <owl:inverseOf rdf:resource="#elective"/> </owl:ObjectProperty> <owl:ObjectProperty rdf:ID="elective"> <rdfs:domain rdf:resource="#Student"/> <rdfs:range rdf:resource="#Project" /> </owl:ObjectProperty> <owl:ObjectProperty rdf:ID="hasCredit"> <rdfs:domain rdf:resource="#Project"/> <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string" /> </owl:ObjectProperty> </rdf:RDF> file:D:/java/testing/reasoners/bugs/hhuData2.rdf <?xml version="1.0"?> <!DOCTYPE rdf:RDF [<!ENTITY hhu "http://www.hhu.edu.cn#"> <!ENTITY xsd "http://www.w3.org/2001/XMLSchema#"> <!ENTITY owl "http://www.w3.org/2002/07/owl#">]> <rdf:RDF xmlns = "&hhu;" xmlns:hhu = "&hhu;" xml:base = "&hhu;" xmlns:xsd = "http://www.w3.org/2001/XMLSchema#" xmlns:owl = "http://www.w3.org/2002/07/owl#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"> <Mentor rdf:ID="Wang"> <hasTNo rdf:datatype="http://www.w3.org/2001/XMLSchema#string">9806</hasTNo> <hasPosition rdf:resource="#Professor"/> <teach rdf:resource="#ComputerScience"/> </Mentor> <Mentor rdf:ID="Wan"> <hasTNo rdf:datatype="http://www.w3.org/2001/XMLSchema#string">9901</hasTNo> <hasPosition rdf:resource="#AssociateProfessor"/> <teach rdf:resource="#Network"/> </Mentor> <Mentor rdf:ID="Chen"> <hasTNo rdf:datatype="http://www.w3.org/2001/XMLSchema#string">9703</hasTNo> <hasPosition rdf:resource="#Professor"/> <teach rdf:resource="#Software"/> <teach rdf:resource="#Compiler"/> </Mentor> <Teacher rdf:ID="Li"> <hasTNo rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0102</hasTNo> <hasPosition rdf:resource="#NomalTeacher"/> <teach rdf:resource="#English"/> </Teacher> <Teacher rdf:ID="Zhang"> <hasTNo rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0423</hasTNo> <hasPosition rdf:resource="#NomalTeacher"/> <teach rdf:resource="#AI"/> <teach rdf:resource="#Communicate"/> </Teacher> <Student rdf:ID="Yang"> <hasSNo rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0203</hasSNo> <elective rdf:resource="#English"/> <elective rdf:resource="#Network"/> <elective rdf:resource="#Software"/> </Student> <Student rdf:ID="Yin"> <hasSNo rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0231</hasSNo> <elective rdf:resource="#AI"/> <elective rdf:resource="#Compiler"/> <elective rdf:resource="#Communicate"/> </Student> <GradurateStudent rdf:ID="lu" > <hasSNo rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0502</hasSNo> <hasMentor rdf:resource="Wang"/> <hasMentor> <rdf:Description rdf:about="#Dean"/> </hasMentor> <elective rdf:resource="#AI"/> <elective rdf:resource="#Compiler"/> </GradurateStudent> <Project rdf:ID="English"> <hasNo rdf:datatype="http://www.w3.org/2001/XMLSchema#string">001</hasNo> <hasCredit rdf:datatype="http://www.w3.org/2001/XMLSchema#string">16</hasCredit> </Project> <Project rdf:ID="ComputerScience"> <hasNo rdf:datatype="http://www.w3.org/2001/XMLSchema#string">003</hasNo> <hasCredit rdf:datatype="http://www.w3.org/2001/XMLSchema#string">16</hasCredit> </Project> <Project rdf:ID="Network"> <hasNo rdf:datatype="http://www.w3.org/2001/XMLSchema#string">027</hasNo> <hasCredit rdf:datatype="http://www.w3.org/2001/XMLSchema#string">10</hasCredit> </Project> <Project rdf:ID="Communicate"> <hasNo rdf:datatype="http://www.w3.org/2001/XMLSchema#string">043</hasNo> <hasCredit rdf:datatype="http://www.w3.org/2001/XMLSchema#string">20</hasCredit> </Project> <Project rdf:ID="AI"> <hasNo rdf:datatype="http://www.w3.org/2001/XMLSchema#string">016</hasNo> <hasCredit rdf:datatype="http://www.w3.org/2001/XMLSchema#string">10</hasCredit> </Project> <Project rdf:ID="Software"> <hasNo rdf:datatype="http://www.w3.org/2001/XMLSchema#string">032</hasNo> <hasCredit rdf:datatype="http://www.w3.org/2001/XMLSchema#string">10</hasCredit> </Project> <Project rdf:ID="Compiler"> <hasNo rdf:datatype="http://www.w3.org/2001/XMLSchema#string">022</hasNo> <hasCredit rdf:datatype="http://www.w3.org/2001/XMLSchema#string">16</hasCredit> </Project> </rdf:RDF> 谢谢大侠帮我看看!
|