imreg:Region class
| A region of a photographic still image. |  |  |
| Label: | Region |
| Namespace: | Image regions |
| Status: | testing |
| Properties: | foaf:page (inherited)
foaf:name (inherited)
imreg:regionDepicts
imreg:coords
imreg:boundingBox
foaf:depiction (inherited)
|
| Superclasses: | no superclasses found (excluding equivalent classes) | | Subclasses: | imreg:Rectangle
imreg:Polygon
imreg:Circle
imreg:Ellipse
|
| Equivalent classes: | no equivalent classes found |
| |
<rdfs:Class rdf:about="http://www.w3.org/2004/02/image-regions#Region">
<rdfs:label>Region</rdfs:label>
<rdfs:comment>A region of a photographic still image.</rdfs:comment>
<vs:term_status>testing</vs:term_status>
</rdfs:Class>
imreg:Rectangle class
| A rectangular region of a photographic still image. |  |  |
| Label: | Rectangle |
| Namespace: | Image regions |
| Status: | testing |
| Properties: | foaf:page (inherited)
foaf:name (inherited)
imreg:regionDepicts (inherited)
imreg:coords (inherited)
imreg:boundingBox (inherited)
foaf:depiction (inherited)
|
| Superclasses: | imreg:Region
| | Subclasses: | no subclasses found (excluding equivalent classes) |
| Equivalent classes: | no equivalent classes found |
| |
<rdfs:Class rdf:about="http://www.w3.org/2004/02/image-regions#Rectangle">
<rdfs:label>Rectangle</rdfs:label>
<rdfs:comment>A rectangular region of a photographic still image.</rdfs:comment>
<vs:term_status>testing</vs:term_status>
<rdfs:subClassOf rdf:resource="http://www.w3.org/2004/02/image-regions#Region"/>
</rdfs:Class>
imreg:Polygon class
| A polygon-shaped region of a photographic still image. |  |  |
| Label: | Polygon |
| Namespace: | Image regions |
| Status: | testing |
| Properties: | foaf:page (inherited)
foaf:name (inherited)
imreg:regionDepicts (inherited)
imreg:coords (inherited)
imreg:boundingBox (inherited)
foaf:depiction (inherited)
|
| Superclasses: | imreg:Region
| | Subclasses: | no subclasses found (excluding equivalent classes) |
| Equivalent classes: | no equivalent classes found |
| |
<rdfs:Class rdf:about="http://www.w3.org/2004/02/image-regions#Polygon">
<rdfs:label>Polygon</rdfs:label>
<rdfs:comment>A polygon-shaped region of a photographic still image.</rdfs:comment>
<vs:term_status>testing</vs:term_status>
<rdfs:subClassOf rdf:resource="http://www.w3.org/2004/02/image-regions#Region"/>
</rdfs:Class>
imreg:Circle class
| A circular region of a photographic still image. |  |  |
| Label: | Circle |
| Namespace: | Image regions |
| Status: | testing |
| Properties: | foaf:page (inherited)
foaf:name (inherited)
imreg:regionDepicts (inherited)
imreg:coords (inherited)
imreg:boundingBox (inherited)
foaf:depiction (inherited)
|
| Superclasses: | imreg:Region
| | Subclasses: | no subclasses found (excluding equivalent classes) |
| Equivalent classes: | no equivalent classes found |
| |
<rdfs:Class rdf:about="http://www.w3.org/2004/02/image-regions#Circle">
<rdfs:label>Circle</rdfs:label>
<rdfs:comment>A circular region of a photographic still image.</rdfs:comment>
<vs:term_status>testing</vs:term_status>
<rdfs:subClassOf rdf:resource="http://www.w3.org/2004/02/image-regions#Region"/>
</rdfs:Class>
imreg:Ellipse class
| An ellipse-shaped region of a photographic still image. |  |  |
| Label: | Ellipse |
| Namespace: | Image regions |
| Status: | testing |
| Properties: | foaf:page (inherited)
foaf:name (inherited)
imreg:regionDepicts (inherited)
imreg:coords (inherited)
imreg:boundingBox (inherited)
foaf:depiction (inherited)
|
| Superclasses: | imreg:Region
| | Subclasses: | no subclasses found (excluding equivalent classes) |
| Equivalent classes: | no equivalent classes found |
| |
<rdfs:Class rdf:about="http://www.w3.org/2004/02/image-regions#Ellipse">
<rdfs:label>Ellipse</rdfs:label>
<rdfs:comment>An ellipse-shaped region of a photographic still image.</rdfs:comment>
<vs:term_status>testing</vs:term_status>
<rdfs:subClassOf rdf:resource="http://www.w3.org/2004/02/image-regions#Region"/>
</rdfs:Class>
imreg:region property
| A relation between a photographic still image and a region. |  |  |
| Label: | has region |
| Namespace: | Image regions |
| Status: | testing |
| Domain: | foaf:Image
|
| Range: | imreg:Region
|
| Superproperties: | no superproperties found (excluding equivalent properties) |
| Subproperties: | no subproperties found (excluding equivalent properties) |
| Equiv. properties: | no equivalent properties found |
| |
<rdf:Property rdf:about="http://www.w3.org/2004/02/image-regions#region">
<rdf:type rdf:resource="&owl;InverseFunctionalProperty"/>
<rdfs:label>has region</rdfs:label>
<rdfs:comment>A relation between a photographic still image and a region.</rdfs:comment>
<vs:term_status>testing</vs:term_status>
<rdfs:domain rdf:resource="http://xmlns.com/foaf/0.1/Image"/>
<rdfs:range rdf:resource="http://www.w3.org/2004/02/image-regions#Region"/>
</rdf:Property>
imreg:coords property
| The coordinates (or other details) of an image region. |  |  |
| Label: | coordinates |
| Namespace: | Image regions |
| Status: | testing |
| Domain: | imreg:Region
|
| Range: | rdfs:Literal |
| Superproperties: | no superproperties found (excluding equivalent properties) |
| Subproperties: | no subproperties found (excluding equivalent properties) |
| Equiv. properties: | no equivalent properties found |
| |
The property "coords" can be used with any image region, but the value syntax varies with the different region types. The top left corner of the image is used for the point of origin (0,0).
 A region of type "Rectangle" uses two (space-separated) pairs of comma-separated integers, (upper_left_x,upper_left_y lower_right_x,lower_right_y):
<foaf:Image rdf:about="http://www.example.com/foo.jpg"> <imreg:hasRegion> <imreg:Rectangle> <!-- upper_left_x=10px, upper_left_y=20px, lower_right_x=90px, lower_right_y=60px --> <imreg:coords>10,20 90,60</imreg:coords> </imreg:Rectangle> </imreg:hasRegion> <foaf:Image>

A region of type "Circle" is described by three comma-separated integers: the coordinate of the center of the circle and a radius.
... <imreg:Circle> <!-- center_x=50px, center_y=60px, radius=40px --> <imreg:coords>50,60,40</imreg:coords> </imreg:Rectangle> ...

A list of points is used for Polygons. Each point consists of a pair of (comma-separated) integers. The points are separated by a space. The following example describes a polygon which is equivalent to the rectangle mentioned above.
... <imreg:Polygon> <!-- point1={10,20}, point2={90,20}, point3={90,60}, point4={10,60} --> <imreg:coords>10,20 90,20 90,60 10,60</imreg:coords> </imreg:Polygon> ...

The coords value for an Ellipse consists of four comma-separated values. In this context "40,60,20,15" means: center_x=40, center_y=60, x_radius=20, y_radius=15:
... <imreg:Ellipse> <!-- center_x=40px, center_y=60px, x_radius=20px, y_radius=15px --> <imreg:coords>40,60,20,15</imreg:coords> </imreg:Ellipse> ...
RDF-producing tools can add boundingBox information when circles, ellipses or polygons are used to describe regions. Consuming apps that don't support these shapes can then try to display the rectangular bounding box.
|
<rdf:Property rdf:about="http://www.w3.org/2004/02/image-regions#coords">
<rdfs:label>coordinates</rdfs:label>
<rdfs:comment>The coordinates (or other details) of an image region.</rdfs:comment>
<vs:term_status>testing</vs:term_status>
<rdfs:domain rdf:resource="http://www.w3.org/2004/02/image-regions#Region"/>
<rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/>
</rdf:Property>
imreg:regionDepicts property
| A relation between a region of a photographic still image and an object it depicts. |  |  |
| Label: | depicts |
| Namespace: | Image regions |
| Status: | testing |
| Domain: | imreg:Region
|
| Range: | rdfs:Resource |
| Superproperties: | no superproperties found (excluding equivalent properties) |
| Subproperties: | no subproperties found (excluding equivalent properties) |
| Equiv. properties: | no equivalent properties found |
| |
<rdf:Property rdf:about="http://www.w3.org/2004/02/image-regions#regionDepicts">
<rdfs:label>depicts</rdfs:label>
<rdfs:comment>A relation between a region of a photographic still image and an object it depicts.</rdfs:comment>
<vs:term_status>testing</vs:term_status>
<rdfs:domain rdf:resource="http://www.w3.org/2004/02/image-regions#Region"/>
<rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/>
</rdf:Property>
imreg:boundingBox property
| The coordinates of a bounding box of a region. |  |  |
| Label: | boundingBox |
| Namespace: | Image regions |
| Status: | testing |
| Domain: | imreg:Region
|
| Range: | rdfs:Literal |
| Superproperties: | no superproperties found (excluding equivalent properties) |
| Subproperties: | no subproperties found (excluding equivalent properties) |
| Equiv. properties: | no equivalent properties found |
| |
boundingBox is an optional property that may ease working with certain image regions (e.g. polygons). The value pattern is "x1,y1,width,height" with x1,y1 being the upper left corner of the boundig box (and 0,0 being the top left corner of the image).
 Note that this syntax is different from the one used with the coords property, which is the default property to describe rectangular regions. |
<rdf:Property rdf:about="http://www.w3.org/2004/02/image-regions#boundingBox">
<rdfs:label>boundingBox</rdfs:label>
<rdfs:comment>The coordinates of a bounding box of a region.</rdfs:comment>
<vs:term_status>testing</vs:term_status>
<rdfs:domain rdf:resource="http://www.w3.org/2004/02/image-regions#Region"/>
<rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/>
</rdf:Property>
|