Re: RDF + Script

View: New views
2 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: RDF + Script

by "~:'' ありがとうございました" :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Doug,

hope this was for public consumption...
that really is a very nice example, thanks once again.

My concept was for examples that did not require script.
though failing that, script seems to be a useful and necessary first  
step.

As with many things it would be enlightening to hear the views of  
others.

initial ideas might include:
a user style sheet to identify public domain icons within a document.
... ...

best wishes

~:"

On 9 Sep 2007, at 17:28, Doug Schepers wrote:

Hi, Jonathan-

Regarding using RDF with clientside script, I'm not sure why you'd  
think there should be any problem... Most RDF is simply an XML  
serialization of the RDF data model, and thus can be accessed or  
written via the DOM, like any other XML in SVG.

I whipped up a quick example to illustrate (click on the words/shapes):
   http://svg-whiz.com/svg/rdf/rdf-script_access.svg

Note that while this example has only one RDF block, in the  
<metadata> element at the root level, it could easily be adapted to  
support multiple RDF blocks dispersed amidst the document.

Regards-
-Doug Schepers
W3C Staff Contact, SVG, CDF, and WebAPI



Re: RDF + Script

by Doug Schepers-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi, Jonathan-

~:'' ありがとうございました。 wrote (on 9/10/2007 5:46 PM):
>
> hope this was for public consumption...

I certainly hope so, as well, because it's now public.  I'd prefer you
ask permission to share private messages.  In this case, no harm done,
it was just a silly little throw-away project.


> that really is a very nice example, thanks once again.

No problem, I find simple programming like that relaxing, which I needed
after the stressful 2 weeks previous.


> My concept was for examples that did not require script.
> though failing that, script seems to be a useful and necessary first step.

I gathered you were talking about script:
"Nobody's been able to show me a way that you can use RDF with
client-side scripting or CSS to actually use the RDF" [1]


> As with many things it would be enlightening to hear the views of others.

Sure.


> initial ideas might include:
> a user style sheet to identify public domain icons within a document.

I don't know of a way you could do that, but maybe someone who knows CSS
better than I do could work it up.  Note also that CSS is not
namespace-aware, so that might throw a wrinkle into things... then
again, maybe not.  Assuming that the icon contained RDF, you'd want to
use selectors to identify all elements that have an "RDF" child element,
and AFAIK, CSS can only pinpoint elements which have a particular
parent, not a particular child.  Then you'd have to assess if children
of that RDF block contained matches for particular strings to find if
the the license was a public domain one... again, I doubt you can do
this in CSS.

However, both of these methods are easy in script (QED my example), and
you could then set the style via script if that's what you want.

[1]
http://wiki.cetis.ac.uk/Putting_the_User_at_the_Heart_of_the_W3C_Process#Part_2:_Transcript


Regards-
-Doug Schepers
W3C Staff Contact, SVG, CDF, and WebAPI