I am trying to use RDFQuery from a Firefox extension. It works, but
there's a problem. I am not sure if this is a bug with RDFQuery or a
problem with the way I give the context for JQuery. I would really
appreciate if someone can let me know if it is indeed a bug in
RDFQuery or a problem with setting the correct context or if it is
something else entirely.
Here's the extremely simplified version of my code:
************************************************************
//Setting up the correct context because it is run from an extension
jQuery.noConflict();
$ = function(selector,context){ return new
jQuery.fn.init(selector,context||window.content.document); };
$.fn = $.prototype = jQuery.fn;
//Getting the RDFa out of the page HTML
var data = $('html').rdf()
.where('?s ?p ?o')
.each(function(){
dump(this.s.value+"\t"+this.p.value+"\t"+this.o.value)
});
************************************************************
The above code gives me triples like:
<chrome://browser/content/browser.xul> <http://property1> <http://object1>
<chrome://browser/content/browser.xul> <http://property2> <http://object2>
...
The question is, these triples are not exactly the triples found in
the page. The subject (<chrome://browser/content/browser.xul>) in all
of these triples are wrong; it should give an HTTP URI--the
properties, objects and everything else appear to be correct.
Any idea why this is happening?
Thanks,
Oshani
--
You received this message because you are subscribed to the Google Groups "rdfQuery" group.
To post to this group, send email to rdfq...@googlegroups.com.
To unsubscribe from this group, send email to rdfquery+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rdfquery?hl=en.
Case closed.
Thanks,
Oshani