2
我試圖把Schema.org放在網站上。首先,我製作了JSON-LD,但該網站在head
元素中不允許任何script
。然後我將它轉換爲下面的RDF/XML格式。我應該在網站上放置RDF/XML Schema.org代碼?
現在,我應該把這個網站放在Google上來閱讀。我應該放入head
元素嗎?
<?xml version="1.0" encoding="utf-8" ?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:schema="http://schema.org/">
<schema:Organization rdf:nodeID="genid1">
<schema:name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">National Public Radio</schema:name>
<schema:sponsor>
<schema:Organization>
<schema:name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">GloboCorp</schema:name>
<schema:url rdf:resource="http://www.example.com/"/>
</schema:Organization>
</schema:sponsor>
<schema:url rdf:resource="http://npr.org"/>
</schema:Organization>
</rdf:RDF>