Skip to content

Improve model for schema:DataType #218

Closed

Description

@jaw111

http://schema.org/DataType

In relation to #217 it would seem from the current hierarchy that schema:DataType is the super-class of schema:Boolean, schema:Date, etc.

This would infer that any literal value is a schema:DataType, which seems illogical.

It would seem more logical that:

  • the existing datatype classes have type schema:DataType rather than be a sub-class of it
  • a top-level class schema:Literal class is introduced (analogous to rdfs:Literal) of which all the existing data types are a sub-class

The result should be something like:

schema:DataType a rdfs:Class ;
  rdfs:subClassOf schema:Class .

schema:Literal a schema:DataType .

schema:Boolean a schema:DataType ;
  rdfs:subClassOf schema:Literal .

schema:Date a schema:DataType ;
  rdfs:subClassOf schema:Literal .

Activity

  1. changed the title [-]Improve model for schema:Datatype[/-] [+]Improve model for schema:DataType[/+] on Jan 7, 2015
  2. danbri commented on Jan 21, 2015

    @danbri
    Contributor

    @rvguha can you take a look?

  3. added this to the sdo-gozer release milestone on Jan 21, 2015
  4. rvguha commented on Apr 17, 2015

    @rvguha
    Contributor

    Yes, jaw111 is absolutely right. This does mean that DataType is a class of classes.

  5. reopened this on Apr 17, 2015
  6. danbri commented on Apr 17, 2015

    @danbri
    Contributor

    Thanks. Re-opened as I'm only closing issues once we've addressed them. We'll need to tweak schema.rdfa here...

  7. danbri commented on Apr 30, 2015

    @danbri
    Contributor

    The vocab side of this is fixed in sdo-gozer, alongside #130. UI/python consequences of the new structure are tracked as #463.

  8. added a commit that references this issue on Apr 30, 2015
    dc7e048
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

schema.org vocabGeneral top level tag for issues on the vocabulary

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions