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

New Issue(s)

From: Nathan <nathan@webr3.org>
Date: Thu, 24 Jun 2010 16:59:06 +0100
Message-ID: <4C2380CA.2030301@webr3.org>
To: RDFA Working Group <public-rdfa-wg@w3.org>
Hi All,

I've came across a few issues which are confusing me a little (after 
trying to prototype an implementation) - issue 2 is the real 
puzzler/blocker..

1: This documentation looks a bit wrong..
   DataStore.createPlainLiteral( value, language );
   value  DOMString  The value of the IRI. The value can be either a 
full IRI or a CURIE.
?? the value of a PlainLiteral must be an IRI or CURIE ??


2: CURIE resolution..

var contextA = document.data.createContext();
var contextB = document.data.createContext();
contextA.setMapping( 'a' , 'http://example.com/a#' );
contextB.setMapping( 'a' , 'http://example.com/b#' );
var store = document.data.createStore();
var triple = store.createTypedLiteral( 'something' , 'a:test' );

will that a:test resolve to:
   http://example.com/a#test -or- http://example.com/b#test ?

the same issue arises for registerTypeConversion, if I created two 
different functions to handle a type of xsd:whatever then which would be 
used?

In other words, DataContext is completely decoupled from everything 
else, yet most other interfaces depend on DataContext to provide CURIE 
resolution and typed literal conversion (there are quite a few examples 
throughout the doc)


3: TypedLiteralConverter
Just how would one create a new TypedLiteralConverter? There's no 
constructor, and further DataContext.registerTypeConversion needs an 
instance of TypedLiteralConverter but specifies that the converter param 
should be 'A function that converts..' (indicating 
TypedLiteralConverter.convertType or a callback rather than an instanceof)


4: DocumentData.createStore( type ) - what's the type for? why is it not 
nullable and not optional when no examples actually pass in a param?


5: Document.getElementsByType(type) and getItemsByType(type) where type 
is a DOMString, should this not be IRI or CURIE?


6: How does one create a new DocumentData instance? there's no way to 
set the .store/context/parser/query properties (they're all readonly)


Best,

Nathan
Received on Thursday, 24 June 2010 16:00:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 04:55:06 GMT