Re: typing named nodes/blank nodes/literals

Dear all,

Thanks for your input on this issue.
We have settled on .termType.
A Term is conceptually a superclass of Node.
For example: a list is an RDF term, but not a node.
A literal is a node, and hence also a term.

Follow-up question: there's still uncertainty
about the value of the .termType property.
It will be a string, but options include:

a) Have it the same as the interface name.
Easy, but might be long, capitalized, etc.

b) Have something shorter, like
"iri", "blank", "literal", "variable".
Faster to type, but needs 2 constants per term type
(interface name and string name).

What would you suggest?

Your input on this is appreciated by 17 December,
so we can discuss it in the call on 18 December.
Status is tracked on GitHub:
https://github.com/rdfjs/representation-task-force/issues/3

Best,

Ruben

Received on Friday, 11 December 2015 16:18:54 UTC