ResearchObject / ro-crate

Research Object Crate
https://w3id.org/ro/crate/
Apache License 2.0
87 stars 34 forks source link

Requirements for every entity #225

Closed ptsefton closed 1 year ago

ptsefton commented 1 year ago

Is the @type property required?

Discussed in https://github.com/ResearchObject/ro-crate/discussions/224

Originally posted by **Code42Cate** November 27, 2022 Hey everyone, I've been reading the RO-Crate 1.1 specification and was wondering if the `@type` property is required on every entity? I can not find anything clearly stating this, I also looked into the JSON-LD standard. No examples in the specification have an entity without `@type`, but I found some entities in ROHub crates that do not have them. Thank you for your help :) Cheers, Jonas
stain commented 1 year ago

I would suggest we modify this for RO-Crate 1.2 to be explicit, so that every entity MUST have at least @type and SHOULD have name. If no appropriate type is available, you can use Thing (anything) or WebPage (if you're pointing to a page) or DefinedTerm (if it's a semantic concept defined elsewhere)

simleo commented 1 year ago

ro-crate-py already requires entities to have a @type

stain commented 1 year ago

Need a new generic Requirements for every entity section right after data/context entity, perhaps this can also suggest that any other schema.org properties and types can be used. Or does this fit into the JSON-LD appendix?

Current Table of contents for 1.2-DRAFT:

stain commented 1 year ago

260 is adding it to the "Metadata of the RO-Crate" section