wiki.techinc.nl/docs/ontology.owl
Stanislav Malyshev d9bb673b72 Produce RDF dump of all categories and subcategories in a wiki.
Example:
http://en.wiki.local.wmftest.net:8080/wiki/Category:Ducks> a mediawiki:Category ;
        rdfs:label "Ducks" ;
        mediawiki:isInCategory <http://en.wiki.local.wmftest.net:8080/wiki/Category:Birds> .

Bug: T157676
Change-Id: I59b9603581b37af59d17dd6c38247c85aee44911
2017-08-28 00:30:35 -07:00

56 lines
1.6 KiB
Text

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE rdf:RDF [
<!ENTITY xsd "http://www.w3.org/2001/XMLSchema#">
<!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#">
<!ENTITY owl "http://www.w3.org/2002/07/owl#">
<!ENTITY mediawiki "https://www.mediawiki.org/ontology#">
]>
<rdf:RDF
xmlns:xsd="&xsd;"
xmlns:rdf="&rdf;"
xmlns:rdfs="&rdfs;"
xmlns:owl="&owl;"
>
<owl:Ontology rdf:about="&mediawiki;">
<rdfs:label>MediaWiki ontology</rdfs:label>
<rdfs:comment>The ontology of MediaWiki</rdfs:comment>
</owl:Ontology>
<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Classes
//
///////////////////////////////////////////////////////////////////////////////////////
-->
<owl:Class rdf:about="&mediawiki;Dump">
<rdfs:label>Dump</rdfs:label>
<rdfs:comment>A dump of MediaWiki content.</rdfs:comment>
</owl:Class>
<owl:Class rdf:about="&mediawiki;Category">
<rdfs:label>Category</rdfs:label>
<rdfs:comment>MediaWiki category.</rdfs:comment>
</owl:Class>
<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Properties
//
///////////////////////////////////////////////////////////////////////////////////////
-->
<owl:ObjectProperty rdf:about="&mediawiki;isInCategory">
<rdfs:label>isInCategory</rdfs:label>
<rdfs:comment>One category is the parent of another.</rdfs:comment>
<rdfs:range rdf:resource="&mediawiki;Category"/>
<rdfs:domain rdf:resource="&mediawiki;Category"/>
</owl:ObjectProperty>
</rdf:RDF>