- From: Charles McCathieNevile <charles@w3.org>
- Date: Fri, 11 Oct 2002 10:43:43 -0400 (EDT)
- To: Danny Ayers <danny666@virgilio.it>
- cc: Emmanuel Pietriga <epietriga@yahoo.fr>, Diego Garcia <diego_garcia77@hotmail.com>, <www-rdf-interest@w3.org>
On Fri, 11 Oct 2002, Danny Ayers wrote: > (SVG is the default namespace) > > <g id="edges"> > <g id="e1"> > <line y2="155" marker-end="url(#triangle)" x1="113" x2="116" >y1="97"/> > <text class="" transform="translate(115,123)"> > strikes > </text> > </g> >... > > <g id="vertices"> > <g id="v1" transform="translate(246,28)"> > <rect x="-50" width="100" y="-15" height="30" class="vertex"/> > <text> > hook > </text> > </g> >... > >The point about which arcs are connecting which nodes could perhaps be got >around with a single metadata element in the edges maybe <xxx:edge >xxx:source="v1" xxx:target="v2"/>. Or neater perhaps using XML nesting/SVG >grouping (SVG should maintain order, so I guess you could say the first >contained element is the source and the second the target). > >However, I spent quite a few fruitless hours trying to get some nice inline >metadata in the SVG, but after a bit gave up and had the RDF at the end of >the same document (in a <metadata> element), which was looking something >like this : Do you mean had a hard time getting the tool to put the metadata in the right place, or hard time figuring the syntax? If the second, I used something like <g id="edges"> <g id="e1"> <metadata><rdf:Description rdf:about="#e1"> <ends:connects> <rdf:Bag><rdf:li rdf:resource="#v1"/> <rdf:li rdf:resource="#v2"/></rdf:Bag> </ends:connects></rdf:Description></metadata> <line y2="155" marker-end="url(#triangle)" x1="113" x2="116" y1="97"/> <text class="" transform="translate(115,123)"> strikes </text> </g> ... <g id="vertices"> <g id="v1" transform="translate(246,28)"> <rect x="-50" width="100" y="-15" height="30" class="vertex"/> <text> hook </text> </g> I like your syntax better (it is explicit about whether the things at the end are a Subject or object - you could even use rdf:subject for that I think). But I am not sure why the metadata is hard to get inline - presumably you have a representation of the triples, and so you can add metadata elements to anything that represents an rdf:predicate ? Or am I missing something? Cheers Chaals
Received on Friday, 11 October 2002 10:43:49 UTC