<?xml version="1.0" encoding="UTF-8"?>

<!-- MPEG-7-specific RDF Schema extensions to the CIDOC CRM Ontology -->

<rdf:RDF xmlns="http://metadata.net/harmony#" 
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
	xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
        xmlns:daml="http://www.daml.org/2001/03/daml+oil#"
        xmlns:cidoc="http://cidoc.ics.forth.gr/docs/crm#">

<!-- MPEG-7 multimedia classes - subclasses of cidoc:E31.Document -->

<rdfs:Class rdf:ID="MultimediaContent">
     <rdfs:label>MultimediaContent</rdfs:label>
     <rdfs:comment>The class of multimedia data</rdfs:comment>
     <rdfs:subClassOf rdf:resource="cidoc:E31.Document"/>
 </rdfs:Class>
 <rdfs:Class rdf:ID="Image">
     <rdfs:label>Image</rdfs:label>
     <rdfs:comment>The class of images</rdfs:comment>
     <rdfs:subClassOf rdf:resource="MultimediaContent"/>
 </rdfs:Class>
 <rdfs:Class rdf:ID="Video">
     <rdfs:label>Video</rdfs:label>
     <rdfs:comment>The class of videos</rdfs:comment>
     <rdfs:subClassOf rdf:resource="MultimediaContent"/>
 </rdfs:Class>
 <rdfs:Class rdf:ID="Audio">
     <rdfs:label>Audio</rdfs:label>
     <rdfs:comment>The class of audio resources</rdfs:comment>
     <rdfs:subClassOf rdf:resource="MultimediaContent"/>
 </rdfs:Class>
 <rdfs:Class rdf:ID="AudioVisual">
     <rdfs:label>AudioVisual</rdfs:label>
     <rdfs:comment>The class of audiovisual resources</rdfs:comment>
     <rdfs:subClassOf rdf:resource="MultimediaContent"/>
 </rdfs:Class>
 <rdfs:Class rdf:ID="Multimedia">
     <rdfs:label>Multimedia</rdfs:label>
     <rdfs:comment>The class of multimedia resources</rdfs:comment>
     <rdfs:subClassOf rdf:resource="MultimediaContent"/>
 </rdfs:Class>
<rdfs:Class rdf:ID="Segment">
     <rdfs:label>Segment</rdfs:label>
     <rdfs:comment>The class of  fragments of multimedia content</rdfs:comment>
     <rdfs:subClassOf rdf:resource="MultimediaContent"/>
 </rdfs:Class>
 <rdfs:Class rdf:ID="StillRegion">
     <rdfs:label>StillRegion</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"/>
 </rdfs:Class>
 <rdfs:Class rdf:ID="ImageText">
     <rdfs:label>ImageText</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"/>
 </rdfs:Class>
<rdfs: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"/>
 </rdfs:Class>
 <rdfs:Class rdf:ID="StillRegion3D">
     <rdfs:label>StillRegion3D</rdfs:label>
     <rdfs:comment>3D spatial regions of a 3D image</rdfs:comment>
     <rdfs:subClassOf rdf:resource="Segment"/>
     <rdfs:subClassOf rdf:resource="Image"/>
 </rdfs:Class>
 <rdfs:Class rdf:ID="VideoSegment">
     <rdfs:label>VideoSegment</rdfs:label>
     <rdfs:comment>Temporal intervals or segments of video data</rdfs:comment>
     <rdfs:subClassOf rdf:resource="Segment"/>
     <rdfs:subClassOf rdf:resource="Video"/>
 </rdfs:Class>
 <rdfs:Class rdf:ID="MovingRegion">
     <rdfs:label>MovingRegion</rdfs:label>
     <rdfs:comment>2D spatio-temporal regions of video data</rdfs:comment>
     <rdfs:subClassOf rdf:resource="Segment"/>
 </rdfs:Class>
 <rdfs:Class rdf:ID="VideoText">
     <rdfs:label>VideoText</rdfs:label>
     <rdfs:comment>Spatio-temporal regions of video data that correspond to text or captions</rdfs:comment>
     <rdfs:subClassOf rdf:resource="MovingRegion"/>
 </rdfs:Class>
 <rdfs:Class rdf:ID="AudioSegment">
     <rdfs:label>AudioSegment</rdfs:label>
     <rdfs:comment>Temporal intervals or segments of audio data</rdfs:comment>
     <rdfs:subClassOf rdf:resource="Segment"/>
     <rdfs:subClassOf rdf:resource="Audio"/>
 </rdfs:Class>
 <rdfs:Class rdf:ID="AudioVisualSegment">
     <rdfs:label>AudioVisualSegment</rdfs:label>
     <rdfs:comment>Temporal intervals or segments of audiovisual data</rdfs:comment>
     <rdfs:subClassOf rdf:resource="Segment"/>
     <rdfs:subClassOf rdf:resource="AudioVisual"/>
 </rdfs:Class>
 <rdfs:Class rdf:ID="AudioVisualRegion">
     <rdfs:label>AudioVisualRegion</rdfs:label>
     <rdfs:comment>Arbitrary spatio-temporal segments of AV data</rdfs:comment>
     <rdfs:subClassOf rdf:resource="Segment"/>
 </rdfs:Class>
 <rdfs:Class rdf:ID="MultimediaSegment">
     <rdfs:label>MultimediaSegment</rdfs:label>
     <rdfs:comment>Segment of a composite multimedia presentation</rdfs:comment>
     <rdfs:subClassOf rdf:resource="Multimedia"/>
     <rdfs:subClassOf rdf:resource="Segment"/>
 </rdfs:Class>
<rdfs:Class rdf:ID="EditedVideoSegment">
     <rdfs:label>EditedVideoSegment</rdfs:label>
     <rdfs:comment>Video segment that results from editing work</rdfs:comment>
     <rdfs:subClassOf rdf:resource="VideoSegment"/>
</rdfs:Class>

<!-- MPEG-7 decomposition properties - subproperties of cidoc:P106F.is_composed_of -->

 <rdf:Property rdf:ID="spatial_decomposition">
       <rdfs:label>spatial decomposition of a segment</rdfs:label>
       <rdfs:subPropertyOf rdf:resource="cidoc:P106F.is_composed_of"/>
       <rdfs:domain rdf:resource="MultimediaContent"/>
       <rdfs:range rdf:resource="Segment"/>
 </rdf:Property>
 <rdf:Property rdf:ID="temporal_decomposition">
       <rdfs:label>temporal decomposition of a segment</rdfs:label>
       <rdfs:subPropertyOf rdf:resource="cidoc:P106F.is_composed_of"/>
       <rdfs:domain rdf:resource="MultimediaContent"/>
       <rdfs:range rdf:resource="Segment"/>
 </rdf:Property>
 <rdf:Property rdf:ID="spatiotemporal_decomposition">
       <rdfs:label>spatio-temporal decomposition of a segment</rdfs:label>
       <rdfs:subPropertyOf rdf:resource="cidoc:P106F.is_composed_of"/>
       <rdfs:domain rdf:resource="MultimediaContent"/>
       <rdfs:range rdf:resource="Segment"/>
 </rdf:Property>
 <rdf:Property rdf:ID="mediaSource_decomposition">
       <rdfs:label>media source decomposition of a segment</rdfs:label>
       <rdfs:subPropertyOf rdf:resource="cidoc:P106F.is_composed_of"/>
       <rdfs:domain rdf:resource="MultimediaContent"/>
       <rdfs:range rdf:resource="Segment"/>
</rdf:Property>
<rdf:Property rdf:ID="videoSegment_spatial_decomposition">
       <rdfs:label>spatial decomposition of a video segment</rdfs:label>
       <rdfs:subPropertyOf rdf:resource="spatial_decomposition"/>
       <rdfs:domain rdf:resource="VideoSegment"/>
       <rdfs:range rdf:resource="MovingRegion"/>
 </rdf:Property>
<rdfs:Class rdf:ID="VideoSegmentsOrStillRegions">
    <daml:unionOf rdf:parseType="daml:collection">
       <rdfs:Class rdf:about="VideoSegment"/>
       <rdfs:Class rdf:about="StillRegion"/>
    </daml:unionOf>
</rdfs:Class>
 <rdf:Property rdf:ID="videoSegment_temporal_decomposition">
       <rdfs:label>temporal decomposition of a video segment</rdfs:label>
       <rdfs:subPropertyOf rdf:resource="temporal_decomposition"/>
       <rdfs:domain rdf:resource="VideoSegment"/>
       <rdfs:range rdf:resource="VideoSegmentsOrStillRegions"/>
</rdf:Property>

<rdfs:Class rdf:ID="MovingOrStillRegions">
    <daml:unionOf rdf:parseType="daml:collection">
       <rdfs:Class rdf:about="MovingRegion"/>
       <rdfs:Class rdf:about="StillRegion"/>
    </daml:unionOf>
</rdfs:Class>
 <rdf:Property rdf:ID="videoSegment_spatio-temporal_decomposition">
       <rdfs:label>spatio-temporal decomposition of a video segment</rdfs:label>
       <rdfs:subPropertyOf rdf:resource="spatio-temporal_decomposition"/>
       <rdfs:domain rdf:resource="VideoSegment"/>
       <rdfs:range rdf:resource="MovingOrStillRegions"/>
</rdf:Property>
 <rdf:Property rdf:ID="videoSegment_mediaSource_decomposition">
       <rdfs:label>media source decomposition of a video segment</rdfs:label>
       <rdfs:subPropertyOf rdf:resource="mediaSource_decomposition"/>
       <rdfs:domain rdf:resource="VideoSegment"/>
       <rdfs:range rdf:resource="VideoSegment"/>
</rdf:Property>

<!-- MPEG-7 Format class -->

<rdfs:Class rdf:ID="Format">
	<rdfs:subClassOf rdf:resource="cidoc:E1.CRM_Entity"/>
</rdfs:Class>

	<rdf:Property rdf:ID="value">
		<rdfs:domain rdf:resource="Format"/>
		<rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/>
	</rdf:Property>

	<rdf:Property rdf:ID="unit">	
                <rdfs:domain rdf:resource="Format"/>
		<rdfs:range rdf:resource="cidoc:E58.Measurement_Unit"/>
	</rdf:Property>

	<rdf:Property rdf:ID="has_format">
		<rdfs:domain rdf:resource="cidoc:E31.Document"/>
		<rdfs:range rdf:resource="Format"/>
	</rdf:Property>

	<rdf:Property rdf:ID="is_format_of">
		<rdfs:domain rdf:resource="Format"/>
		<rdfs:range rdf:resource="cidoc:E31.Document"/>
	</rdf:Property>

<!-- MPEG-7 Visual and Audio features -->

<rdfs:Class rdf:ID="VisualFeature">
     <rdfs:subClassOf rdf:resource="cidoc:E73.Information_Object"/>
 </rdfs:Class>

 <rdf:Property rdf:ID="has_visual_feature">
       <rdfs:subPropertyOf rdf:resource="cidoc:P56F.bears_feature"/>
       <rdfs:domain rdf:resource="Image"/>
       <rdfs:domain rdf:resource="Video"/>
       <rdfs:domain rdf:resource="AudioVisual"/>
       <rdfs:domain rdf:resource="Multimedia"/>
       <rdfs:range rdf:resource="VisualFeature"/>
 </rdf:Property>

<rdfs:Class rdf:ID="AudioFeature">
     <rdfs:subClassOf rdf:resource="cidoc:E73.Information_Object"/>
 </rdfs:Class>

 <rdf:Property rdf:ID="has_audio_feature">
       <rdfs:subPropertyOf rdf:resource="cidoc:P56F.bears_feature"/>
       <rdfs:domain rdf:resource="Video"/>
       <rdfs:domain rdf:resource="AudioVisual"/>
       <rdfs:domain rdf:resource="Multimedia"/>
       <rdfs:range rdf:resource="AudioFeature"/>
 </rdf:Property>

 <rdf:Property rdf:ID="has_color">
       <rdfs:subPropertyOf rdf:resource="has_visual_feature"/>
       <rdfs:range rdf:resource="Color"/>
 </rdf:Property>

<rdfs:Class rdf:ID="Color">
      <rdfs:label>Color</rdfs:label>
      <rdfs:comment>Color of a visual resource</rdfs:comment>
     <rdfs:subClassOf rdf:resource="VisualFeature/>
 </rdfs:Class>

 <rdfs:Class rdf:ID="DominantColor">
      <rdfs:label>DominantColor</rdfs:label>
      <rdfs:comment>The set of dominant colors in an arbitrarily-shaped region.</rdfs:comment>
      <rdfs:subClassOf rdf:resource="Color"/>
  </rdfs:Class>
 <rdfs:Class rdf:ID="ScalableColor">
      <rdfs:label>ScalableColor</rdfs:label>
      <rdfs:comment>Color histogram in the HSV color space.</rdfs:comment>
      <rdfs:subClassOf rdf:resource="Color"/>
  </rdfs:Class>
 <rdfs:Class rdf:ID="ColorLayout">
      <rdfs:label>ColorLayout</rdfs:label>
      <rdfs:comment>Spatial distribution of colors.</rdfs:comment>
      <rdfs:subClassOf rdf:resource="Color"/>
  </rdfs:Class>
 <rdfs:Class rdf:ID="ColorStructure">
      <rdfs:label>ColorStructure</rdfs:label>
      <rdfs:comment>Describes color content and the structure of this content.</rdfs:comment>
      <rdfs:subClassOf rdf:resource="Color"/>
  </rdfs:Class>
 <rdfs:Class rdf:ID="GoFGoPColor">
      <rdfs:label>GoFGoPColor</rdfs:label>
      <rdfs:comment>Group of frames/pictures color descriptor.</rdfs:comment>
      <rdfs:subClassOf rdf:resource="ScalableColor"/>
  </rdfs:Class>

 <rdf:Property rdf:ID="has_timbre">
       <rdfs:subPropertyOf rdf:resource="has_audio_feature"/>
       <rdfs:range rdf:resource="Timbre"/>
 </rdf:Property>

<rdfs:Class rdf:ID="Timbre">
     <rdfs:subClassOf rdf:resource="AudioFeature/>
 </rdfs:Class>

 <rdfs:Class rdf:ID="InstrumentTimbre">
      <rdfs:subClassOf rdf:resource="Timbre"/>
  </rdfs:Class>


</rdf:RDF>
