I wonder if we get them to set up the output for GRDDL?
I wrote this little XSLT that converts the output to a simple FOAF file,
complete with URI:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:srw="http://www.loc.gov/zing/srw/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
version="1.0">
<xsl:template match="/srw:searchRetrieveResponse">
<rdf:RDF>
<xsl:apply-templates select="srw:records"/>
</rdf:RDF>
</xsl:template>
<xsl:template match="srw:records">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="srw:record">
<xsl:apply-templates select="srw:recordData"/>
</xsl:template>
<xsl:template match="srw:recordData">
<rdf:Description
rdf:about="http://orlabs.oclc.org/Identities/key/{*/pnkey}">
<xsl:apply-templates select="Identity"/>
</rdf:Description>
</xsl:template>
<xsl:template match="Identity">
<xsl:variable name="type">
<xsl:choose>
<xsl:when test="@type='personal'">
<xsl:text>http://xmlns.com/foaf/0.1/Person</xsl:text>
</xsl:when>
<xsl:when test="@type='corporate'">
<xsl:text>http://xmlns.com/foaf/0.1/Organization</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>http://xmlns.com/foaf/0.1/Agent</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<rdf:type rdf:resource="{$type}"/>
<xsl:apply-templates select="authorityInfo"/>
</xsl:template>
<xsl:template match="authorityInfo">
<xsl:apply-templates select="standardForm"/>
</xsl:template>
<xsl:template match="standardForm">
<foaf:name>
<xsl:value-of select="suba"/>
</foaf:name>
</xsl:template>
</xsl:stylesheet>
Output:
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:srw="http://www.loc.gov/zing/srw/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<rdf:Description
rdf:about="http://orlabs.oclc.org/Identities/key/lccn-no99-10609">
<rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Person"/>
<foaf:name>Berners-Lee, Tim</foaf:name>
</rdf:Description>
</rdf:RDF>
Reminds me, we really ought to have a separate property (from foaf:name)
for the sort form of the name.
Bruce