two questions about rdfQuery user experiences

14 views
Skip to first unread message

xi.bai

unread,
Jul 15, 2009, 5:49:37 AM7/15/09
to rdfQuery
Congratulations to the success of the rdfQuery dazzle last weekend!
Two questions are still bothering me currently. I want to list them
here and hope some of you can share your opinions.

1. If the snippet with rdfa is not in the DOM tree, rdfQuery will not
parse it because
rdfQuery is built on top of jQuery and jQuery can not select this kind
of snippet. One
solution is to add the snippet with rdfa to an invisible node inside
the HTML document.
After being parsed, this snippet should be deleted. But there is still
a risk that the
snippet will cause problems when the browser renders the whole HTML
document. My
question is "will rdfQuery provide a way of parsing the nodes in the
memory (generated
on the fly) but not in the DOM tree?".

2. The parsing time for some page is slow maybe this is because my
laptop is very slow.
I know you guys are still improving the efficiency of rdfQuery. My
question is if a page
contains a large number of triples (well, you can say this page is
crappy and unuseful
but it is possible), the parsing will be slow and my browser is like
dead for seconds.
This is not friendly to users. My question is "is there any ways of
hiding this kind
of lag?". For example, people use loading indicator in ajax programmes
and any
possibilities for similar client side solutions? I know this is not
about rdfQuery
itself but it may happen when people use rdfQuery.

Michael Hausenblas

unread,
Jul 15, 2009, 7:06:16 AM7/15/09
to rdfq...@googlegroups.com

> 2. The parsing time for some page is slow maybe this is because my
> laptop is very slow.
> I know you guys are still improving the efficiency of rdfQuery. My
> question is if a page
> contains a large number of triples (well, you can say this page is
> crappy and unuseful
> but it is possible), the parsing will be slow and my browser is like
> dead for seconds.
> This is not friendly to users. My question is "is there any ways of
> hiding this kind
> of lag?". For example, people use loading indicator in ajax programmes
> and any
> possibilities for similar client side solutions? I know this is not
> about rdfQuery
> itself but it may happen when people use rdfQuery.

Excellent question. I'm afraid I think there is no easy answer to this. We
tried to come up with a sort of explanation in [1]. I think we should really
invest more time into this, but as you rightly say, little if not nothing to
do with rdfquery per se ...

Cheers,
Michael

[1] http://ld2sd.deri.org/lod-ng-tutorial/#checklist-usability

--
Dr. Michael Hausenblas
LiDRC - Linked Data Research Centre
DERI - Digital Enterprise Research Institute
NUIG - National University of Ireland, Galway
Ireland, Europe
Tel. +353 91 495730
http://linkeddata.deri.ie/
http://sw-app.org/about.html

Norman Heino

unread,
Jul 15, 2009, 8:31:03 AM7/15/09
to rdfq...@googlegroups.com
Hi,

Am 15.07.2009 um 11:49 schrieb xi.bai:

>
> Congratulations to the success of the rdfQuery dazzle last weekend!
> Two questions are still bothering me currently. I want to list them
> here and hope some of you can share your opinions.
>
> 1. If the snippet with rdfa is not in the DOM tree, rdfQuery will not
> parse it because
> rdfQuery is built on top of jQuery and jQuery can not select this kind
> of snippet. One
> solution is to add the snippet with rdfa to an invisible node inside
> the HTML document.
> After being parsed, this snippet should be deleted. But there is still
> a risk that the
> snippet will cause problems when the browser renders the whole HTML
> document. My
> question is "will rdfQuery provide a way of parsing the nodes in the
> memory (generated
> on the fly) but not in the DOM tree?".

Why would you want to create RDFa nodes in memory? rdfQuery can parse
triples from N3, RDF/XML or RDF/JSON [1] if you want to feed it
triples not in the page.

> 2. The parsing time for some page is slow maybe this is because my
> laptop is very slow.
> I know you guys are still improving the efficiency of rdfQuery. My
> question is if a page
> contains a large number of triples (well, you can say this page is
> crappy and unuseful
> but it is possible), the parsing will be slow and my browser is like
> dead for seconds.
> This is not friendly to users. My question is "is there any ways of
> hiding this kind
> of lag?". For example, people use loading indicator in ajax programmes
> and any
> possibilities for similar client side solutions? I know this is not
> about rdfQuery
> itself but it may happen when people use rdfQuery.

I use Ben Adida's RDFa parser [2] and feed the resulting triples to
rdfQuery. That is much faster for the time being and I can add events
to the elements. :)

Regards,
Norman

[1] http://n2.talis.com/wiki/RDF_JSON_Specification
[2] http://www.w3.org/2006/07/SWD/RDFa/impl/js/rdfa.js

BAI XI

unread,
Jul 15, 2009, 9:48:02 AM7/15/09
to rdfq...@googlegroups.com
Hi, Michael,

Thank you for the link you provided. Yes, the "seeAlso" is a possible trade-off for this problem. The page with rdfa can point to another RDF/XML document or even another XHTML+ RDFa page if necessary. At least we can use ajax + server-side parser to asynchronize the end users' activities. For the client-side parser case, i hope javascript geeks could share their trade-off solutions.

Best,

Xi

2009/7/15 Michael Hausenblas <michael.h...@deri.org>

Zemanta helped me add links & pictures to this email. It can do it for you too.

BAI XI

unread,
Jul 15, 2009, 9:59:50 AM7/15/09
to rdfq...@googlegroups.com
Hi, Norman,


>Why would you want to create RDFa nodes in memory? rdfQuery can parse
>triples from N3, RDF/XML or RDF/JSON [1] if you want to feed it
>triples not in the page.

For example, i want to create a new page using the data which is not stored in triple stores but have to be harvested from another XHTML+RDFa page. As for as I know, currently rdfQuery could not fetch the triples from an external page directly. Tell me if i am wrong. :-)

Best,

Xi 

2009/7/15 Norman Heino <norman...@googlemail.com>
Reply all
Reply to author
Forward
0 new messages