ontology.owl 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE rdf:RDF [
  3. <!ENTITY xsd "http://www.w3.org/2001/XMLSchema#">
  4. <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  5. <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#">
  6. <!ENTITY owl "http://www.w3.org/2002/07/owl#">
  7. <!ENTITY mediawiki "https://www.mediawiki.org/ontology#">
  8. ]>
  9. <rdf:RDF
  10. xmlns:xsd="&xsd;"
  11. xmlns:rdf="&rdf;"
  12. xmlns:rdfs="&rdfs;"
  13. xmlns:owl="&owl;"
  14. >
  15. <owl:Ontology rdf:about="&mediawiki;">
  16. <rdfs:label>MediaWiki ontology</rdfs:label>
  17. <rdfs:comment>The ontology of MediaWiki</rdfs:comment>
  18. </owl:Ontology>
  19. <!--
  20. ///////////////////////////////////////////////////////////////////////////////////////
  21. //
  22. // Classes
  23. //
  24. ///////////////////////////////////////////////////////////////////////////////////////
  25. -->
  26. <owl:Class rdf:about="&mediawiki;Dump">
  27. <rdfs:label>Dump</rdfs:label>
  28. <rdfs:comment>A dump of MediaWiki content.</rdfs:comment>
  29. </owl:Class>
  30. <owl:Class rdf:about="&mediawiki;Category">
  31. <rdfs:label>Category</rdfs:label>
  32. <rdfs:comment>MediaWiki category.</rdfs:comment>
  33. </owl:Class>
  34. <owl:Class rdf:about="&mediawiki;HiddenCategory">
  35. <rdfs:label>HiddenCategory</rdfs:label>
  36. <rdfs:comment>MediaWiki hidden category.</rdfs:comment>
  37. </owl:Class>
  38. <!--
  39. ///////////////////////////////////////////////////////////////////////////////////////
  40. //
  41. // Properties
  42. //
  43. ///////////////////////////////////////////////////////////////////////////////////////
  44. -->
  45. <owl:ObjectProperty rdf:about="&mediawiki;isInCategory">
  46. <rdfs:label>isInCategory</rdfs:label>
  47. <rdfs:comment>One category is the parent of another.</rdfs:comment>
  48. <rdfs:range rdf:resource="&mediawiki;Category"/>
  49. <rdfs:domain rdf:resource="&mediawiki;Category"/>
  50. </owl:ObjectProperty>
  51. <owl:DatatypeProperty rdf:about="&mediawiki;pages">
  52. <rdfs:label>pages</rdfs:label>
  53. <rdfs:comment>Number of articles belonging to this category.</rdfs:comment>
  54. <rdfs:range rdf:resource="&mediawiki;Category"/>
  55. <rdfs:range rdf:resource="&xsd;integer"/>
  56. </owl:DatatypeProperty>
  57. <owl:DatatypeProperty rdf:about="&mediawiki;subcategories">
  58. <rdfs:label>subcategories</rdfs:label>
  59. <rdfs:comment>Number of subcategories belonging to this category.</rdfs:comment>
  60. <rdfs:range rdf:resource="&mediawiki;Category"/>
  61. <rdfs:range rdf:resource="&xsd;integer"/>
  62. </owl:DatatypeProperty>
  63. </rdf:RDF>