[Developers] Freebase WEX Data

Kendra Kuhl kendra.kuhl at juggle.com
Tue Apr 15 14:24:52 UTC 2008


I'm hoping somebody can help me or point me in the right direction.

 

I'm trying to put the Wikipedia article back together using XSLT. In trying
to figure out what to do with the templates, it seemed to me that data is
missing from the template article that allows me to do that. For example
(also see below) in trying to reconstruct the dmoz template, I would go to
the Template:Dmoz article, get the wiki markup for the template and use the
data from the article with the template. The WEX dumps Template:DMOZ article
doesn't contain template data. The same for the Template:Doctor_Who_RG
article. The Dr. Who article contains more of the template information, but
still not enough to create the template on the article side. 

 

Information I expect to be in the Template:Dmoz article:

 

<text
xml:space="preserve"><noinclude>{{Pp-semi-protected|small=yes}}</noinclude>{
{#switch: {{{3|}}} |#default=[http://www.dmoz.org/{{{1}}}/
{{{2|{{PAGENAME}}}}}] at the [[Open Directory Project]]
|user=[http://www.dmoz.org/profiles/{{{1}}}.html {{{2|{{PAGENAME}}}}}] at
the [[Open Directory Project]]
}}<noinclude>{{Documentation}}</noinclude></text>

 

Information showing in the Template:Dmoz article in the WEX dump:

 

<articles xmlns:xhtml=" " loadtime="0 sec" rendertime="0.002 sec"
totaltime="0.002 sec"><article><paragraph><extension
extension_name="noinclude"><template name="Pp-semi-protected">\n<param
name="small">yes</param>\n</template><template
name="Pp-semi-protected">\n<param
name="small">yes</param>\n</template></extension><extension
extension_name="noinclude"><template
name="Documentation">\n</template><template
name="Documentation">\n</template></extension></paragraph></article></articl
es>

 

This is what I see as missing:

 

{{#switch: {{{3|}}} |#default=[http://www.dmoz.org/{{{1}}}/
{{{2|{{PAGENAME}}}}}] at the [[Open Directory Project]]
|user=[http://www.dmoz.org/profiles/{{{1}}}.html {{{2|{{PAGENAME}}}}}] at
the [[Open Directory Project]] }}

 

So my questions are these:

 

1. Am I missing something? Is there another spot in the WEX dump that
contains the information to put the template back together again? I have
looked, but nothing jumps out at me. How does Metaweb / Freebase handle it?

2. Has anybody else attempted the XSLT reconstruction of the WEX data? If
so, are you willing to share? I can share what I have come up with already,
but I'm pretty new to XSLT.

 

Thanks in advance!!

 

Kendra

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freebase.com/pipermail/developers/attachments/20080415/9bcfcb2e/attachment.htm 


More information about the Developers mailing list