>
> David, can you describe your approach to the task? Unfortunately I  
> can't say I was able to follow the code changes in repository except  
> for maybe that you created extension to SMW that hooks into link  
> processing.



Hi there,

First of all, the code that I think Nathan showed you is outdated. I'm  
having some problems with CC's version control (due to my own  
ignorance of git), but in the mean-time, I've put my current code up  
here:

http://dmccabe.org/tmp/rdfa-july29.tar.gz

Here's how it works:

When SMW strips out the semantic link information, we create a UUID  
and append that to the fragment of the link. This is used to find the  
link later on. We associate the UUID with the RDF triple using a  
global dictionary. When MW generates the HTML tag for the link, we  
examine the fragment, and if it ends with our UUID, we insert the RDFa  
attributes into the tag. This requires a hook which will be included  
in MW 1.14. For non-link properties, we simply add a 'span' tag with  
the appropriate attributes during link processing.

SMW_RDFa.php is set up as a separate extension at the moment, but my  
intent is to submit it to be a regular feature of SMW, when it in  
finished.

Thanks for your interest. Let me know if you have any questions.
--
David McCabe


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to