rdf-vocab 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -8
- data/lib/rdf-vocab.rb +1 -0
- data/lib/rdf-vocab/config/vocab.yml +17 -17
- data/lib/rdf-vocab/tasks/vocab.rake +1 -1
- data/lib/rdf-vocab/version.rb +1 -1
- data/lib/rdf-vocab/vocab/ldp.rb +1 -1
- data/lib/rdf-vocab/vocab/mads.rb +1 -1
- data/lib/rdf-vocab/vocab/marc_relators.rb +820 -820
- data/lib/rdf-vocab/vocab/mods.rb +21 -21
- data/lib/rdf-vocab/vocab/premis/v1.rb +1 -1
- data/lib/rdf-vocab/vocab/premis_event_type.rb +50 -50
- data/rdf-vocab.gemspec +2 -2
- data/spec/unit/rdf_vocab_spec.rb +3 -3
- metadata +4 -4
data/lib/rdf-vocab/vocab/mods.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
# This file generated automatically using vocab-fetch from http://www.loc.gov/standards/mods/modsrdf/v1/modsrdf.owl
|
3
3
|
require 'rdf'
|
4
|
-
module RDF
|
4
|
+
module RDF::Vocab
|
5
5
|
class MODS < RDF::StrictVocabulary("http://www.loc.gov/mods/rdf/v1#")
|
6
6
|
|
7
7
|
# Class definitions
|
@@ -222,7 +222,7 @@ The resource which is the subject of this description.
|
|
222
222
|
comment: %(The genre \(or one of several genres\) of the resource. Represented in the MADS namespace. ).freeze,
|
223
223
|
domain: "http://www.loc.gov/mods/rdf/v1#ModsResource".freeze,
|
224
224
|
label: "Genre".freeze,
|
225
|
-
range: "
|
225
|
+
range: "mads:GenreForm".freeze,
|
226
226
|
type: "owl:ObjectProperty".freeze
|
227
227
|
property :identifier,
|
228
228
|
comment: %(identifier is a property for which all terms in the "identifier" vocabulary become subproperties. Thus for example 'identifer:isbn' is a subproperty saying in effect "has this ISBN" where 'isbn' is a term within that vocabulary. \(The prefix 'identifier:' is used to denote the namespace for the "identifier" vocabulary.).freeze,
|
@@ -363,13 +363,13 @@ The resource which is the subject of this description.
|
|
363
363
|
comment: %(A name - personal, corporate, conference, or family - associated with the resource. Represented in the MADS namespace. ).freeze,
|
364
364
|
domain: "http://www.loc.gov/mods/rdf/v1#ModsResource".freeze,
|
365
365
|
label: "Name".freeze,
|
366
|
-
range: "
|
366
|
+
range: "mads:Name".freeze,
|
367
367
|
type: "owl:ObjectProperty".freeze
|
368
368
|
property :namePrincipal,
|
369
369
|
comment: %(A name that has been distinguished as the principal name associated with the resource. There should be no more than one name principal name. \(The rule for determining the principal name is as follows: If the role associated with the name is 'creator' AND if it is the only name whose role is 'creator' then it is the principal name. Thus if there are more than one name, or no name, whose role is 'creator', then there is no principal name.\) If there is a principal name, and if there is a uniform title, then that name and title are to be combined into a nameTitle. ).freeze,
|
370
370
|
domain: "http://www.loc.gov/mods/rdf/v1#ModsResource".freeze,
|
371
371
|
label: "Name - Principle".freeze,
|
372
|
-
range: "
|
372
|
+
range: "mads:Name".freeze,
|
373
373
|
subPropertyOf: "http://www.loc.gov/mods/rdf/v1#name".freeze,
|
374
374
|
type: "owl:ObjectProperty".freeze
|
375
375
|
property :note,
|
@@ -490,13 +490,13 @@ The resource which is the subject of this description.
|
|
490
490
|
comment: %(Place of publication/origin. Used in connection with the origin of a resource, i.e., creation, publication, issuance, etc. Represented as a MADS Geographic.).freeze,
|
491
491
|
domain: "http://www.loc.gov/mods/rdf/v1#ModsResource".freeze,
|
492
492
|
label: "Place".freeze,
|
493
|
-
range: "
|
493
|
+
range: "mads:Geographic".freeze,
|
494
494
|
type: "owl:ObjectProperty".freeze
|
495
495
|
property :publisher,
|
496
496
|
comment: %(The name of the entity that published, printed, distributed, released, issued, or produced the resource.).freeze,
|
497
497
|
domain: "http://www.loc.gov/mods/rdf/v1#ModsResource".freeze,
|
498
498
|
label: "Publisher".freeze,
|
499
|
-
range: "
|
499
|
+
range: "mads:Name".freeze,
|
500
500
|
type: "owl:ObjectProperty".freeze
|
501
501
|
property :recordContentSource,
|
502
502
|
comment: %(The code or name of the organization that either created the original description or modified it.).freeze,
|
@@ -623,7 +623,7 @@ The resource which is the subject of this description.
|
|
623
623
|
The property 'relator:artist' relates the resource to an artist associated with the resource, represented as a mads name.).freeze,
|
624
624
|
domain: "http://www.loc.gov/mods/rdf/v1#ModsResource".freeze,
|
625
625
|
label: "Role (unbound)".freeze,
|
626
|
-
"owl:equivalentProperty" => %(
|
626
|
+
"owl:equivalentProperty" => %(marc_relators:role).freeze,
|
627
627
|
type: "owl:ObjectProperty".freeze
|
628
628
|
property :roleRelationship,
|
629
629
|
comment: %(Binds a name to the role that the named entity played for the resource. ).freeze,
|
@@ -635,7 +635,7 @@ The property 'relator:artist' relates the resource to an artist associated with
|
|
635
635
|
comment: %(The name included in a roleRelationship. The roleRelationship binds an name and a role, where the name is a name associated with the resource and is specified elsewhere via the hasName property. This mechanism is used when the role is not part of a known vocabulary. Otherwise, the relationship is expressed by using the role vocabulary term as the property; for example, see relator:creator.).freeze,
|
636
636
|
domain: "http://www.loc.gov/mods/rdf/v1#RoleRelationship".freeze,
|
637
637
|
label: "Role Relationship - Name".freeze,
|
638
|
-
range: "
|
638
|
+
range: "mads:Name".freeze,
|
639
639
|
type: "owl:ObjectProperty".freeze
|
640
640
|
property :roleRelationshipRole,
|
641
641
|
comment: %(The role associated with a name, where the name and role are bound together in a roleRelationship.).freeze,
|
@@ -658,70 +658,70 @@ The property 'relator:artist' relates the resource to an artist associated with
|
|
658
658
|
comment: %(A subject of the resource composed of several component subjects. ).freeze,
|
659
659
|
domain: "http://www.loc.gov/mods/rdf/v1#ModsResource".freeze,
|
660
660
|
label: "Subject - Complex".freeze,
|
661
|
-
range: "
|
661
|
+
range: "mads:ComplexSubject".freeze,
|
662
662
|
subPropertyOf: "http://www.loc.gov/mods/rdf/v1#subject".freeze,
|
663
663
|
type: "owl:ObjectProperty".freeze
|
664
664
|
property :subjectGenre,
|
665
665
|
comment: %(A subject of the resource which is a genre, expressed in terms of a MADS GenreForm.).freeze,
|
666
666
|
domain: "http://www.loc.gov/mods/rdf/v1#ModsResource".freeze,
|
667
667
|
label: "Subject - Genre Subject".freeze,
|
668
|
-
range: "
|
668
|
+
range: "mads:GenreForm".freeze,
|
669
669
|
subPropertyOf: "http://www.loc.gov/mods/rdf/v1#subject".freeze,
|
670
670
|
type: "owl:ObjectProperty".freeze
|
671
671
|
property :subjectGeographic,
|
672
672
|
comment: %(A subject of the resource which is a geographic entity, expressed in terms of a MADS Geographic.).freeze,
|
673
673
|
domain: "http://www.loc.gov/mods/rdf/v1#ModsResource".freeze,
|
674
674
|
label: "Subject - Geographic ".freeze,
|
675
|
-
range: "
|
675
|
+
range: "mads:Geographic".freeze,
|
676
676
|
subPropertyOf: "http://www.loc.gov/mods/rdf/v1#subject".freeze,
|
677
677
|
type: "owl:ObjectProperty".freeze
|
678
678
|
property :subjectGeographicCode,
|
679
679
|
comment: %(A subject of the resource which is a geographic entity, expressed as a geographic code and in terms of a MADS Geographic.).freeze,
|
680
680
|
domain: "http://www.loc.gov/mods/rdf/v1#ModsResource".freeze,
|
681
681
|
label: "Subject - Geographic Code ".freeze,
|
682
|
-
range: "
|
682
|
+
range: "mads:Geographic".freeze,
|
683
683
|
subPropertyOf: "http://www.loc.gov/mods/rdf/v1#subjectGeographic".freeze,
|
684
684
|
type: "owl:ObjectProperty".freeze
|
685
685
|
property :subjectHierarchicalGeographic,
|
686
686
|
comment: %(A subject of the resource which is a hierarchy of geographic entities expressed in terms of a MADS Geographics.).freeze,
|
687
687
|
domain: "http://www.loc.gov/mods/rdf/v1#ModsResource".freeze,
|
688
688
|
label: "Subject - Hierarchical Geographic ".freeze,
|
689
|
-
range: "
|
689
|
+
range: "mads:HierarchicalGeographic".freeze,
|
690
690
|
subPropertyOf: "http://www.loc.gov/mods/rdf/v1#subject".freeze,
|
691
691
|
type: "owl:ObjectProperty".freeze
|
692
692
|
property :subjectName,
|
693
693
|
comment: %(A subject of the resource which is a name, expressed in terms of a MADS Name.).freeze,
|
694
694
|
domain: "http://www.loc.gov/mods/rdf/v1#ModsResource".freeze,
|
695
695
|
label: "Subject - Name Subject".freeze,
|
696
|
-
range: "
|
696
|
+
range: "mads:Name".freeze,
|
697
697
|
subPropertyOf: "http://www.loc.gov/mods/rdf/v1#subject".freeze,
|
698
698
|
type: "owl:ObjectProperty".freeze
|
699
699
|
property :subjectOccupation,
|
700
700
|
comment: %(A subject of the resource which is an occupation, expressed in terms of a MADS Occupation.).freeze,
|
701
701
|
domain: "http://www.loc.gov/mods/rdf/v1#ModsResource".freeze,
|
702
702
|
label: "Subject - Occupation".freeze,
|
703
|
-
range: "
|
703
|
+
range: "mads:Occupation".freeze,
|
704
704
|
subPropertyOf: "http://www.loc.gov/mods/rdf/v1#subject".freeze,
|
705
705
|
type: "owl:ObjectProperty".freeze
|
706
706
|
property :subjectTemporal,
|
707
707
|
comment: %(A subject of the resource which is a temporal expression, expressed in terms of a MADS Temporal.).freeze,
|
708
708
|
domain: "http://www.loc.gov/mods/rdf/v1#ModsResource".freeze,
|
709
709
|
label: "Subject - Temporal".freeze,
|
710
|
-
range: "
|
710
|
+
range: "mads:Temporal".freeze,
|
711
711
|
subPropertyOf: "http://www.loc.gov/mods/rdf/v1#subject".freeze,
|
712
712
|
type: "owl:ObjectProperty".freeze
|
713
713
|
property :subjectTitle,
|
714
714
|
comment: %(A subject of the resource which is a title, expressed in terms of a MADS Title.).freeze,
|
715
715
|
domain: "http://www.loc.gov/mods/rdf/v1#ModsResource".freeze,
|
716
716
|
label: "Subject - Title".freeze,
|
717
|
-
range: "
|
717
|
+
range: "mads:Title".freeze,
|
718
718
|
subPropertyOf: "http://www.loc.gov/mods/rdf/v1#subject".freeze,
|
719
719
|
type: "owl:ObjectProperty".freeze
|
720
720
|
property :subjectTopic,
|
721
721
|
comment: %(A subject of the resource which is a topic, expressed in terms of a MADS Topic.).freeze,
|
722
722
|
domain: "http://www.loc.gov/mods/rdf/v1#ModsResource".freeze,
|
723
723
|
label: "Subject - Topic".freeze,
|
724
|
-
range: "
|
724
|
+
range: "mads:Topic".freeze,
|
725
725
|
subPropertyOf: "http://www.loc.gov/mods/rdf/v1#subject".freeze,
|
726
726
|
type: "owl:ObjectProperty".freeze
|
727
727
|
property :tableOfContents,
|
@@ -740,20 +740,20 @@ The property 'relator:artist' relates the resource to an artist associated with
|
|
740
740
|
comment: %(A title for the resource. Represented as a MADS Title.).freeze,
|
741
741
|
domain: "http://www.loc.gov/mods/rdf/v1#ModsResource".freeze,
|
742
742
|
label: "Title".freeze,
|
743
|
-
range: "
|
743
|
+
range: "mads:Title".freeze,
|
744
744
|
type: "owl:ObjectProperty".freeze
|
745
745
|
property :titlePrincipal,
|
746
746
|
comment: %(A title which has been distinguished as the principal title. \(This corresponds to a MODS XML titleInfo with no type attribute.\) There should be no more than one principal title. Represented as a MADS Title.).freeze,
|
747
747
|
domain: "http://www.loc.gov/mods/rdf/v1#ModsResource".freeze,
|
748
748
|
label: "Title - Principal".freeze,
|
749
|
-
range: "
|
749
|
+
range: "mads:Title".freeze,
|
750
750
|
subPropertyOf: "http://www.loc.gov/mods/rdf/v1#title".freeze,
|
751
751
|
type: "owl:ObjectProperty".freeze
|
752
752
|
property :titleUniform,
|
753
753
|
comment: %(A title which has been distinguished as a uniform title. \(This corresponds to a MODS XML titleInfo with 'type=uniform' attribute.\) There should be no more than one uniform title. Represented as a MADS Title, or, if there is a primary name, it is represented as a MADS NameTitle. ).freeze,
|
754
754
|
domain: "http://www.loc.gov/mods/rdf/v1#ModsResource".freeze,
|
755
755
|
label: "Title - Uniform".freeze,
|
756
|
-
range: "
|
756
|
+
range: "mads:Title".freeze,
|
757
757
|
subPropertyOf: "http://www.loc.gov/mods/rdf/v1#title".freeze,
|
758
758
|
type: "owl:ObjectProperty".freeze
|
759
759
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
# This file generated automatically using vocab-fetch from http://www.loc.gov/premis/rdf/v1.rdf
|
3
3
|
require 'rdf'
|
4
|
-
module RDF::PREMIS
|
4
|
+
module RDF::Vocab::PREMIS
|
5
5
|
class V1 < RDF::StrictVocabulary("http://www.loc.gov/premis/rdf/v1#")
|
6
6
|
|
7
7
|
# Class definitions
|
@@ -1,124 +1,124 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
# This file generated automatically using vocab-fetch from http://id.loc.gov/vocabulary/preservation/eventType.nt
|
3
3
|
require 'rdf'
|
4
|
-
module RDF
|
4
|
+
module RDF::Vocab
|
5
5
|
class PremisEventType < RDF::StrictVocabulary("http://id.loc.gov/vocabulary/preservation/eventType/")
|
6
6
|
|
7
7
|
# Extra definitions
|
8
8
|
term :cap,
|
9
|
-
"http://www.loc.gov/mads/rdf/v1#authoritativeLabel" => %(capture).freeze,
|
10
|
-
"http://www.loc.gov/mads/rdf/v1#code" => %(cap).freeze,
|
11
9
|
label: "capture".freeze,
|
10
|
+
"mads:authoritativeLabel" => %(capture).freeze,
|
11
|
+
"mads:code" => %(cap).freeze,
|
12
12
|
"skos:notation" => %(cap).freeze,
|
13
13
|
"skos:prefLabel" => %(capture).freeze,
|
14
|
-
type: ["
|
14
|
+
type: ["mads:Topic".freeze, "mads:Authority".freeze, "skos:Concept".freeze]
|
15
15
|
term :collection_PREMIS,
|
16
16
|
label: "PREMIS Event Types Collection".freeze,
|
17
|
-
type: "
|
17
|
+
type: "mads:MADSCollection".freeze
|
18
18
|
term :com,
|
19
|
-
"http://www.loc.gov/mads/rdf/v1#authoritativeLabel" => %(compression).freeze,
|
20
|
-
"http://www.loc.gov/mads/rdf/v1#code" => %(com).freeze,
|
21
19
|
label: "compression".freeze,
|
20
|
+
"mads:authoritativeLabel" => %(compression).freeze,
|
21
|
+
"mads:code" => %(com).freeze,
|
22
22
|
"skos:notation" => %(com).freeze,
|
23
23
|
"skos:prefLabel" => %(compression).freeze,
|
24
|
-
type: ["
|
24
|
+
type: ["mads:Topic".freeze, "mads:Authority".freeze, "skos:Concept".freeze]
|
25
25
|
term :cre,
|
26
|
-
"http://www.loc.gov/mads/rdf/v1#authoritativeLabel" => %(creation).freeze,
|
27
|
-
"http://www.loc.gov/mads/rdf/v1#code" => %(cre).freeze,
|
28
26
|
label: "creation".freeze,
|
27
|
+
"mads:authoritativeLabel" => %(creation).freeze,
|
28
|
+
"mads:code" => %(cre).freeze,
|
29
29
|
"skos:notation" => %(cre).freeze,
|
30
30
|
"skos:prefLabel" => %(creation).freeze,
|
31
|
-
type: ["
|
31
|
+
type: ["mads:Topic".freeze, "mads:Authority".freeze, "skos:Concept".freeze]
|
32
32
|
term :dea,
|
33
|
-
"http://www.loc.gov/mads/rdf/v1#authoritativeLabel" => %(deaccession).freeze,
|
34
|
-
"http://www.loc.gov/mads/rdf/v1#code" => %(dea).freeze,
|
35
33
|
label: "deaccession".freeze,
|
34
|
+
"mads:authoritativeLabel" => %(deaccession).freeze,
|
35
|
+
"mads:code" => %(dea).freeze,
|
36
36
|
"skos:notation" => %(dea).freeze,
|
37
37
|
"skos:prefLabel" => %(deaccession).freeze,
|
38
|
-
type: ["
|
38
|
+
type: ["mads:Topic".freeze, "mads:Authority".freeze, "skos:Concept".freeze]
|
39
39
|
term :dec,
|
40
|
-
"http://www.loc.gov/mads/rdf/v1#authoritativeLabel" => %(decompression).freeze,
|
41
|
-
"http://www.loc.gov/mads/rdf/v1#code" => %(dec).freeze,
|
42
40
|
label: "decompression".freeze,
|
41
|
+
"mads:authoritativeLabel" => %(decompression).freeze,
|
42
|
+
"mads:code" => %(dec).freeze,
|
43
43
|
"skos:notation" => %(dec).freeze,
|
44
44
|
"skos:prefLabel" => %(decompression).freeze,
|
45
|
-
type: ["
|
45
|
+
type: ["mads:Topic".freeze, "mads:Authority".freeze, "skos:Concept".freeze]
|
46
46
|
term :del,
|
47
|
-
"http://www.loc.gov/mads/rdf/v1#authoritativeLabel" => %(deletion).freeze,
|
48
|
-
"http://www.loc.gov/mads/rdf/v1#code" => %(del).freeze,
|
49
47
|
label: "deletion".freeze,
|
48
|
+
"mads:authoritativeLabel" => %(deletion).freeze,
|
49
|
+
"mads:code" => %(del).freeze,
|
50
50
|
"skos:notation" => %(del).freeze,
|
51
51
|
"skos:prefLabel" => %(deletion).freeze,
|
52
|
-
type: ["
|
52
|
+
type: ["mads:Topic".freeze, "mads:Authority".freeze, "skos:Concept".freeze]
|
53
53
|
term :der,
|
54
|
-
"http://www.loc.gov/mads/rdf/v1#authoritativeLabel" => %(decryption).freeze,
|
55
|
-
"http://www.loc.gov/mads/rdf/v1#code" => %(der).freeze,
|
56
54
|
label: "decryption".freeze,
|
55
|
+
"mads:authoritativeLabel" => %(decryption).freeze,
|
56
|
+
"mads:code" => %(der).freeze,
|
57
57
|
"skos:notation" => %(der).freeze,
|
58
58
|
"skos:prefLabel" => %(decryption).freeze,
|
59
|
-
type: ["
|
59
|
+
type: ["mads:Topic".freeze, "mads:Authority".freeze, "skos:Concept".freeze]
|
60
60
|
term :dig,
|
61
|
-
"http://www.loc.gov/mads/rdf/v1#authoritativeLabel" => %(digital signature validation).freeze,
|
62
|
-
"http://www.loc.gov/mads/rdf/v1#code" => %(dig).freeze,
|
63
61
|
label: "digital signature validation".freeze,
|
62
|
+
"mads:authoritativeLabel" => %(digital signature validation).freeze,
|
63
|
+
"mads:code" => %(dig).freeze,
|
64
64
|
"skos:notation" => %(dig).freeze,
|
65
65
|
"skos:prefLabel" => %(digital signature validation).freeze,
|
66
|
-
type: ["
|
66
|
+
type: ["mads:Topic".freeze, "mads:Authority".freeze, "skos:Concept".freeze]
|
67
67
|
term :fix,
|
68
|
-
"http://www.loc.gov/mads/rdf/v1#authoritativeLabel" => %(fixity check).freeze,
|
69
|
-
"http://www.loc.gov/mads/rdf/v1#code" => %(fix).freeze,
|
70
68
|
label: "fixity check".freeze,
|
69
|
+
"mads:authoritativeLabel" => %(fixity check).freeze,
|
70
|
+
"mads:code" => %(fix).freeze,
|
71
71
|
"skos:notation" => %(fix).freeze,
|
72
72
|
"skos:prefLabel" => %(fixity check).freeze,
|
73
|
-
type: ["
|
73
|
+
type: ["mads:Topic".freeze, "mads:Authority".freeze, "skos:Concept".freeze]
|
74
74
|
term :ing,
|
75
|
-
"http://www.loc.gov/mads/rdf/v1#authoritativeLabel" => %(ingestion).freeze,
|
76
|
-
"http://www.loc.gov/mads/rdf/v1#code" => %(ing).freeze,
|
77
75
|
label: "ingestion".freeze,
|
76
|
+
"mads:authoritativeLabel" => %(ingestion).freeze,
|
77
|
+
"mads:code" => %(ing).freeze,
|
78
78
|
"skos:notation" => %(ing).freeze,
|
79
79
|
"skos:prefLabel" => %(ingestion).freeze,
|
80
|
-
type: ["
|
80
|
+
type: ["mads:Topic".freeze, "mads:Authority".freeze, "skos:Concept".freeze]
|
81
81
|
term :mes,
|
82
|
-
"http://www.loc.gov/mads/rdf/v1#authoritativeLabel" => %(message digest calculation).freeze,
|
83
|
-
"http://www.loc.gov/mads/rdf/v1#code" => %(mes).freeze,
|
84
82
|
label: "message digest calculation".freeze,
|
83
|
+
"mads:authoritativeLabel" => %(message digest calculation).freeze,
|
84
|
+
"mads:code" => %(mes).freeze,
|
85
85
|
"skos:notation" => %(mes).freeze,
|
86
86
|
"skos:prefLabel" => %(message digest calculation).freeze,
|
87
|
-
type: ["
|
87
|
+
type: ["mads:Topic".freeze, "mads:Authority".freeze, "skos:Concept".freeze]
|
88
88
|
term :mig,
|
89
|
-
"http://www.loc.gov/mads/rdf/v1#authoritativeLabel" => %(migration).freeze,
|
90
|
-
"http://www.loc.gov/mads/rdf/v1#code" => %(mig).freeze,
|
91
89
|
label: "migration".freeze,
|
90
|
+
"mads:authoritativeLabel" => %(migration).freeze,
|
91
|
+
"mads:code" => %(mig).freeze,
|
92
92
|
"skos:notation" => %(mig).freeze,
|
93
93
|
"skos:prefLabel" => %(migration).freeze,
|
94
|
-
type: ["
|
94
|
+
type: ["mads:Topic".freeze, "mads:Authority".freeze, "skos:Concept".freeze]
|
95
95
|
term :nor,
|
96
|
-
"http://www.loc.gov/mads/rdf/v1#authoritativeLabel" => %(normalization).freeze,
|
97
|
-
"http://www.loc.gov/mads/rdf/v1#code" => %(nor).freeze,
|
98
96
|
label: "normalization".freeze,
|
97
|
+
"mads:authoritativeLabel" => %(normalization).freeze,
|
98
|
+
"mads:code" => %(nor).freeze,
|
99
99
|
"skos:notation" => %(nor).freeze,
|
100
100
|
"skos:prefLabel" => %(normalization).freeze,
|
101
|
-
type: ["
|
101
|
+
type: ["mads:Topic".freeze, "mads:Authority".freeze, "skos:Concept".freeze]
|
102
102
|
term :rep,
|
103
|
-
"http://www.loc.gov/mads/rdf/v1#authoritativeLabel" => %(replication).freeze,
|
104
|
-
"http://www.loc.gov/mads/rdf/v1#code" => %(rep).freeze,
|
105
103
|
label: "replication".freeze,
|
104
|
+
"mads:authoritativeLabel" => %(replication).freeze,
|
105
|
+
"mads:code" => %(rep).freeze,
|
106
106
|
"skos:notation" => %(rep).freeze,
|
107
107
|
"skos:prefLabel" => %(replication).freeze,
|
108
|
-
type: ["
|
108
|
+
type: ["mads:Topic".freeze, "mads:Authority".freeze, "skos:Concept".freeze]
|
109
109
|
term :val,
|
110
|
-
"http://www.loc.gov/mads/rdf/v1#authoritativeLabel" => %(validation).freeze,
|
111
|
-
"http://www.loc.gov/mads/rdf/v1#code" => %(val).freeze,
|
112
110
|
label: "validation".freeze,
|
111
|
+
"mads:authoritativeLabel" => %(validation).freeze,
|
112
|
+
"mads:code" => %(val).freeze,
|
113
113
|
"skos:notation" => %(val).freeze,
|
114
114
|
"skos:prefLabel" => %(validation).freeze,
|
115
|
-
type: ["
|
115
|
+
type: ["mads:Topic".freeze, "mads:Authority".freeze, "skos:Concept".freeze]
|
116
116
|
term :vir,
|
117
|
-
"http://www.loc.gov/mads/rdf/v1#authoritativeLabel" => %(virus check).freeze,
|
118
|
-
"http://www.loc.gov/mads/rdf/v1#code" => %(vir).freeze,
|
119
117
|
label: "virus check".freeze,
|
118
|
+
"mads:authoritativeLabel" => %(virus check).freeze,
|
119
|
+
"mads:code" => %(vir).freeze,
|
120
120
|
"skos:notation" => %(vir).freeze,
|
121
121
|
"skos:prefLabel" => %(virus check).freeze,
|
122
|
-
type: ["
|
122
|
+
type: ["mads:Topic".freeze, "mads:Authority".freeze, "skos:Concept".freeze]
|
123
123
|
end
|
124
124
|
end
|
data/rdf-vocab.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = RDF::Vocab::VERSION
|
9
9
|
spec.authors = ["David Chandek-Stark"]
|
10
10
|
spec.email = ["dchandekstark@gmail.com"]
|
11
|
-
spec.summary = %q{A library of RDF vocabularies and vocabulary-
|
12
|
-
spec.description = %q{A library of RDF vocabularies and vocabulary-
|
11
|
+
spec.summary = %q{A library of RDF vocabularies and vocabulary-generating tools}
|
12
|
+
spec.description = %q{A library of RDF vocabularies and vocabulary-generating tools}
|
13
13
|
spec.homepage = "https://github.com/projecthydra-labs/rdf-vocab"
|
14
14
|
spec.license = "APACHE2"
|
15
15
|
|
data/spec/unit/rdf_vocab_spec.rb
CHANGED
@@ -17,10 +17,10 @@ RSpec.describe RDF::Vocab do
|
|
17
17
|
eval(strio.read)
|
18
18
|
end
|
19
19
|
end
|
20
|
-
after { RDF.send(:remove_const, :Test) }
|
20
|
+
after { RDF::Vocab.send(:remove_const, :Test) }
|
21
21
|
it "should generate the vocabulary based on the config" do
|
22
|
-
expect(RDF::Test < ::RDF::StrictVocabulary("http://purl.org/dc/terms/")).to be true
|
23
|
-
expect(RDF::Test.creator).to be_a(RDF::Term)
|
22
|
+
expect(RDF::Vocab::Test < ::RDF::StrictVocabulary("http://purl.org/dc/terms/")).to be true
|
23
|
+
expect(RDF::Vocab::Test.creator).to be_a(RDF::Term)
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
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.
|
4
|
+
version: 0.3.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: 2014-12-
|
11
|
+
date: 2014-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: linkeddata
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '3.1'
|
69
|
-
description: A library of RDF vocabularies and vocabulary-
|
69
|
+
description: A library of RDF vocabularies and vocabulary-generating tools
|
70
70
|
email:
|
71
71
|
- dchandekstark@gmail.com
|
72
72
|
executables: []
|
@@ -118,7 +118,7 @@ rubyforge_project:
|
|
118
118
|
rubygems_version: 2.2.2
|
119
119
|
signing_key:
|
120
120
|
specification_version: 4
|
121
|
-
summary: A library of RDF vocabularies and vocabulary-
|
121
|
+
summary: A library of RDF vocabularies and vocabulary-generating tools
|
122
122
|
test_files:
|
123
123
|
- spec/fixtures/dcterms.rdf
|
124
124
|
- spec/spec_helper.rb
|