duraspace / pcdm

Portland Common Data Model
http://pcdm.org/models
Apache License 2.0
90 stars 11 forks source link

Example capturing METS stuctural metadata #55

Closed chmayo closed 8 years ago

chmayo commented 8 years ago

JSON-LD sample created to capture collection structure originally stored in a METS XML file

escowles commented 8 years ago

This looks great -- just two small fixes to make sure the memberOf values are URIs instead of literals.

escowles commented 8 years ago

Thanks for the update, but I think the syntax isn't quite right. I think it needs to have the "@id" key added.

If it helps, I generally plug JSON-LD into an RDF converter to convert it to Turtle when I review it. This helps catch syntax errors, and I generally find Turtle easier to understand.

chmayo commented 8 years ago

Right, I'm sorry, misread the comment. I blame lack of coffee. Thanks for the suggestion; will the converter throw useful errors? I'm afraid I'm not any more familiar with Turtle than I am with JSON, I'm primarily a Python user.

On Mon, Jun 20, 2016 at 9:40 AM, Esmé Cowles notifications@github.com wrote:

Thanks for the update, but I think the syntax isn't quite right. I think it needs to have the "@id https://github.com/id" key added.

If it helps, I generally plug JSON-LD into an RDF converter http://www.easyrdf.org/converter to convert it to Turtle when I review it. This helps catch syntax errors, and I generally find Turtle easier to understand.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/duraspace/pcdm/pull/55#issuecomment-227144689, or mute the thread https://github.com/notifications/unsubscribe/APW373Co4qV-vYe34rqVgMU-90go0-Mxks5qNphGgaJpZM4I2upV .

Christine Mayo Digital Production Librarian Thomas P. O'Neill, Jr. Library Boston College christine.mayo@bc.edu

escowles commented 8 years ago

No, I'm afraid it won't generate very good error messages. You could also use the JSON-LD Playground or a JSON syntax checker like JSON Lint.

escowles commented 8 years ago

👍