Changeset 5801 for cats


Ignore:
Timestamp:
11/12/14 10:21:32 (10 years ago)
Author:
Menzo Windhouwer
Message:

M mod-ISOcat-interface-rest/representations/dcs2/openskos.xsl

  • use <skos:member/> instead of <openskos:member>
  • link Concepts from ConceptScheme? using hasTopConcept
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cats/ISOcat/trunk/mod-ISOcat-interface-rest/representations/dcs2/openskos.xsl

    r5778 r5801  
    2222    <xsl:param name="props"/>
    2323        <xsl:param name="approve" select="('CLARIN-NL/VL','Athens Core')"/>
     24        <xsl:variable name="doc" select="/"/>
    2425    <xsl:template match="text()"/>
    2526    <xsl:template match="dcif:dataCategorySelection">
     
    3334                        </dc:title>
    3435                        <xsl:for-each select="dcif:dataCategory">
    35                                 <openskos:member rdf:resource="tmp:C-{substring-after(@pid,'DC-')}"/>
     36                                <skos:member rdf:resource="tmp:C-{substring-after(@pid,'DC-')}"/>
    3637                        </xsl:for-each>
    3738                </openskos:skosCollection>
    3839            <xsl:for-each select="distinct-values(//dcif:profile)">
     40                <xsl:variable name="prof" select="."/>
    3941                <skos:ConceptScheme rdf:about="tmp:P-{replace(.,'\s','')}">
    4042                    <dc:title>
    4143                        <xsl:value-of select="."/>
    4244                    </dc:title>
     45                        <xsl:for-each select="$doc//dcif:dataCategory[dcif:descriptionSection/dcif:profile=$prof]">
     46                                <skos:hasTopConcept rdf:resource="tmp:C-{substring-after(@pid,'DC-')}"/>
     47                        </xsl:for-each>
    4348                </skos:ConceptScheme>
    4449            </xsl:for-each>
Note: See TracChangeset for help on using the changeset viewer.