Closed RayPlante closed 3 years ago
I saw application/ld+json script in
but no script in except Google Analytics. In the script in I only saw publisher. Didn't see url, name, creator, or maintainer.Not sure if I understood your instruction correctly... The script also attached. SchemaOrgScript.txt
This PR addresses ODD-931 ("schema.org") which calls for schema.org metadata (converted from NERDm) to be embedded into landing pages. This will enable our landing pages to be more readily discovered by Google Dataset. This implementation has been validated using Google's checker.
In this implementation, additional metadata formats can embedded into the landing page by list the format's label in the configuration parameter,
embedmetadata
. Currently, only one extra format is supported: "schema.org". The extra metadata renderings will appear within<script>
elements within the<head>
section of the HTML. (For consistency, the embeded NERDm metadata has been moved the<head>
section as well, instead with the<body>
.To test under oar-docker, deploy branch
feature/ODD-931-schema-org
for theconfigserver
container as well as forpubpdr
. After building and launching, view the source for the landing pages, confirm the following:<script>
element within the<head>
section<script>
element hasid="NERDm#Resource:
id"
. and a content type set toapplication/ld+json
<body>
and has a content type set toapplication/ld+json
@type
property is set to"Dataset"
and has values forurl
,name
,publisher
,creator
, andmaintainer