Skip to content

Instantly share code, notes, and snippets.

@LeifW
Created August 8, 2010 23:04
Show Gist options
  • Select an option

  • Save LeifW/514675 to your computer and use it in GitHub Desktop.

Select an option

Save LeifW/514675 to your computer and use it in GitHub Desktop.
XQueryCall.run("""declare namespace mp='http://musicpath.org';
declare namespace r='http://www.w3.org/2005/sparql-results#';
mp:sparql('SELECT * WHERE {<http://musicpath.org/people/melissa> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ?t }')//r:result[1]""")
declare namespace foaf = "http://xmlns.com/foaf/0.1/";
<html>
<head>
</head>
<body>
{ for $name
where { <http://musicpath.org/people/melissa> foaf:givenname $name }
return <li>{$name}</li>
}
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment