rdf-vocab 3.2.0 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -4
- data/VERSION +1 -1
- data/lib/rdf/vocab/acl.rb +91 -89
- data/lib/rdf/vocab/as.rb +624 -622
- data/lib/rdf/vocab/bf2.rb +2241 -2239
- data/lib/rdf/vocab/bibframe.rb +2241 -2239
- data/lib/rdf/vocab/bibo.rb +943 -941
- data/lib/rdf/vocab/cc.rb +102 -100
- data/lib/rdf/vocab/cert.rb +107 -105
- data/lib/rdf/vocab/cnt.rb +92 -90
- data/lib/rdf/vocab/crm.rb +1793 -1791
- data/lib/rdf/vocab/datacite.rb +261 -263
- data/lib/rdf/vocab/dbo.rb +4307 -4305
- data/lib/rdf/vocab/dc.rb +665 -663
- data/lib/rdf/vocab/dc11.rb +109 -107
- data/lib/rdf/vocab/dcat.rb +373 -356
- data/lib/rdf/vocab/dcmitype.rb +91 -89
- data/lib/rdf/vocab/disco.rb +348 -346
- data/lib/rdf/vocab/doap.rb +304 -302
- data/lib/rdf/vocab/dwc.rb +2244 -2242
- data/lib/rdf/vocab/earl.rb +146 -144
- data/lib/rdf/vocab/ebucore.rb +4945 -4941
- data/lib/rdf/vocab/edm.rb +310 -308
- data/lib/rdf/vocab/exif.rb +777 -775
- data/lib/rdf/vocab/extensions.rb +2 -2
- data/lib/rdf/vocab/fcrepo4.rb +307 -305
- data/lib/rdf/vocab/foaf.rb +525 -523
- data/lib/rdf/vocab/geo.rb +34 -32
- data/lib/rdf/vocab/geojson.rb +66 -64
- data/lib/rdf/vocab/geonames.rb +3656 -3654
- data/lib/rdf/vocab/gr.rb +1204 -1202
- data/lib/rdf/vocab/gs1.rb +5881 -5879
- data/lib/rdf/vocab/ht.rb +194 -192
- data/lib/rdf/vocab/hydra.rb +439 -437
- data/lib/rdf/vocab/iana.rb +215 -213
- data/lib/rdf/vocab/ical.rb +726 -724
- data/lib/rdf/vocab/identifiers.rb +219 -217
- data/lib/rdf/vocab/iiif.rb +132 -130
- data/lib/rdf/vocab/jsonld.rb +205 -203
- data/lib/rdf/vocab/ldp.rb +193 -191
- data/lib/rdf/vocab/lrmi.rb +188 -186
- data/lib/rdf/vocab/ma.rb +318 -316
- data/lib/rdf/vocab/mads.rb +670 -668
- data/lib/rdf/vocab/marcrelators.rb +543 -541
- data/lib/rdf/vocab/mo.rb +1823 -1821
- data/lib/rdf/vocab/mods.rb +636 -634
- data/lib/rdf/vocab/nfo.rb +482 -480
- data/lib/rdf/vocab/oa.rb +333 -331
- data/lib/rdf/vocab/og.rb +198 -196
- data/lib/rdf/vocab/ogc.rb +43 -41
- data/lib/rdf/vocab/ore.rb +79 -77
- data/lib/rdf/vocab/org.rb +322 -320
- data/lib/rdf/vocab/pcdm.rb +73 -71
- data/lib/rdf/vocab/pplan.rb +97 -95
- data/lib/rdf/vocab/premis.rb +903 -901
- data/lib/rdf/vocab/premiseventtype.rb +143 -141
- data/lib/rdf/vocab/prov.rb +1360 -1358
- data/lib/rdf/vocab/ptr.rb +147 -145
- data/lib/rdf/vocab/rdau.rb +9447 -9438
- data/lib/rdf/vocab/rightsstatements.rb +123 -121
- data/lib/rdf/vocab/rsa.rb +44 -42
- data/lib/rdf/vocab/rss.rb +46 -44
- data/lib/rdf/vocab/schema.rb +14700 -14698
- data/lib/rdf/vocab/schemas.rb +14700 -14698
- data/lib/rdf/vocab/sd.rb +165 -163
- data/lib/rdf/vocab/sh.rb +1096 -1094
- data/lib/rdf/vocab/sioc.rb +615 -613
- data/lib/rdf/vocab/siocservices.rb +49 -47
- data/lib/rdf/vocab/sioctypes.rb +224 -222
- data/lib/rdf/vocab/skos.rb +202 -200
- data/lib/rdf/vocab/skosxl.rb +51 -49
- data/lib/rdf/vocab/v.rb +233 -231
- data/lib/rdf/vocab/vcard.rb +776 -774
- data/lib/rdf/vocab/vmd.rb +233 -231
- data/lib/rdf/vocab/void.rb +145 -143
- data/lib/rdf/vocab/vs.rb +27 -25
- data/lib/rdf/vocab/wdrs.rb +112 -110
- data/lib/rdf/vocab/wot.rb +135 -133
- data/lib/rdf/vocab/xhtml.rb +4 -2
- data/lib/rdf/vocab/xhv.rb +208 -206
- data/lib/rdf/vocab/xkos.rb +220 -218
- data/lib/rdf/vocab.rb +2 -0
- metadata +14 -3
data/lib/rdf/vocab/extensions.rb
CHANGED
@@ -275,7 +275,7 @@ module RDF
|
|
275
275
|
|
276
276
|
po.each do |predicate, objects|
|
277
277
|
term = jld_context.compact_iri(predicate, vocab: true)
|
278
|
-
node[term] = if jld_context.container(term)
|
278
|
+
node[term] = if jld_context.container(term).include?('@language')
|
279
279
|
lang_map = objects.inject({}) do |memo, o|
|
280
280
|
raise "Language-mapped term #{term} with non plain-literal #{o.inspect}" unless o.literal? && o.plain?
|
281
281
|
memo.merge(o.language.to_s => o.value)
|
@@ -499,7 +499,7 @@ module RDF
|
|
499
499
|
"gen-vocab": {
|
500
500
|
description: "Generate a vocabulary using a special serialization.",
|
501
501
|
parse: false, # Only parse if there are input files, otherwise, uses vocabulary
|
502
|
-
help: "gen-vocab --uri <vocabulary-URI> [--output
|
502
|
+
help: "gen-vocab --uri <vocabulary-URI> [--output-format ttl|jsonld|html] [options] [files]\nGenerate a vocabulary from repository using a special serialization.",
|
503
503
|
lambda: ->(files, **options) do
|
504
504
|
$stdout.puts "Generate Vocabulary"
|
505
505
|
raise ArgumentError, "Must specify vocabulary URI" unless options[:base_uri]
|