ResearchObject / ro-crate

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

Representation of boolean values #269

Open simleo opened 11 months ago

simleo commented 11 months ago

Schema.org has this example for https://schema.org/isAccessibleForFree:

{
        "@context": "https://schema.org",
        "@type": "TouristAttraction",
        "name": "Hyde Park",
        "description": "It's one of nine royal parks of London.",
        "url": "http://www.royalparks.org.uk/parks/hyde-park",
        "isAccessibleForFree": true
}

I.e., it uses the JSON boolean directly. The RO-Crate spec also does that in the workflow example:

  "valueRequired": true

However, there's also https://schema.org/True and https://schema.org/False. Is any / all of these (see #268) also ok?

  "valueRequired": {"@id": "https://schema.org/True"}
  "valueRequired": "https://schema.org/True"
  "valueRequired": "True"