ESIPFed / science-on-schema.org

science-on-schema.org - providing guidance for publishing schema.org as JSON-LD for the sciences
Apache License 2.0
113 stars 33 forks source link

confusion about schema.org datatypes #176

Open VladimirAlexiev opened 3 years ago

VladimirAlexiev commented 3 years ago

https://github.com/schemaorg/schemaorg/issues/1781 argues that schema.org datatypes should never be used, in favor of XSD datatypes.

https://github.com/ESIPFed/science-on-schema.org/blob/master/validation/shapegraphs/soso_common_v1.2.2.ttl shows confusion about such datatypes, using eg sh:class SO:Number. See https://github.com/schemaorg/schemaorg/issues/1781#issuecomment-896672283 for details.

smrgeoinfo commented 3 years ago

so the recommendation would be that that shape should perhaps look like this:

sh:or (
        [    sh:nodeKind sh:Literal ;  ]
        [  sh:datatype xsd:decimal;  ]
    );

SHACL spec seems to indicate a Literal is a value with a declared datatype that could be any rdf datatype (iri, URL, number string, etc.), so isn't 'or sh:datatype xsd:decimal' redundant?

VladimirAlexiev commented 2 years ago

@smrgeoinfo