Skip to content

Instantly share code, notes, and snippets.

@melvincarvalho
Created March 21, 2010 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save melvincarvalho/339452 to your computer and use it in GitHub Desktop.
Save melvincarvalho/339452 to your computer and use it in GitHub Desktop.
2>/dev/null curl http://esw.w3.org/SparqlEndpoints | grep -A6 '^<tr>$' | awk '{ i++ ; if (i==3 ) print $0 " ." ; if (i==1) print "\n<#endpoint" p++ ">\n" $0 " ;" ; if ( $1 == "<tr>" ) i = 0; }' | sed 's/<td> <b>/<dct:description> /' | sed 's/<.td><td>/<void:sparqlEndpoint> /' | sed 's/<void.*href="\([^"]*\).*/<void:sparqlEndpoint> <\1> ./' | sed 's/<dct:description>.*">\(.*\)<.a.*/<dct:description> "\1" ;/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment