Re: Metadata about a JavaScript file

Yes, the link header is a perfect solution.

Hmm The tabulator follows rel=meta (in link: header or HTML <link> attribute identically) 
but "meta' I see isn't mentioned in the draft.

Tim

On 2011-11 -10, at 06:27, Phil Archer wrote:

> Denny,
> 
> I'd suggest using the HTTP Link element [1] with @rel=describedby, pointing to a file that included your triple or, more simply, just @rel=license and link to the licence directly. You need to do a bit of server config (use Mod_headers) but assuming you have access to do that it shouldn't be be too hard.
> 
> HTH
> 
> Phil.
> 
> [1] http://tools.ietf.org/html/rfc5988
> 
> On 10/11/2011 11:06, Denny Vrandecic wrote:
>> Hi,
>> 
>> sorry, folks, stupid technical question:
>> 
>> how would I add RDF metadata to a JavaScript file?
>> 
>> Assume I have at
>> 
>> http://example.org/script.js
>> 
>> a JavaScript file. I want to add some metadata about it, like its license. I.e. I want to be able to state e.g.
>> 
>> <http://example.org/script.js>  cc:license license:BSD .
>> 
>> Where do I put this triple?
>> 
>> And how can I let a tool know where this triple is, if the tool only has the script's URI?
>> 
>> Cheers,
>> Denny
>> 
> 
> -- 
> 
> Phil Archer
> http://philarcher.org/
> @philarcher1
> 
> 

Received on Thursday, 10 November 2011 12:29:22 UTC