Re: Body as svg code ?

Dear Etienne,

That's exactly the way to do it :)

Rob

On Thu, Nov 9, 2017 at 12:44 PM, Etienne Fréjaville <efreja@wanadoo.fr>
wrote:

> Dear Web Annotation users,
>
> I’m thinking of using the Web Annotation Model to annotate documents, not
> only with text but with embedded images captured as svg fragments.
> In fact I want to do exactly what is described at § 3.2.4 of the spec :
> "Embedded Textual Body" : Having a body created (but as a SVG element) at
> the same time as the Annotation, without a separate IRI.
>
>
>
> As apparently the “value” attribute is only allowed with the type
> TextualBody, can I write something like:
>
>
>
> "body": {
>
>      "type": "TextualBody",
>
>      "value": "<svg> … some SVG code …</svg>",
>
>      "format": "image/svg+xml"
>
> },
>
>
>
> Or is there some other way to achieve this ?
>
>
>
> Best regards.
>
>
>
> Etienne
>



-- 
Rob Sanderson
Semantic Architect
The Getty Trust
Los Angeles, CA 90049

Received on Thursday, 9 November 2017 21:11:34 UTC