[Activerdf] RDF Context

Eyal Oren eyal.oren at deri.org
Mon Apr 16 19:16:27 IST 2007


On 04/16/07/04/07 10:28 -0700, michael wrote:
>Eyal,
>
>I noticed ActiveRDF supports context on add and delete methods in the rdflite adapter but
>I did not see any means of specifying context in queries. Do you plan on adding support
>for this at some point?
it is supported, just use the fourth parameter in the where clause:

  context = RDFS::Resource.new('mycontext')
  Query.new.distinct(:s).where(:s,:p,:o, context).execute

 -eyal


More information about the ActiveRDF mailing list