I've had a look at data coming from the metadata service running over the identifiers.org dataset, and there are cases where it "complains" of multiple JSON-LD entries, but it looks like they are legitimate, so we should update the service to accept those entries.
As an example of a completely valid use case:
"FAILED to fetch metadata for URL 'http://reactome.org/content/detail/R-HSA-201451', because 'MULTIPLE JSON-LD entries found in the header of URL 'http://reactome.org/content/detail/R-HSA-201451', entries: [HtmlScript[<script type=""application/ld+json"">
{
""@context"": ""//schema.org"",
""@type"": ""WebSite"",
""url"": ""//reactome.org/"",
""potentialAction"": {
""@type"": ""SearchAction"",
""target"": ""//reactome.org/content/query?q={term}"",
""query-input"": ""required name=term""
}
}
], HtmlScript[<script type=""application/ld+json"">
{
""@context"": ""//schema.org"",
""@type"": ""Organization"",
""url"": ""//reactome.org"",
""logo"": ""//reactome.org/templates/favourite/images/logo/logo.png"",
""email"": ""help@reactome.org""
}
...
I've had a look at data coming from the metadata service running over the identifiers.org dataset, and there are cases where it "complains" of multiple JSON-LD entries, but it looks like they are legitimate, so we should update the service to accept those entries.
As an example of a completely valid use case: "FAILED to fetch metadata for URL 'http://reactome.org/content/detail/R-HSA-201451', because 'MULTIPLE JSON-LD entries found in the header of URL 'http://reactome.org/content/detail/R-HSA-201451', entries: [HtmlScript[<script type=""application/ld+json""> { ""@context"": ""//schema.org"", ""@type"": ""WebSite"", ""url"": ""//reactome.org/"", ""potentialAction"": { ""@type"": ""SearchAction"", ""target"": ""//reactome.org/content/query?q={term}"", ""query-input"": ""required name=term"" } } ], HtmlScript[<script type=""application/ld+json""> { ""@context"": ""//schema.org"", ""@type"": ""Organization"", ""url"": ""//reactome.org"", ""logo"": ""//reactome.org/templates/favourite/images/logo/logo.png"", ""email"": ""help@reactome.org"" } ...