rdfjs / data-model-spec

RDF/JS: Data model specification – A specification of a low level interface definition representing RDF data independent of a serialized format in a JavaScript environment.
http://rdf.js.org/data-model-spec/
73 stars 12 forks source link

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

Open bergos opened 8 years ago

bergos commented 8 years ago

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

elf-pavlik commented 7 years ago

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 commented 5 years ago

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.