<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF 
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
    xmlns:owl="http://www.w3.org/2002/07/owl#" 
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" 
    xmlns:foaf="http://xmlns.com/foaf/0.1/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:wn="http://xmlns.com/wordnet/1.6/"
    xmlns:gallery="http://my.opera.com/community/xmlns/2006/gallery#">
  
  <owl:Ontology rdf:about="http://my.opera.com/community/xmlns/2006/gallery#">
    <dc:title>Gallery Ontology</dc:title>
    <!-- This ontology was initially created to describe the galleries
         of the Opera Community. After the initial publication, a
         group decided to come together on the #swig channel of
         irc.freenode.net, and the present version is a result of that
         meeting. Chat logs can be found at
         http://chatlogs.planetrdf.com/swig/2006-01-30#T17-01-05 -->
    <dc:description>An ontology to describe galleries or albums on the Web</dc:description>
    <foaf:maker rdf:resource="http://www.kjetil.kjernsmo.net/foaf.rdf#me"/>
    <dc:publisher>Opera Software ASA</dc:publisher>
  </owl:Ontology>

  <owl:Class rdf:about="http://my.opera.com/community/xmlns/2006/gallery#Gallery">
    <rdfs:label>Gallery</rdfs:label>
    <rdfs:comment>A collection of images</rdfs:comment>
    <rdfs:subClassOf rdf:resource="http://xmlns.com/wordnet/1.6/Gallery-3"/>
    <!-- Outstanding issue: I'd prefer to use the Wordnet 2.0 term
         Album-1, but since that has not been formalized to the same
         degree, it is deferred to a later version -->
    <rdfs:subClassOf rdf:resource="http://xmlns.com/foaf/0.1/Document"/>
    <rdfs:isDefinedBy rdf:resource="http://my.opera.com/community/xmlns/2006/gallery.rdf"/>
  </owl:Class>

  <rdf:Property rdf:about="http://my.opera.com/community/xmlns/2006/gallery#depicts" rdfs:label="depicts" rdfs:comment="A thing depicted in all images of the gallery.">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/>
    <rdfs:range rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
    <rdfs:domain rdf:resource="http://my.opera.com/community/xmlns/2006/gallery#Gallery"/>
    <rdfs:isDefinedBy rdf:resource="http://my.opera.com/community/xmlns/2006/gallery.rdf"/>
    <owl:inverseOf rdf:resource="http://my.opera.com/community/xmlns/2006/gallery#depictions"/>
  </rdf:Property>

  <rdf:Property rdf:about="http://my.opera.com/community/xmlns/2006/gallery#depictions" rdfs:label="depictions" rdfs:comment="depictions of some thing.">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/>
    <rdfs:domain rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
    <rdfs:range rdf:resource="http://my.opera.com/community/xmlns/2006/gallery#Gallery"/>
    <rdfs:isDefinedBy rdf:resource="http://my.opera.com/community/xmlns/2006/gallery.rdf"/>
    <owl:inverseOf rdf:resource="http://my.opera.com/community/xmlns/2006/gallery#depicts"/>
  </rdf:Property>

  <rdf:Property rdf:about="http://my.opera.com/community/xmlns/2006/gallery#highlight" rdfs:label="highlight" rdfs:comment="A representative image of the gallery.">
    <rdfs:subPropertyOf rdf:resource="http://www.cyc.com/2004/06/04/cyc#groupPrototype"/>
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/>
    <rdfs:domain rdf:resource="http://my.opera.com/community/xmlns/2006/gallery#Gallery"/>
    <rdfs:range rdf:resource="http://xmlns.com/foaf/0.1/Image"/>
    <rdfs:isDefinedBy rdf:resource="http://my.opera.com/community/xmlns/2006/gallery.rdf"/>
  </rdf:Property>


  <rdf:Property rdf:about="http://my.opera.com/community/xmlns/2006/gallery#image" rdfs:label="image" rdfs:comment="An image in the gallery">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/>
    <rdfs:domain rdf:resource="http://my.opera.com/community/xmlns/2006/gallery#Gallery"/>
    <rdfs:range rdf:resource="http://xmlns.com/foaf/0.1/Image"/>
    <rdfs:isDefinedBy rdf:resource="http://my.opera.com/community/xmlns/2006/gallery.rdf"/>
  </rdf:Property>

  <owl:Class rdf:about="http://my.opera.com/community/xmlns/2006/gallery#OrderedGallery">
    <rdfs:label>OrderedGallery</rdfs:label>
    <rdfs:comment>An ordered collection of images</rdfs:comment>
    <rdfs:subClassOf rdf:resource="http://my.opera.com/community/xmlns/2006/gallery#Gallery"/>
  </owl:Class>

  <rdf:Property rdf:about="http://my.opera.com/community/xmlns/2006/gallery#images" rdfs:label="images" rdfs:comment="The images of an ordered gallery">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/>
    <rdfs:domain rdf:resource="http://my.opera.com/community/xmlns/2006/gallery#OrderedGallery"/>
    <!-- Outstanding issue: Using the Seq property makes these
         galleries harder to query and breaks OWL-DL constraints. It
         would therefore be desireable to have a OWL-DL-safe way of
         expressing ordered galleries. -->
    <rdfs:range rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq"/>
    <rdfs:isDefinedBy rdf:resource="http://my.opera.com/community/xmlns/2006/gallery.rdf"/>
  </rdf:Property>

</rdf:RDF>
