rdf-vocab 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,65 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
4
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
5
+ xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
6
+ xmlns:dcterms="http://purl.org/dc/terms/"
7
+ xmlns:iana="http://www.iana.org/assignments"
8
+ exclude-result-prefixes="xs iana"
9
+ version="1.0">
10
+ <xsl:output method="xml" indent="yes"/>
11
+ <xsl:variable name="relation" select="'http://www.iana.org/assignments/relation/'"/>
12
+ <xsl:template match="/iana:registry">
13
+ <rdf:RDF>
14
+ <rdf:Description>
15
+ <xsl:attribute name="rdf:about">
16
+ <xsl:value-of select="$relation"/>
17
+ </xsl:attribute>
18
+ <dcterms:title xml:lang="en">
19
+ <xsl:value-of select="iana:title"/>
20
+ </dcterms:title>
21
+ <dcterms:created rdf:datatype="http://www.w3.org/2001/XMLSchema#date">
22
+ <xsl:value-of select="iana:created"/>
23
+ </dcterms:created>
24
+ <dcterms:modified rdf:datatype="http://www.w3.org/2001/XMLSchema#date">
25
+ <xsl:value-of select="iana:updated"/>
26
+ </dcterms:modified>
27
+ <dcterms:publisher rdf:resource="http://www.iana.org/"/>
28
+ <dcterms:contributor>
29
+ <xsl:value-of select="iana:registry/iana:expert[1]"/>
30
+ </dcterms:contributor>
31
+ <rdfs:seeAlso rdf:resource="http://www.iana.org/assignments/link-relations/link-relations.xhtml"/>
32
+ </rdf:Description>
33
+
34
+ <xsl:for-each select="iana:registry/iana:record">
35
+ <rdf:Property>
36
+ <xsl:attribute name="rdf:about">
37
+ <xsl:value-of select="$relation"/>
38
+ <xsl:value-of select="iana:value"/>
39
+ </xsl:attribute>
40
+ <rdfs:label xml:lang="en"><xsl:value-of select="iana:value"/></rdfs:label>
41
+ <rdfs:comment xml:lang="en"><xsl:value-of select="iana:description"/></rdfs:comment>
42
+ <xsl:if test="iana:spec/iana:xref[@type='rfc' or @type='uri']"></xsl:if>
43
+ <rdfs:seeAlso>
44
+ <xsl:attribute name="rdf:about">
45
+ <xsl:choose>
46
+ <xsl:when test="iana:spec/iana:xref[@type='rfc']">
47
+ <xsl:value-of select="iana:spec/iana:xref/@data"/>
48
+ <xsl:value-of select="iana:spec/text()"/>
49
+ </xsl:when>
50
+ <xsl:when test="iana:spec/iana:xref[@type='uri']">
51
+ <xsl:value-of select="iana:spec/iana:xref/@data"/>
52
+ </xsl:when>
53
+ </xsl:choose>
54
+ </xsl:attribute>
55
+ </rdfs:seeAlso>
56
+ <rdfs:isDefinedBy>
57
+ <xsl:attribute name="rdf:resource">
58
+ <xsl:value-of select="$relation"/>
59
+ </xsl:attribute>
60
+ </rdfs:isDefinedBy>
61
+ </rdf:Property>
62
+ </xsl:for-each>
63
+ </rdf:RDF>
64
+ </xsl:template>
65
+ </xsl:stylesheet>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-vocab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Chandek-Stark
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-13 00:00:00.000000000 Z
11
+ date: 2015-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: linkeddata
@@ -88,10 +88,13 @@ files:
88
88
  - lib/rdf-vocab/version.rb
89
89
  - lib/rdf-vocab/vocab/acl.rb
90
90
  - lib/rdf-vocab/vocab/bibframe.rb
91
+ - lib/rdf-vocab/vocab/crm.rb
91
92
  - lib/rdf-vocab/vocab/datacite.rb
92
93
  - lib/rdf-vocab/vocab/dwc.rb
94
+ - lib/rdf-vocab/vocab/edm.rb
93
95
  - lib/rdf-vocab/vocab/fcrepo3.rb
94
96
  - lib/rdf-vocab/vocab/fcrepo4.rb
97
+ - lib/rdf-vocab/vocab/iana.rb
95
98
  - lib/rdf-vocab/vocab/identifiers.rb
96
99
  - lib/rdf-vocab/vocab/ldp.rb
97
100
  - lib/rdf-vocab/vocab/mads.rb
@@ -104,6 +107,8 @@ files:
104
107
  - lib/rdf-vocab/vocab/prov.rb
105
108
  - rdf-vocab.gemspec
106
109
  - sources/dwcterms.rdf
110
+ - sources/iana-relation.rdf
111
+ - sources/iana-relation.xsl
107
112
  - spec/fixtures/dcterms.rdf
108
113
  - spec/spec_helper.rb
109
114
  - spec/unit/rdf_vocab_spec.rb
@@ -127,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
132
  version: '0'
128
133
  requirements: []
129
134
  rubyforge_project:
130
- rubygems_version: 2.4.3
135
+ rubygems_version: 2.2.2
131
136
  signing_key:
132
137
  specification_version: 4
133
138
  summary: A library of RDF vocabularies and vocabulary-generating tools