<?xml version="1.0" encoding="UTF-8"?>

<rdf:RDF xmlns="http://www.mindswap.org/2005/owl/digital-media#" 
	xml:base = "http://www.mindswap.org/2005/owl/digital-media" 
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
	xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
    xmlns:owl="http://www.w3.org/2002/07/owl#"
>

<owl:Class rdf:ID="DigitalMedia">
     <rdfs:label>Digital Media</rdfs:label>
     <rdfs:comment>The class of digital media data</rdfs:comment>
</owl:Class>
 
<owl:Class rdf:ID="Image">
     <rdfs:label>Image</rdfs:label>
     <rdfs:comment>The class of images</rdfs:comment>
     <rdfs:subClassOf rdf:resource="#DigitalMedia"/>
     <rdfs:subClassOf rdf:resource="http://xmlns.com/foaf/0.1/Image"/>
 </owl:Class>

 <owl:Class rdf:ID="Video">
     <rdfs:label>Video</rdfs:label>
     <rdfs:comment>The class of videos</rdfs:comment>
     <rdfs:subClassOf rdf:resource="#DigitalMedia"/>
 </owl:Class>

<owl:Class rdf:ID="Segment">
     <rdfs:label>Segment</rdfs:label>
     <rdfs:comment>The class of  fragments of digital media content</rdfs:comment>
     <rdfs:subClassOf rdf:resource="#DigitalMedia"/>
 </owl:Class>

 <owl:Class rdf:ID="StillRegion">
     <rdfs:label>Still Region</rdfs:label>
     <rdfs:comment>2D spatial regions of an image or video frame</rdfs:comment>
     <rdfs:subClassOf rdf:resource="#Segment"/>
     <!--<rdfs:subClassOf rdf:resource="#Image"/>-->
 </owl:Class>


 <owl:Class rdf:ID="ImageText">
     <rdfs:label>Image Text</rdfs:label>
     <rdfs:comment>Spatial regions of an image or video frame that correspond to text or 
captions</rdfs:comment>
     <rdfs:subClassOf rdf:resource="#StillRegion"/>
 </owl:Class>

<owl:Class rdf:ID="Mosaic">
     <rdfs:label>Mosaic</rdfs:label>
     <rdfs:comment>Mosaic or panaoramic view of a video segment</rdfs:comment>
     <rdfs:subClassOf rdf:resource="#StillRegion"/>
 </owl:Class>

 <owl:Class rdf:ID="VideoSegment">
     <rdfs:label>Video Segment</rdfs:label>
     <rdfs:comment>Temporal intervals or segments of video data</rdfs:comment>
     <rdfs:subClassOf rdf:resource="#Segment"/>
     <rdfs:subClassOf rdf:resource="#Video"/>
 </owl:Class>

 <owl:Class rdf:ID="MovingRegion">
     <rdfs:label>Moving Region</rdfs:label>
     <rdfs:comment>2D spatio-temporal regions of video data</rdfs:comment>
     <rdfs:subClassOf rdf:resource="#Segment"/>
 </owl:Class>

 <owl:Class rdf:ID="VideoText">
     <rdfs:label>Video Text</rdfs:label>
     <rdfs:comment>Spatio-temporal regions of video data that correspond to text or captions</rdfs:comment>
     <rdfs:subClassOf rdf:resource="#MovingRegion"/>
 </owl:Class>


<owl:Class rdf:ID="VideoSegmentsOrStillRegions">
    <rdfs:label>VideoSegmentsOrStillRegions</rdfs:label>
    <owl:unionOf rdf:parseType="daml:collection">
       <owl:Class rdf:about="#VideoSegment"/>
       <owl:Class rdf:about="#StillRegion"/>
    </owl:unionOf>
</owl:Class>

<owl:Class rdf:ID="VideoFrame">
     <rdfs:label>VideoFrame</rdfs:label>
     <rdfs:comment> Frame of a video </rdfs:comment>
     <rdfs:subClassOf rdf:resource="#DigitalMedia"/>
     <rdfs:subClassOf rdf:resource="#Image"/>
 </owl:Class>



<!-- Properties -->

<owl:ObjectProperty rdf:ID="descriptor">
       <rdfs:domain rdf:resource="#DigitalMedia"/>
</owl:ObjectProperty>

 <owl:ObjectProperty rdf:ID="visualDescriptor">
       <rdfs:comment>Descriptor - applicable to images, videos, video segments, still regions and moving 
regions.</rdfs:comment>
       <owl:subPropertyOf rdf:resource="#descriptor"/>
 </owl:ObjectProperty>


<!-- Others -->


<owl:Class rdf:ID="ImagePart">
     <rdfs:label>Image Part</rdfs:label>
     <rdfs:comment>2D spatial regions of an image or video frame</rdfs:comment>
     <rdfs:subClassOf rdf:resource="#Segment"/>
     <!--<rdfs:subClassOf rdf:resource="#Image"/>-->
 </owl:Class>

<owl:ObjectProperty rdf:ID="depicts">
    <rdfs:label>depicts</rdfs:label>
    <owl:inverseOf rdf:resource="#depiction"/>
    <rdfs:subPropertyOf rdf:resource="http://xmlns.com/foaf/0.1/depicts"/>
    <rdfs:subPropertyOf rdf:resource="http://xmlns.com/foaf/0.1/depiction"/>
</owl:ObjectProperty>


<owl:ObjectProperty rdf:ID="depiction">
    <rdfs:label>depiction</rdfs:label>
    <rdfs:subPropertyOf rdf:resource="http://xmlns.com/foaf/0.1/depiction"/>
</owl:ObjectProperty>


<owl:ObjectProperty rdf:ID="regionOf">
    <rdfs:label>regionOf</rdfs:label>
	<rdfs:range rdf:resource="#DigitalMedia"/>
	<rdfs:domain rdf:resource="#ImagePart"/>
    <owl:inverseOf rdf:resource="#hasRegion"/>
</owl:ObjectProperty>

<owl:ObjectProperty rdf:ID="frameOf">
    <rdfs:label>frameOf</rdfs:label>
	<rdfs:range rdf:resource="#Video"/>
	<rdfs:domain rdf:resource="#VideoFrame"/>
</owl:ObjectProperty>


<owl:ObjectProperty rdf:ID="hasRegion">
    <rdfs:label>hasRegion</rdfs:label>
	<rdfs:range rdf:resource="#ImagePart"/>
	<rdfs:domain rdf:resource="#DigitalMedia"/>
</owl:ObjectProperty>




<owl:ObjectProperty rdf:ID="segmentOf">
    <rdfs:label>segmentOf</rdfs:label>  
	<rdfs:domain rdf:resource="#VideoSegment"/>
	<rdfs:range rdf:resource="#Video"/>
    <owl:inverseOf rdf:resource="#hasSegment"/>
</owl:ObjectProperty>

<owl:ObjectProperty rdf:ID="hasSegment">
    <rdfs:label>hasSegment</rdfs:label>
	<rdfs:domain rdf:resource="#Video"/>
	<rdfs:range rdf:resource="#VideoSegment"/>
</owl:ObjectProperty>


<owl:DatatypeProperty rdf:ID="startFrame">
    <rdfs:label>startFrame</rdfs:label>
	<rdfs:domain rdf:resource="#VideoSegment"/>
</owl:DatatypeProperty>

<owl:DatatypeProperty rdf:ID="endFrame">
    <rdfs:label>endFrame</rdfs:label>
	<rdfs:domain rdf:resource="#VideoSegment"/>
</owl:DatatypeProperty>

<owl:DatatypeProperty rdf:ID="hasDurationSeconds">
    <rdfs:label>hasDurationSeconds</rdfs:label>
	<rdfs:domain rdf:resource="#Video"/>
</owl:DatatypeProperty>

<owl:DatatypeProperty rdf:ID="hasTotalFrames">
    <rdfs:label>hasTotalFrames</rdfs:label>
	<rdfs:domain rdf:resource="#Video"/>
</owl:DatatypeProperty>


<owl:DatatypeProperty rdf:ID="frameNumber">
    <rdfs:label>frameNumber</rdfs:label>
	<rdfs:domain rdf:resource="#VideoFrame"/>
</owl:DatatypeProperty>

<owl:DatatypeProperty rdf:ID="svgOutline">
    <rdfs:label>svgOutline</rdfs:label>
	<rdfs:domain rdf:resource="#ImagePart"/>
</owl:DatatypeProperty>



</rdf:RDF>
