如何将schema.org标记嵌入SVG? [英] How can I embed schema.org markup in SVG?
本文介绍了如何将schema.org标记嵌入SVG?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望为SVG文件添加语义,并希望使用schema.org术语. SVG是否具有执行此操作的语法?我的第一次尝试是:
I wish to add semantics to SVG files and would like to use schema.org terms. Does SVG have a syntax for doing this? My first attempt would be:
<svg:text xmlns:svg="xmlns="http://www.w3.org/2000/svg" x="100" y="200"
html:itemtype="http://schema.org/Person" xmlns:html="http://www.w3.org/1999/xhtml"
>Joe Soap</svg:text>
这将是有效的SVG,并在符合要求的工具中显示吗?并可以被搜索引擎识别schema.org标记?
Will this be valid SVG and display in conformant tools? and will the schema.org markup be recognized by search engines?
推荐答案
我从未尝试过,但是我想应该可以使用允许属性
I never tried it, but I guess it should be possible to use RDFa, as SVG Tiny 1.2 allows the attributes
-
about
-
content
-
datatype
-
property
-
rel
-
resource
-
rev
-
typeof
about
content
datatype
property
rel
resource
rev
typeof
(您可以使用 metadata
元素与 RDF/XML .)
这篇关于如何将schema.org标记嵌入SVG?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文