<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE rdf:RDF [
        <!ENTITY home  "http://purl.org/test">
        <!ENTITY x     "&home;/X.owl#">
        <!ENTITY y     "&home;/Y.owl#">
        <!ENTITY owl   "http://www.w3.org/2002/07/owl#">
        <!ENTITY rdf   "http://www.w3.org/1999/02/22-rdf-syntax-ns#">
        <!ENTITY rdfs  "http://www.w3.org/2000/01/rdf-schema#">
        <!ENTITY xsd   "http://www.w3.org/2001/XMLSchema#">
        ]>


<rdf:RDF
        xmlns:x="&x;"
        xmlns:y="&y;"
        xmlns:owl="&owl;"
        xmlns:rdf="&rdf;"
        xmlns:rdfs="&rdfs;"
        xmlns:xsd="&xsd;"
        xmlns="&y;"
        xml:base="&home;/Y.owl"
        >


    <owl:Ontology rdf:about=""/>

    <!--
   <owl:Class rdf:about="&x;AlphaBeta"/>
   <owl:Class rdf:about="&x;AlphaGamma"/>
    -->

    <owl:Class rdf:ID="WeirdClass">
        <rdfs:label>Something something</rdfs:label>
        <rdfs:comment>
            A categorization scheme
        </rdfs:comment>
        <owl:intersectionOf rdf:parseType="Collection">
            <owl:Restriction>
                <owl:onProperty rdf:resource="#etaBeta"/>
                <owl:cardinality rdf:datatype="&xsd;nonNegativeInteger">1</owl:cardinality>
            </owl:Restriction>
            <owl:Restriction>
                <owl:onProperty rdf:resource="#etaGamma"/>
                <owl:cardinality rdf:datatype="&xsd;nonNegativeInteger">1</owl:cardinality>
            </owl:Restriction>
            <owl:Restriction>
                <owl:onProperty rdf:resource="#etaBeta"/>
                <owl:allValuesFrom rdf:resource="&x;AlphaBeta"/>
            </owl:Restriction>
            <owl:Restriction>
                <owl:onProperty rdf:resource="#etaGamma"/>
                <owl:allValuesFrom rdf:resource="&x;AlphaGamma"/>
            </owl:Restriction>
        </owl:intersectionOf>
    </owl:Class>

    <owl:ObjectProperty rdf:ID="etaGamma">
        <rdfs:label>eta gamma</rdfs:label>
        <rdfs:range rdf:resource="&x;AlphaGamma"/>
    </owl:ObjectProperty>
    <owl:ObjectProperty rdf:ID="etaBeta">
        <rdfs:label>eta beta</rdfs:label>
        <rdfs:range rdf:resource="&x;AlphaBeta"/>
    </owl:ObjectProperty>

</rdf:RDF>
