[topicmapmail] Should resourceData have a MIME type?

Kal Ahmed kal@techquila.com
Mon, 13 Jan 2003 15:49:32 +0000


On Monday 13 January 2003 15:17, Nikita Ogievetsky wrote:
> Thinking about this issue again I must say that neither occurrence type=
,
> nor scope, nor variant (which is not there yet) are the proper syntacti=
cal
> places
> for expressing resourceData MIME type.
> I am saying this because all off the above allow expressing properties =
of
> occurrence assertion. And MIME type is the property of the resource its=
elf,
> not occurrence!
>

Thats a good point. We discussed this on IRC and it seems that we are=20
converging on reification as the solution here. I agree with you that wha=
t=20
should be reified is the occurrence resource itself (if you have a resour=
ce=20
rather than resource data) or the resourceData element (if your data is=20
contained in-line).

Of course, we should have PSIs for "resource-has-media-type" and for MIME=
=20
types in general.

We also discussed how this might be related to datatyping - it feels at l=
east=20
as though data-typing is a similar issue and that a similar approach *mig=
ht*=20
solve that too - although only for simple data types.

In addition, it would appear that TMCL needs to take this into considerat=
ion=20
as it would be desirable to be able to constrain the media/data type of a=
=20
class of occurrences (e.g. all "Picture" occurrences must be a PNG, GIF o=
r=20
JPG image; all "Age" occurrences must be media-type=3Dtext and=20
data-type=3Dinteger)

Cheers,

Kal
--=20
Kal Ahmed, techquila.com
XML and Topic Map Consultancy

e: kal@techquila.com
p: +44 7968 529531
w: www.techquila.com