W3C home > Mailing lists > Public > public-rdfa-wg@w3.org > November 2010

[rdfa-api] Little type ambiguity

From: Nathan <nathan@webr3.org>
Date: Sun, 28 Nov 2010 16:42:02 +0000
Message-ID: <4CF2865A.8040408@webr3.org>
To: RDFA Working Group <public-rdfa-wg@w3.org>
Hi All,

Just been refreshing some docs and code, and realised that throughout 
the documentation we refer to a TypedLiterals datatype, but TypedLiteral 
has a .type - and further we've now introduced an RDFNode.getType() 
method, which makes it even more ambiguous.

I'd propose that we:
  - swap TypedLiteral.type to TypedLiteral.datatype
  - swap RDFNode.getType() to RDFNode.interfaceName (an attribute)

This should resolve all confusion and possible conflicts with other 
specifications/standards and common libraries, as .type and .nodeType 
are very common, likewise getType in java when using getters and setters.


Received on Sunday, 28 November 2010 16:42:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:05:22 UTC