Re: typing named nodes/blank nodes/literals

On Fri, 11 Dec 2015 17:18:19 +0100, 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?

I vote for something, which is close to SPARQL 1.1 Query Results JSON 
Format [1] (bnode, literal, ...)

>
> 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,

Dominik

[1] http://www.w3.org/TR/sparql11-results-json/#select-results


>
> Best,
>
> Ruben



Dominik Tomaszuk
Research Fellow
University of Bialystok
Poland

Received on Friday, 11 December 2015 18:59:34 UTC