Closed valentinedwv closed 1 year ago
"error checking for valid json: Error in unmarshaling json: invalid character 'O' looking for beginning of value"
Opencore data has an interesting JSONLD form: view-source:https://opencoredata.org/id/csdco/do/286e7aa96cbd549a803bf849ee8fbcc44a1ddb60c0daa674802c24644e3fcedb.jsonld
[ { "@graph": [ { "@id": "_:bbj6t9j7tr9b9lopa55ng", "@type": [ "https://schema.org/PropertyValue" ], "https://schema.org/propertyID": [ { "@value": "SHA256" } ], "https://schema.org/value": [ { "@value": "286e7aa96cbd549a803bf849ee8fbcc44a1ddb60c0daa674802c24644e3fcedb"} ] }, { "@id": "https://opencoredata.org/id/csdco/do/286e7aa96cbd549a803bf849ee8fbcc44a1ddb60c0daa674802c24644e3fcedb", "@type": [ "http://www.schema.org/DigitalDocument" ], "https://schema.org/additionType": [ { "@id": "https://opencoredata.org/voc/csdco/v1/RGBData" } ],"https://schema.org/dateCreated": [ {"@value": "2013-08-21" } ], "https://schema.org/description": [ { "@value": "Digital object of type RGB Image Data named RIETI-RIP13-1B-1B-1-W.csv for CSDCO project RIETI" } ], "https://schema.org/encodingFormat": [ { "@value": "text/csv; charset=utf-8" }], "https://schema.org/identifier": [ {"@id": "_:bbj6t9j7tr9b9lopa55ng"} ], "https://schema.org/isRelatedTo": [ { "@value": "RIETI" } ], "https://schema.org/license": [ { "@id": "http://example.com/cc0.html"} ], "https://schema.org/name": [ { "@value": "RIETI-RIP13-1B-1B-1-W.csv"} ], "https://schema.org/url": [ { "@id":"https://opencoredata.org/id/csdco/do/286e7aa96cbd549a803bf849ee8fbcc44a1ddb60c0daa674802c24644e3fcedb" } ] } ], "@id":"https://opencoredata.org/objectgraph/id/286e7aa96cbd549a803bf849ee8fbcc44a1ddb60c0daa674802c24644e3fcedb" }]
This has to do with that the #192 opencore is sending back HTML and not json.
"error checking for valid json: Error in unmarshaling json: invalid character 'O' looking for beginning of value"
Opencore data has an interesting JSONLD form: view-source:https://opencoredata.org/id/csdco/do/286e7aa96cbd549a803bf849ee8fbcc44a1ddb60c0daa674802c24644e3fcedb.jsonld