My solution was to save as RDF and write the XSLT below to make all
entries skos:Concept.
An alternative that I am also using is to run Joseki. This provides a
simple Sparql web endpoint for my files . This gives me a consistant
xml format and allows some SKOS type reasoning. Eg if the SKOS has
isNarrower I can query on isBroader.
I am sure Simon would approve more of this route ;-)
/Andy
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="
http://www.w3.org/1999/XSL/Transform" xmlns:skos="http://
www.w3.org/2004/02/skos/core#"
xmlns:owl="
http://www.w3.org/2002/07/owl#"
xmlns:rdf="
http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<xsl:output method="xml" indent="yes" />
<!-- convert owl thing to skos concept -->
<xsl:template
match="owl:Thing[rdf:type/@rdf:resource='
http://www.w3.org/2004/02/
skos/core#Concept']">
<skos:Concept rdf:about="{@rdf:about}">
<xsl:apply-templates />
</skos:Concept>
</xsl:template>
<!-- remove -->
<xsl:template
match="rdf:type[
@rdf:resource='
http://www.w3.org/2004/02/skos/core#Concept'
and parent::owl:Thing]"/>
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()" />
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
> > steve- Hide quoted text -
>
> - Show quoted text -