ontology.owl 2.6 KB

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