On Sat, 2004-07-03 at 23:40, Jon Phillips wrote:
Right now in Inkscape and OCAL graphics files meta-data is file wide, yet how can we maintain meta-data for discrete objects and groups of objects?
If you want to include RDF statements about e.g. a rect with the ID "rect321", you simply use rdf:about="#rect321" on those RDF statements that describe it to make that XML node the subject.
[ rdf:about="" is used to indicate the current document as a whole as a subject, though I am not 100% sure that is correct usage ]
If you want (this is not required -- RDF is not context-sensitive at all), you can make a separate RDF block and put it in a <metadata> child of the object/group/whatever.
(It might be more managable to keep all our RDF in one place in the document to the degree we can help it though, and I don't think we shouldn't move pre-existing RDF around though except perhaps when modifying it.)
I wonder how we can have it so that when an object or collection of objects is copied and pasted, imported and transformed, that its specific meta-data (beyond specified graphics attributes) can be copied along with itself (making a media object). In the future this will be vital for algorithmic composition of graphics.
As you may know, conceptually, all available RDF statements exist as an amorphous pool of (subject, predicate, object) triples.
All we really need is an API for things like "give me a list of RDF triples in this document describing this subject (i.e. an SVG object)" and "merge this list of triples into this document".
-mental