Changeset 5930 for ComponentRegistry/trunk/ComponentRegistry/src
- Timestamp:
- 01/16/15 14:54:27 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/trunk/ComponentRegistry/src/main/resources/ccr2dcif.xsl
r5918 r5930 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 3 xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" version="2.0"> 4 5 <xsl:template match="/"> 6 <!-- THIS IS A DUMMY IMPLEMENTATION OF CCR TO DCIF CONVERSION. 7 TODO: Implement actual conversion 8 --> 9 <dcif:dataCategorySelection xmlns:dcif="http://www.isocat.org/ns/dcif" dcif-version="1.3"> 10 <dcif:globalInformation>Max Planck Institute for Psycholinguistics, Nijmegen, The 11 Netherlands</dcif:globalInformation> 12 <dcif:dataCategory pid="http://www.isocat.org/datcat/DC-4347" type="container"> 13 <!--This work by http://www.isocat.org/datcat/DC-4347 is licensed under a Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/).--> 14 <dcif:administrationInformationSection> 15 <dcif:administrationRecord> 16 <dcif:identifier>ArthurianFiction</dcif:identifier> 17 <dcif:version>1:0</dcif:version> 18 <dcif:registrationStatus>private</dcif:registrationStatus> 19 <dcif:justification>project container</dcif:justification> 20 <dcif:effectiveDate>2012-01-10</dcif:effectiveDate> 21 <dcif:creation> 22 <dcif:creationDate>2012-01-10</dcif:creationDate> 23 <dcif:changeDescription xml:lang="en">initial 24 creation</dcif:changeDescription> 25 </dcif:creation> 26 <dcif:lastChange> 27 <dcif:lastChangeDate>2012-01-18</dcif:lastChangeDate> 28 <dcif:changeDescription xml:lang="en">additions</dcif:changeDescription> 29 </dcif:lastChange> 30 </dcif:administrationRecord> 31 </dcif:administrationInformationSection> 32 <dcif:descriptionSection> 33 <dcif:profile>undecided</dcif:profile> 34 <dcif:languageSection> 35 <dcif:language>en</dcif:language> 36 <dcif:nameSection> 37 <dcif:name xml:lang="en">Arthurian Fiction database</dcif:name> 38 <dcif:nameStatus>admitted name</dcif:nameStatus> 39 </dcif:nameSection> 40 <dcif:definitionSection> 41 <dcif:definition xml:lang="en">Online database containing descriptions 42 of narratives of Arthurian fiction and manuscripts containing 43 them</dcif:definition> 44 <dcif:source>-</dcif:source> 45 </dcif:definitionSection> 46 </dcif:languageSection> 47 </dcif:descriptionSection> 48 </dcif:dataCategory> 49 </dcif:dataCategorySelection> 50 51 </xsl:template> 52 3 xmlns:xs="http://www.w3.org/2001/XMLSchema" 4 exclude-result-prefixes="xs rdf openskos skos" 5 version="2.0" 6 xmlns:dcif="http://www.isocat.org/ns/dcif" 7 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 8 xmlns:openskos="http://openskos.org/xmlns#" 9 xmlns:skos="http://www.w3.org/2004/02/skos/core#" 10 > 11 12 <xsl:output method="xml" encoding="UTF-8"/> 13 14 <xsl:template match="rdf:RDF"> 15 <dcif:dataCategorySelection dcif-version="1.3" name="search"> 16 <dcif:globalInformation>CLARIN Concept Registry, Meertens Institute, Amsterdam, The Netherlands</dcif:globalInformation> 17 <xsl:apply-templates/> 18 </dcif:dataCategorySelection> 19 </xsl:template> 20 21 <xsl:template match="skos:Concept"> 22 <dcif:dataCategory 23 definition="{(skos:definition[@xml:lang='en'])[1]}" 24 identifier="{(skos:notation)[1]}" 25 name="{(skos:prefLabel[@xml:lang='en'])[1]}" 26 owner="CLARIN" 27 pid="{@rdf:resource}" 28 type="concept" 29 version="1:0"> 30 </dcif:dataCategory> 31 </xsl:template> 32 53 33 </xsl:stylesheet>
Note: See TracChangeset
for help on using the changeset viewer.