data-model-spec icon indicating copy to clipboard operation
data-model-spec copied to clipboard

Do we need different stages of compatibility (e.g. support for variables)?

Open bergos opened this issue 8 years ago • 2 comments

Variable support is optional. Can we just say variables are not supported if the constructor is undefined?

bergos avatar Feb 04 '16 21:02 bergos

Maybe we should mention that implementation not supporting Variable (eg. all RDF1.1 serializes) MAY/SHOULD/MUST throw error if they encounter it? https://gitter.im/rdfjs/Representation-Task-Force?at=58c22b991465c46a560ff842

elf-pavlik avatar Mar 10 '17 04:03 elf-pavlik

Looking at reference implementation: https://github.com/rdfjs/data-model/blob/master/lib/variable.js

Do we really need factories which don't implement DataFactory.variable() ?

We could just remove This method is optional. from the spec.

elf-pavlik avatar Feb 14 '19 22:02 elf-pavlik