Skip to content

Instantly share code, notes, and snippets.

@melvincarvalho
Created October 13, 2013 21:57
Show Gist options
  • Save melvincarvalho/6967844 to your computer and use it in GitHub Desktop.
Save melvincarvalho/6967844 to your computer and use it in GitHub Desktop.
tx from table
s='';i=0; $('tr:gt(3)').each(function() { rows = ($(this).find('td')); s+=( '<#t_' + i++ + '> a <https://w3id.org/commerce#Transfer> ; <http://purl.org/dc/terms/created> "' + rows[1].textContent + '" ; <http://xmlns.com/ns/foaf/0.1/name> "' + rows[2].textContent + '" ; <https://w3id.org/commerce#amount> ' + rows[3].textContent + ' ; <http://www.w3.org/2000/01/rdf-schema#comment> "' + rows[4].textContent + '" .\n') ; }) ; console.log(s);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment