ruby-rdf / sparql-client

SPARQL client for Ruby.
http://rubygems.org/gems/sparql-client
The Unlicense
112 stars 58 forks source link

Property Paths #43

Closed dannybtran closed 10 years ago

dannybtran commented 10 years ago

Anyone given any thought to implementing property paths?

artob commented 10 years ago

This would certainly be a welcome feature. Any ideas as to what the DSL might look like?

dannybtran commented 10 years ago

How about something like this?

I have implied a DSL by writing potential transcriptions for the examples in the w3 link. In essence, the predicate parameter of the where method would accept nested arrays. Each array would be joined with an empty string delimiter. Each nested array would be surrounded by parenthesis. Thoughts are appreciated.