@prefix dc: <http://purl.org/dc/elements/1.1/>.
@prefix ont: <http://www.daml.org/2001/03/daml+oil#>.

<http://www.w3.org/2001/04dun/colors>
  a ont:Ontology;
  ont:versionInfo "$Id: colors.n3,v 1.3 2001/05/16 20:09:20 connolly Exp $";
  dc:relation <http://www-db.stanford.edu/~stefan/damllayer.html>;
  dc:description """An ontology of colors,
demonstrating a techique for unique names.""".

@prefix u: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix : <http://www.w3.org/2001/04dun/colors#>.

:colorName u:label "color name";
  a ont:UniqueProperty;
  u:subPropertyOf u:label;
  u:domain :Color;
  u:comment """note the domain; each thing with a colorName
  is a Color. note also that this is a UniqueProperty;
  things with different colorNames are different.""".

:Color u:label "Color".

:colorID u:label "color ID";
  u:subPropertyOf :colorName;
  u:domain :OfficialColor;
  u:comment """due to the domain, each thing with a colorID
  is an OfficialColor.""".

:OfficialColor u:label "Official Color";
  u:comment """note the restriction on isDefined by; each
  OfficialColor is defined by this ontology.""";
  u:subClassOf [
    ont:onProperty u:isDefinedBy;
    ont:hasValue <colors>
  ].


:red :colorName "red".
:yellow :colorName "orange".
:blue :colorName "blue".

:orange :colorID "orange".
:green :colorID "green".
:purple :colorID "purple".

