-
Notifications
You must be signed in to change notification settings - Fork 844
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check/Fix status of True and False #130
Comments
My reasoner treats schema:True/False, literals with datatype schema:Boolean or xsd:boolean, or text values of "true" or "false' as matching properties with a range of schema:Boolean, FWIW. Logically, it doesn't really matter if they are subclasses or instances, but I would encourage making them instances. |
For reference,
Closing nearby duplicate report #226 (thanks @sesuncedu) |
Also noting from https://www.w3.org/2011/webschema/track/issues/14 there are reasonable questions about the actual property values. Whether 'true', 'false' literals should be documented as acceptable. I won't open another issue as it is better to get a unified understanding here. Copying in Martin Hepp's original comments:
|
Also Migrating notes from W3C:
|
Looks fine. On Wed, Jan 21, 2015 at 5:11 AM, Dan Brickley notifications@github.com
|
Status quo looks fine, or the suggestion to avoid having them as subtypes? |
The only possible member of the extension of class schema:True is the Does the sentence "The subclass assertions for True and False should be |
Sorry, what I meant was that we should have: typeOf(True, Boolean) and On Wed, Jan 21, 2015 at 6:58 AM, Dan Brickley notifications@github.com
|
For #130 Note that there is not currently any navigation from a type to its instances, except for Enumeration. I tried using Enumeration but ran into HTML formatting issues, commented that out for now.
I've fixed the raw modeling. There are some HTML navigation consequences to address but I'll file that separately. Closing this one - thanks! |
So, it might be time to bite the bullet and do this more correctly. Boolean, Integer, etc. are classes, i.e., typeOf(Boolean, Class). They are What is DataType itself? Since instances of it are classes, it has to be a guha On Wed, Jan 21, 2015 at 8:31 AM, Guha guha@google.com wrote:
|
Re-opening w.r.t. "more correctly" (and related #218). Here is what we have in the pending release:
Proposal is:
|
Ping @rvguha - can you clarify 'more correctly' vs what we have now, as summarised above? |
What I meant was that it is time for us to do it the way more expressive systems do it and have subclasses of Class. Exactly the way you list it above. |
Thanks. In that case I believe we ought to be good to go. This is in the current repo:
... i.e. regular treatment of our 6 datatypes as subclasses of DataType. For completeness we could add the assertion that "DataType rdfs:subClassOf rdfs:Class", although that's implied by subtyping of it. Boolean was special in that its members are actually enumerated as schema.org terms; this is not the case for Text, Date, Number, Time or DateTime. I believe the only Boolean-specific issues left are regarding navigating between the Boolean type and its enumerated members, True and False. That is tracked as #433. It does leave one minor modeling-related issue: Should we say that Boolean is also an Enumeration and try to re-use front-end display code, or adapt the site navigation specifically for this case? When I tested this the display was screwed up, but I've not investigated fully why yet. I'll track that at #433 and close this issue. Opinions (here or there) on whether we consider Boolean an Enumeration are welcomed. Default will be to do whatever is easiest. |
I'm sorry - I misread this. Reviewing #218 I see now that we have Boolean/Time/etc subClassOf DataType instead of 'type DataType'. Will fix. |
…tributes. This is for cases where we want to give multiple types in the schema config, without verbosity. This update also takes care to normalize the use of "rdf:type" in @Property to create the exact same internal structure, i.e. canonicalize to http://schema.org/typeOf. Intent is to avoid subtle bugs where we have two kinds of type triple depending on which piece of RDFa syntax is used. Required for #218 and #130 cleanup of meta-model.
Ok, here is what we now have in the next pending release (sdo-gozer):
This has now somewhat messed up the site navigation that we have in http://schema.org/DataType, since 'more specific types' (i.e. subtypes) list is empty. I also had to make some changes to our RDFa (hack)parser to support whitespace-separated multiple types in @typeof, and/or use of @Property with rdf:type. Update: also added:
|
I believe the raw schema/vocab aspect is settled (and documented briefly in docs/releases.html). See #463 for UI/python fixes required to make this navigable. |
http://schema.org/True
http://schema.org/False
"One thing, though: In the current version of schema.org, False and True are subtypes of Boolean. They should be instances / enumerated values."
Mostly recently pointed out by Martin Hepp, http://lists.w3.org/Archives/Public/public-vocabs/2014Sep/0191.html
(There's also the issue that such values very often show up as literals in data, even if they should be URIs. Could either try to fix documentation to encourage URI use, or document this as an 'expect the unexpected' pattern.)
The text was updated successfully, but these errors were encountered: