- From: Austin William Wright <aaa@bzfx.net>
- Date: Mon, 7 Dec 2015 12:10:11 -0700
- To: Ruben Verborgh <ruben.verborgh@ugent.be>
- Cc: RDF-JS <public-rdfjs@w3.org>
Received on Monday, 7 December 2015 19:10:59 UTC
I use `n.nodeType` in my RDF library -- I think the name was picked by webr3 before me. And I believe it's a good choice: Even in other applications I've had trouble with a mere `n.type` being too generic, and I've renamed it (e.g. `n.setType`). Austin. On Mon, Dec 7, 2015 at 9:31 AM, Ruben Verborgh <ruben.verborgh@ugent.be> wrote: > Dear all, > > In addition to the previous request, > the Representation Task Force needs input on the following. > > As you know, there are 4 building blocks for triples (or patterns): > – named nodes (IRIs) > – blank nodes > – literals > – variables (in the case of patterns) > > To distinguish between these, > we would add a property that indicates the type. > (instanceof will not suffice for all usage.) > > How would you name this property? > – .type > – .termType > – .nodeType > – … > > The drawback of using .type might be that it's highly generic; > on the other hand, it's just very short to enter. > > Furthermore, what would be the values of this property? > – "IRI", "blank node", "variable" > – "uri", "bnode", "var" > – … > > Please let us know by Thursday 10 December 2015. > Thanks in advance for your help! > > Ruben >
Received on Monday, 7 December 2015 19:10:59 UTC