Advertisement
Semantiquele

OWL 2 Full Example "Mutual Love" (RDF/XML)

Nov 10th, 2011
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.40 KB | None | 0 0
  1. <!-- =============== conclusion.xml =========== -->
  2.  
  3. <?xml version="1.0" encoding="utf-8"?>
  4. <rdf:RDF
  5.  xmlns:ex="http://www.example.org/"
  6.  xmlns:owl="http://www.w3.org/2002/07/owl#"
  7.  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  8.  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
  9.  xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
  10. >
  11.   <rdf:Description rdf:about="http://www.example.org/Naoko">
  12.     <ex:mutuallyLoves rdf:resource="http://www.example.org/Sato"/>
  13.   </rdf:Description>
  14. </rdf:RDF>
  15.  
  16.  
  17. <!-- =============== premise.xml ============== -->
  18.  
  19. <?xml version="1.0" encoding="utf-8"?>
  20. <rdf:RDF
  21.  xmlns:ex="http://www.example.org/"
  22.  xmlns:owl="http://www.w3.org/2002/07/owl#"
  23.  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  24.  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
  25.  xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
  26. >
  27.   <rdf:Description rdf:about="http://www.example.org/MutuallyLoved">
  28.     <owl:equivalentClass>
  29.       <rdf:Description>
  30.         <owl:onProperty>
  31.           <rdf:Description rdf:about="http://www.example.org/lovesLovedBy">
  32.             <owl:propertyChainAxiom rdf:parseType="Collection">
  33.               <owl:FunctionalProperty rdf:about="http://www.example.org/loves"/>
  34.               <rdf:Description rdf:about="http://www.example.org/lovedBy">
  35.  
  36.                 <owl:inverseOf rdf:resource="http://www.example.org/loves"/>
  37.               </rdf:Description>
  38.             </owl:propertyChainAxiom>
  39.           </rdf:Description>
  40.         </owl:onProperty>
  41.         <owl:hasSelf rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">true</owl:hasSelf>
  42.       </rdf:Description>
  43.     </owl:equivalentClass>
  44.  
  45.     <owl:equivalentClass>
  46.       <owl:Restriction>
  47.         <owl:onProperty>
  48.           <rdf:Description rdf:about="http://www.example.org/mutuallyLoves">
  49.             <rdfs:subPropertyOf rdf:resource="http://www.example.org/loves"/>
  50.           </rdf:Description>
  51.         </owl:onProperty>
  52.         <owl:minCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:minCardinality>
  53.  
  54.       </owl:Restriction>
  55.     </owl:equivalentClass>
  56.   </rdf:Description>
  57.   <rdf:Description rdf:about="http://www.example.org/Sato">
  58.     <ex:loves>
  59.       <rdf:Description rdf:about="http://www.example.org/Naoko">
  60.         <ex:loves rdf:resource="http://www.example.org/Sato"/>
  61.       </rdf:Description>
  62.     </ex:loves>
  63.  
  64.   </rdf:Description>
  65. </rdf:RDF>
  66.  
  67.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement