ISSUE-14: Schema.org booleans (True/False) vs RDF 'true/false'

boolean values

Schema.org booleans (True/False) vs RDF 'true/false'

State:
CLOSED
Product:
Feedback on Schema.org
Raised by:
Dan Brickley
Opened on:
2012-04-20
Description:
From Martin Hepp in https://docs.google.com/document/pub?id=1Kx63gW9DBky1j97Jpwl3dU9k0pKPSgCT3EntTVvGjX4

You have to clarify the usage of http://schema.org/Boolean. The schema.org sponsors should clarify whether to use the RDF-compatible text (true/false) or the
URIs http://schema.org/True and http://schema.org/False.
For now, one would assume that you use the two values as individuals, e.g.
<link itemprop=”propertyname” href=”http://schema.org/True” />
<link itemprop=”propertyname” href=”http://schema.org/False” />
which is incompatible with the RDFa patterns and also less concise.
I suggest
<meta itemprop=”propertyname” content=”true” >
<meta itemprop=”propertyname” content=”false” >


Proposed change:

A simple text amendment for http://schema.org/True, http://schema.org/False, and http://schema.org/Boolean would do the trick.:

Note: The recommended use of this datatype is with a string “true” or “false” indicating the value of the respective property.
Example:
<div itemscope itemtype="http://schema.org/Book">
<span itemprop="name">The Catcher in the Rye</span>
Family-friendly: <meta itemprop="isFamilyFriendly" content="true"> yes
</div>

Proposed action: Add this note to http://schema.org/Boolean
Related Actions Items:
No related actions
Related emails:
  1. Re: Syntax for boolean in schema.org? (from dan@coffeecode.net on 2013-07-22)
  2. Syntax for boolean in schema.org? (from martin.hepp@ebusiness-unibw.org on 2013-07-22)
  3. Re: two new issues: schema.org booleans; xsd Time and DateTime (from daniel@google.com on 2012-05-15)
  4. RE: For review: Schema.org / Good Relations integration (from jrhyne@thematix.com on 2012-05-11)
  5. Re: For review: Schema.org / Good Relations integration (from eric@semanticweb.com on 2012-05-11)
  6. Re: For review: Schema.org / Good Relations integration (from Jay.Myers@bestbuy.com on 2012-05-11)
  7. For review: Schema.org / Good Relations integration (from danbri@danbri.org on 2012-05-11)
  8. Re: two new issues: schema.org booleans; xsd Time and DateTime (from danbri@danbri.org on 2012-05-11)
  9. Re: two new issues: schema.org booleans; xsd Time and DateTime (from daniel@google.com on 2012-04-20)
  10. two new issues: schema.org booleans; xsd Time and DateTime (from danbri@danbri.org on 2012-04-20)
  11. webschema-ISSUE-14 (boolean values): Schema.org booleans (True/False) vs RDF 'true/false' [Feedback on Schema.org] (from sysbot+tracker@w3.org on 2012-04-20)

Related notes:

I talked to Ivan Herman, and we both thing simple text values 'true', 'false' ought to work ok in RDFa Lite as well as Microdata. It might not be formally datatyped but I think that's bearable.

I took a look for properties that reference Boolean in the schema:


TellyClub:alpha danbri$ grep -i Boolean _schema.nt
<http://schema.org/isFamilyFriendly> <http://schema.org/range> <http://schema.org/Boolean> .
<http://schema.org/isDownloadable> <http://schema.org/range> <http://schema.org/Boolean> .
<http://schema.org/representativeOfPage> <http://schema.org/range> <http://schema.org/Boolean> .
<http://schema.org/Boolean> <http://www.w3.org/2000/01/rdf-schema#label> "Boolean" .
<http://schema.org/Boolean> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://schema.org/DataType> .
<http://schema.org/Boolean> <http://www.w3.org/2000/01/rdf-schema#comment> "Boolean: True or False." .
<http://schema.org/Boolean> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
<http://schema.org/requiresSubscription> <http://schema.org/range> <http://schema.org/Boolean> .

...for the record.

Dan Brickley, 9 May 2012, 16:30:28

Migrated to https://github.com/schemaorg/schemaorg/issues/130

Dan Brickley, 21 Jan 2015, 13:11:38

Display change log ATOM feed


Chair, Staff Contact
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: 14.html,v 1.1 2019/10/07 07:54:35 carcone Exp $