Matsu is a DSL for constructing SPARQL queries:
(query
(select :person)
(where :person a [:foaf "Person"] \;
[:foaf "mbox"] (URI. "mailto:[email protected]") \.))
Which would yield the following string (but not formatted with tabs &
newlines):
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT ?person
WHERE
{
?person a foaf:Person ;
foaf:mbox <mailto:[email protected]> .
}
I'm very interested to get feedback - if anoyne has interest in RDF &
SPARQL, and has any ideas on how to improve the syntax.
Check out the github repo for more examples on usage:
https://github.com/boutros/matsu
In particular see doc/example.clj for an example repl session querying the
DBpedia SPARQL endpoint
Thanks,
Petter
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en