identifiers-org / cloud-ws-metadata

Metadata extraction Web Service
MIT License
0 stars 0 forks source link

Multiple JSON-LD entries #12

Closed mbdebian closed 6 years ago

mbdebian commented 6 years ago

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"" } ...

mbdebian commented 6 years ago

This is now a supported use case in the metadata service.