Skip to content

Multivalued or union sh:dataType #160

Closed
@VladimirAlexiev

Description

@VladimirAlexiev

Some literal (attribute) props naturally admit a variety of datatypes, eg

SHACL can express this with sh:or property shapes, but it gets tedious.
Can we allow multiple values of sh:dataType?

Alternatively, we could think of some synthetic "union datatypes", eg

  • sh:dateOrDateTimeStamp
  • sh:stringOrLangString (rdf:PlainLiteral means the same)
  • sh:natural, sh:nonNegativeNatural, etc

We actually have the first two in Ontotext SOML (GraphQL), which in SHACL is expanded to sh:or

Metadata

Metadata

Labels

CoreFor SHACL 1.2 Core spec

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions