- From: RDFa Working Group Issue Tracker <sysbot+tracker@w3.org>
- Date: Thu, 18 Nov 2010 14:32:35 +0000
- To: public-rdfa-wg@w3.org
ISSUE-61 (Add vocabulary helper): Does the RDFa API need a vocabulary helper [RDFa 1.1 API] http://www.w3.org/2010/02/rdfa/track/issues/61 Raised by: Manu Sporny On product: RDFa 1.1 API >From TimBL: Re: Namespace object. No intention to pollute the global namespace. Note python one declares explicitly, in JS I suggest things like this are hung off both a singe rdf object and the graph object, a bit like: { var $rdf = document.rdf; var g = $rdf.graph(); var foaf = g.ns("http://xmlns.com/foaf/0.1/"); var RDFS = g.ns("http://www.w3.org/2000/01/rdf-schema#"); var dc = vocab("http://purl.org/dc/elements/1.1/"); var rss = vocab("http://purl.org/rss/1.0/"); var contact = vocab("http://www.w3.org/2000/10/swap/pim/contact#"); ... } ------ This request has come up a number of times. The WG should decide if the current DataContext is enough or if an additional callback-based mechanism for resolving CURIEs would be helpful. Perhaps something like this: [NoInterfaceObject] interface DataContext { ... CURIEResolver createResolver(in DOMString prefix); ... } [NoInterfaceObject Callback] interface CURIEResolver { DOMString resolve(in DOMString reference); }
Received on Thursday, 18 November 2010 14:32:36 UTC