Advertisement
Semantiquele

OWL 2 RL Flavor Differences

Jan 6th, 2012
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.18 KB | None | 0 0
  1. = Differences between the two OWL 2 RL flavors ==
  2.  
  3. I provide examples for the semantic differences of the two flavors of OWL 2 RL,
  4. when applied to valid OWL 2 RL ontologies.
  5. See the following discussion for more information about the differences
  6. between the two flavors of OWL 2 RL:
  7.  
  8. http://answers.semanticweb.com/questions/13690/owl2-rl-vs-owl2-rlrdf-rules#13696
  9.  
  10. The ontologies are given here in RDF/Turtle format. If you need them in
  11. a different RDF serialization format, such as RDF/XML, you may use
  12. the following converter:
  13.  
  14. http://rdf-translator.appspot.com/
  15.  
  16. All ontologies have been validated as valid OWL 2 RL ontologies
  17. using the Manchester OWL validator at
  18.  
  19. http://owl.cs.manchester.ac.uk/validator/
  20.  
  21. == Example 1: OWL 2 RL + Direct Semantics Wins ==
  22.  
  23. Example for OWL 2 RL + Direct Semantics
  24. producing results beyond the OWL 2 RL/RDF rules.
  25. This has to do with the high expressivity of the OWL 2 Direct Semantics,
  26. when dealing with class expressions,
  27. which is beyond the expressivity
  28. provided by the simple first-order rules of the OWL 2 RL/RDF rules.
  29.  
  30. === Premise Ontology ===
  31.  
  32. @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
  33. @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
  34. @prefix owl: <http://www.w3.org/2002/07/owl#> .
  35. @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
  36. @prefix ex: <http://www.example.org/> .
  37.  
  38. _:o rdf:type owl:Ontology .
  39. ex:C1 rdf:type owl:Class .
  40. ex:C2 rdf:type owl:Class .
  41. ex:C3 rdf:type owl:Class .
  42. ex:X1 rdf:type owl:Class .
  43. ex:X2 rdf:type owl:Class .
  44.  
  45. ex:X1 owl:intersectionOf (ex:C1 ex:C2 ex:C3) .
  46. ex:X2 owl:intersectionOf (ex:C1 ex:C2) .
  47.  
  48. === Conclusion Ontology ===
  49.  
  50. @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
  51. @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
  52. @prefix owl: <http://www.w3.org/2002/07/owl#> .
  53. @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
  54. @prefix ex: <http://www.example.org/> .
  55.  
  56. _:o rdf:type owl:Ontology .
  57. ex:X1 rdf:type owl:Class .
  58. ex:X2 rdf:type owl:Class .
  59.  
  60. ex:X1 rdfs:subClassOf ex:X2 .
  61.  
  62.  
  63. == Example 2: OWL 2 RL/RDF Rules Wins ==
  64.  
  65. Example for the OWL 2 RL/RDF rules
  66. producing results beyond OWL 2 RL + Direct Semantics.
  67. This has to do with the "emergent" metamodeling capabilities
  68. of the "OWL Full'ish" OWL 2 RL/RDF rules,
  69. which is beyond the capabilities of the OWL 2 Direct Semantics.
  70.  
  71. === Premise Ontology ===
  72.  
  73. @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
  74. @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
  75. @prefix owl: <http://www.w3.org/2002/07/owl#> .
  76. @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
  77. @prefix ex: <http://www.example.org/> .
  78.  
  79. _:o rdf:type owl:Ontology .
  80. ex:Country rdf:type owl:Class .
  81. ex:Land rdf:type owl:Class .
  82.  
  83. ex:Land owl:sameAs ex:Country .
  84. ex:Germany rdf:type ex:Land .
  85.  
  86. === Conclusion Ontology ===
  87.  
  88. @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
  89. @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
  90. @prefix owl: <http://www.w3.org/2002/07/owl#> .
  91. @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
  92. @prefix ex: <http://www.example.org/> .
  93.  
  94. _:o rdf:type owl:Ontology .
  95. ex:Country rdf:type owl:Class .
  96.  
  97. ex:Germany rdf:type ex:Country .
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement