Re: typing named nodes/blank nodes/literals

On 12/11/2015 07:44 PM, Kingsley Idehen wrote:
> On 12/11/15 11:18 AM, Ruben Verborgh wrote:
>> 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?
> My vote would be for:
> 
> #b)
> 
> As in:
> 
> "iri", "blank", "literal", "variable".
jsonld.js uses

"IRI", "blank node", "literal"

which seems very much in same lines

https://github.com/rdfjs/representation-task-force/wiki/Existing-triple-and-quad-representations#jsonldjs

Received on Friday, 11 December 2015 19:47:25 UTC