rdf-vocab 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +24 -200
- data/README.md +88 -33
- data/lib/{rdf-vocab → rdf}/vocab/acl.rb +19 -13
- data/lib/{rdf-vocab → rdf}/vocab/bibframe.rb +513 -510
- data/lib/rdf/vocab/cnt.rb +112 -0
- data/lib/{rdf-vocab → rdf}/vocab/crm.rb +799 -799
- data/lib/{rdf-vocab → rdf}/vocab/datacite.rb +53 -53
- data/lib/{rdf-vocab → rdf}/vocab/dwc.rb +459 -459
- data/lib/{rdf-vocab → rdf}/vocab/edm.rb +41 -41
- data/lib/rdf/vocab/extensions.rb +29 -0
- data/lib/{rdf-vocab → rdf}/vocab/fcrepo4.rb +38 -38
- data/lib/{rdf-vocab → rdf}/vocab/iana.rb +89 -166
- data/lib/{rdf-vocab → rdf}/vocab/identifiers.rb +58 -38
- data/lib/rdf/vocab/ldp.rb +218 -0
- data/lib/{rdf-vocab → rdf}/vocab/mads.rb +147 -147
- data/lib/{rdf-vocab → rdf}/vocab/marc_relators.rb +273 -269
- data/lib/{rdf-vocab → rdf}/vocab/mods.rb +178 -178
- data/lib/{rdf-vocab → rdf}/vocab/oa.rb +102 -102
- data/lib/{rdf-vocab → rdf}/vocab/ore.rb +32 -32
- data/lib/{rdf-vocab/vocab/premis/v1.rb → rdf/vocab/premis.rb} +147 -147
- data/lib/{rdf-vocab → rdf}/vocab/premis_event_type.rb +0 -0
- data/lib/rdf/vocab/version.rb +18 -0
- data/lib/rdf/vocab.rb +153 -0
- data/spec/spec_helper.rb +3 -84
- data/spec/vocab_spec.rb +64 -0
- metadata +109 -58
- data/.gitignore +0 -17
- data/.rspec +0 -2
- data/.travis.yml +0 -6
- data/CONTRIBUTING.md +0 -116
- data/CONTRIBUTORS.md +0 -6
- data/Gemfile +0 -4
- data/Rakefile +0 -8
- data/lib/rdf-vocab/config/vocab.yml +0 -109
- data/lib/rdf-vocab/tasks/vocab.rake +0 -44
- data/lib/rdf-vocab/version.rb +0 -5
- data/lib/rdf-vocab/vocab/fcrepo3.rb +0 -326
- data/lib/rdf-vocab/vocab/ldp.rb +0 -140
- data/lib/rdf-vocab/vocab/prov.rb +0 -1549
- data/lib/rdf-vocab.rb +0 -34
- data/rdf-vocab.gemspec +0 -26
- data/sources/dwcterms.rdf +0 -2679
- data/sources/iana-relation.rdf +0 -475
- data/sources/iana-relation.xsl +0 -65
- data/spec/fixtures/dcterms.rdf +0 -1077
- data/spec/unit/rdf_vocab_spec.rb +0 -27
data/CONTRIBUTING.md
DELETED
@@ -1,116 +0,0 @@
|
|
1
|
-
# How to Contribute
|
2
|
-
|
3
|
-
We want your help to make Project Hydra great.
|
4
|
-
There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.
|
5
|
-
|
6
|
-
## Hydra Project Intellectual Property Licensing and Ownership
|
7
|
-
|
8
|
-
All code contributors must have an Individual Contributor License Agreement (iCLA) on file with the Hydra Project Steering Group.
|
9
|
-
If the contributor works for an institution, the institution must have a Corporate Contributor License Agreement (cCLA) on file.
|
10
|
-
|
11
|
-
https://wiki.duraspace.org/display/hydra/Hydra+Project+Intellectual+Property+Licensing+and+Ownership
|
12
|
-
|
13
|
-
You should also add yourself to the `CONTRIBUTORS.md` file in the root of the project.
|
14
|
-
|
15
|
-
## Contribution Tasks
|
16
|
-
|
17
|
-
* Reporting Issues
|
18
|
-
* Making Changes
|
19
|
-
* Submitting Changes
|
20
|
-
* Merging Changes
|
21
|
-
|
22
|
-
### Reporting Issues
|
23
|
-
|
24
|
-
* Make sure you have a [GitHub account](https://github.com/signup/free)
|
25
|
-
* Submit a [Github issue](./issues) by:
|
26
|
-
* Clearly describing the issue
|
27
|
-
* Provide a descriptive summary
|
28
|
-
* Explain the expected behavior
|
29
|
-
* Explain the actual behavior
|
30
|
-
* Provide steps to reproduce the actual behavior
|
31
|
-
|
32
|
-
### Making Changes
|
33
|
-
|
34
|
-
* Fork the repository on GitHub
|
35
|
-
* Create a topic branch from where you want to base your work.
|
36
|
-
* This is usually the master branch.
|
37
|
-
* To quickly create a topic branch based on master; `git branch fix/master/my_contribution master`
|
38
|
-
* Then checkout the new branch with `git checkout fix/master/my_contribution`.
|
39
|
-
* Please avoid working directly on the `master` branch.
|
40
|
-
* You may find the [hub suite of commands](https://github.com/defunkt/hub) helpful
|
41
|
-
* Make commits of logical units.
|
42
|
-
* Your commit should include a high level description of your work in HISTORY.textile
|
43
|
-
* Check for unnecessary whitespace with `git diff --check` before committing.
|
44
|
-
* Make sure your commit messages are [well formed](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
|
45
|
-
* If you created an issue, you can close it by including "Closes #issue" in your commit message. See [Github's blog post for more details](https://github.com/blog/1386-closing-issues-via-commit-messages)
|
46
|
-
|
47
|
-
```
|
48
|
-
Present tense short summary (50 characters or less)
|
49
|
-
|
50
|
-
More detailed description, if necessary. It should be wrapped to 72
|
51
|
-
characters. Try to be as descriptive as you can, even if you think that
|
52
|
-
the commit content is obvious, it may not be obvious to others. You
|
53
|
-
should add such description also if it's already present in bug tracker,
|
54
|
-
it should not be necessary to visit a webpage to check the history.
|
55
|
-
|
56
|
-
Include Closes #<issue-number> when relavent.
|
57
|
-
|
58
|
-
Description can have multiple paragraphs and you can use code examples
|
59
|
-
inside, just indent it with 4 spaces:
|
60
|
-
|
61
|
-
class PostsController
|
62
|
-
def index
|
63
|
-
respond_with Post.limit(10)
|
64
|
-
end
|
65
|
-
end
|
66
|
-
|
67
|
-
You can also add bullet points:
|
68
|
-
|
69
|
-
- you can use dashes or asterisks
|
70
|
-
|
71
|
-
- also, try to indent next line of a point for readability, if it's too
|
72
|
-
long to fit in 72 characters
|
73
|
-
```
|
74
|
-
|
75
|
-
* Make sure you have added the necessary tests for your changes.
|
76
|
-
* Run _all_ the tests to assure nothing else was accidentally broken.
|
77
|
-
* When you are ready to submit a pull request
|
78
|
-
|
79
|
-
### Submitting Changes
|
80
|
-
|
81
|
-
[Detailed Walkthrough of One Pull Request per Commit](http://ndlib.github.io/practices/one-commit-per-pull-request/)
|
82
|
-
|
83
|
-
* Read the article ["Using Pull Requests"](https://help.github.com/articles/using-pull-requests) on GitHub.
|
84
|
-
* Make sure your branch is up to date with its parent branch (i.e. master)
|
85
|
-
* `git checkout master`
|
86
|
-
* `git pull --rebase`
|
87
|
-
* `git checkout <your-branch>`
|
88
|
-
* `git rebase master`
|
89
|
-
* It is likely a good idea to run your tests again.
|
90
|
-
* Squash the commits for your branch into one commit
|
91
|
-
* `git rebase --interactive HEAD~<number-of-commits>` ([See Github help](https://help.github.com/articles/interactive-rebase))
|
92
|
-
* To determine the number of commits on your branch: `git log master..<your-branch> --oneline | wc -l`
|
93
|
-
* Squashing your branch's changes into one commit is "good form" and helps the person merging your request to see everything that is going on.
|
94
|
-
* Push your changes to a topic branch in your fork of the repository.
|
95
|
-
* Submit a pull request from your fork to the project.
|
96
|
-
|
97
|
-
### Merging Changes
|
98
|
-
|
99
|
-
* It is considered "poor from" to merge your own request.
|
100
|
-
* Please take the time to review the changes and get a sense of what is being changed. Things to consider:
|
101
|
-
* Does the commit message explain what is going on?
|
102
|
-
* Does the code changes have tests? _Not all changes need new tests, some changes are refactorings_
|
103
|
-
* Does the commit contain more than it should? Are two separate concerns being addressed in one commit?
|
104
|
-
* Did the Travis tests complete successfully?
|
105
|
-
* If you are uncertain, bring other contributors into the conversation by creating a comment that includes their @username.
|
106
|
-
* If you like the pull request, but want others to chime in, create a +1 comment and tag a user.
|
107
|
-
|
108
|
-
## New Developers
|
109
|
-
A great way to get new developers involved and to learn the process is to have them go through the Hierarchy of Promises and create a pull request to improve it.
|
110
|
-
|
111
|
-
# Additional Resources
|
112
|
-
|
113
|
-
* [General GitHub documentation](http://help.github.com/)
|
114
|
-
* [GitHub pull request documentation](http://help.github.com/send-pull-requests/)
|
115
|
-
* [Pro Git](http://git-scm.com/book) is both a free and excellent book about Git.
|
116
|
-
* [A Git Config for Contributing](http://ndlib.github.io/practices/my-typical-per-project-git-config/)
|
data/CONTRIBUTORS.md
DELETED
data/Gemfile
DELETED
data/Rakefile
DELETED
@@ -1,109 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Vocabulary generator config
|
3
|
-
#
|
4
|
-
# The value of each outer key consists of attribute names and values for the `RDF::VocabularyLoader`
|
5
|
-
# instance created to generate that vocabulary by `RDF::Vocab.generate`.
|
6
|
-
#
|
7
|
-
# Note that "module_name" defaults to "RDF::Vocab" (instead of "RDF" as with `RDF::VocabularyLoader`).
|
8
|
-
#
|
9
|
-
# Example:
|
10
|
-
#
|
11
|
-
# mods:
|
12
|
-
# class_name: MODS
|
13
|
-
# uri: http://www.loc.gov/mods/rdf/v1#
|
14
|
-
# source: http://www.loc.gov/standards/mods/modsrdf/v1/modsrdf.owl
|
15
|
-
#
|
16
|
-
# RDF::Vocab.generate("mods") will create and run an instance of RDF::VocabularyLoader like so:
|
17
|
-
#
|
18
|
-
# loader = RDF::VocabularyLoader.new
|
19
|
-
# loader.module_name = "RDF::Vocab"
|
20
|
-
# loader.class_name = "MODS"
|
21
|
-
# loader.uri = "http://www.loc.gov/mods/rdf/v1#"
|
22
|
-
# loader.source = "http://www.loc.gov/standards/mods/modsrdf/v1/modsrdf.owl"
|
23
|
-
#
|
24
|
-
# which will generate the vocabulary:
|
25
|
-
#
|
26
|
-
# module RDF::Vocab
|
27
|
-
# class MODS < StrictVocabulary("http://www.loc.gov/mods/rdf/v1#")
|
28
|
-
#
|
29
|
-
# [...]
|
30
|
-
#
|
31
|
-
acl:
|
32
|
-
class_name: ACL
|
33
|
-
uri: http://www.w3.org/ns/auth/acl#
|
34
|
-
source: http://www.w3.org/ns/auth/acl
|
35
|
-
bibframe:
|
36
|
-
class_name: Bibframe
|
37
|
-
uri: http://bibframe.org/vocab/
|
38
|
-
source: http://bibframe.org/vocab.rdf
|
39
|
-
crm:
|
40
|
-
class_name: CRM
|
41
|
-
uri: http://www.cidoc-crm.org/cidoc-crm/
|
42
|
-
source: http://www.cidoc-crm.org/rdfs/cidoc_crm_v6.0-draft-2015January.rdfs
|
43
|
-
datacite:
|
44
|
-
class_name: DataCite
|
45
|
-
uri: http://purl.org/spar/datacite/
|
46
|
-
source: http://eelst.cs.unibo.it/apps/LODE/source?url=http://purl.org/spar/datacite
|
47
|
-
dwc:
|
48
|
-
class_name: DWC
|
49
|
-
uri: http://rs.tdwg.org/dwc/terms/
|
50
|
-
source: dwcterms.rdf
|
51
|
-
edm:
|
52
|
-
class_name: EDM
|
53
|
-
uri: http://www.europeana.eu/schemas/edm/
|
54
|
-
source: http://www.europeana.eu/schemas/edm/rdf/edm.owl
|
55
|
-
fcrepo4:
|
56
|
-
class_name: Fcrepo4
|
57
|
-
uri: http://fedora.info/definitions/v4/repository#
|
58
|
-
source: http://fedora.info/definitions/v4/2015/02/04/repository
|
59
|
-
# IANA publishes the Link Relation Types as an XML file, but not as RDF.
|
60
|
-
# See: http://www.iana.org/assignments/link-relations/link-relations.xml
|
61
|
-
# In order to generate an RDF representation of this file, the XSLT file at
|
62
|
-
# ./sources/iana-relation.xsl is applied, the result of which is stored
|
63
|
-
# in ./sources/iana-relation.rdf It is from that file that the Ruby
|
64
|
-
# representation is generated.
|
65
|
-
iana:
|
66
|
-
class_name: IANA
|
67
|
-
uri: http://www.iana.org/assignments/relation/
|
68
|
-
source: iana-relation.rdf
|
69
|
-
identifiers:
|
70
|
-
class_name: Identifiers
|
71
|
-
uri: http://id.loc.gov/vocabulary/identifiers/
|
72
|
-
source: http://id.loc.gov/vocabulary/identifiers.nt
|
73
|
-
ldp:
|
74
|
-
class_name: LDP
|
75
|
-
uri: http://www.w3.org/ns/ldp#
|
76
|
-
source: http://www.w3.org/ns/ldp
|
77
|
-
mads:
|
78
|
-
class_name: MADS
|
79
|
-
uri: http://www.loc.gov/mads/rdf/v1#
|
80
|
-
source: http://www.loc.gov/standards/mads/rdf/v1.rdf
|
81
|
-
marc_relators:
|
82
|
-
class_name: MARCRelators
|
83
|
-
uri: http://id.loc.gov/vocabulary/relators/
|
84
|
-
source: http://id.loc.gov/vocabulary/relators.nt
|
85
|
-
mods:
|
86
|
-
class_name: MODS
|
87
|
-
uri: http://www.loc.gov/mods/rdf/v1#
|
88
|
-
source: http://www.loc.gov/standards/mods/modsrdf/v1/modsrdf.owl
|
89
|
-
oa:
|
90
|
-
class_name: OA
|
91
|
-
uri: http://www.w3.org/ns/oa#
|
92
|
-
source: http://www.openannotation.org/spec/core/20130208/oa.owl
|
93
|
-
ore:
|
94
|
-
class_name: ORE
|
95
|
-
uri: http://www.openarchives.org/ore/terms/
|
96
|
-
source: http://www.openarchives.org/ore/1.0/terms
|
97
|
-
premis_v1:
|
98
|
-
module_name: RDF::Vocab::PREMIS
|
99
|
-
class_name: V1
|
100
|
-
uri: http://www.loc.gov/premis/rdf/v1#
|
101
|
-
source: http://www.loc.gov/premis/rdf/v1.rdf
|
102
|
-
premis_event_type:
|
103
|
-
class_name: PremisEventType
|
104
|
-
uri: http://id.loc.gov/vocabulary/preservation/eventType/
|
105
|
-
source: http://id.loc.gov/vocabulary/preservation/eventType.nt
|
106
|
-
prov:
|
107
|
-
class_name: PROV
|
108
|
-
uri: http://www.w3.org/ns/prov#
|
109
|
-
source: http://www.w3.org/ns/prov
|
@@ -1,44 +0,0 @@
|
|
1
|
-
require "rdf-vocab"
|
2
|
-
|
3
|
-
namespace :vocab do
|
4
|
-
RDF::Vocab.config.keys.sort.each do |vocab|
|
5
|
-
params = RDF::Vocab.config[vocab]
|
6
|
-
name = [params.fetch("module_name", "RDF::Vocab"), params["class_name"]].join("::")
|
7
|
-
desc "Generate #{name} vocabulary from source"
|
8
|
-
task vocab do
|
9
|
-
if outfile = ENV["output"]
|
10
|
-
File.open(outfile, "wb") do |output|
|
11
|
-
RDF::Vocab.generate(vocab, output)
|
12
|
-
end
|
13
|
-
else
|
14
|
-
RDF::Vocab.generate(vocab)
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
# Return a Hash of class_name => class for all
|
21
|
-
# vocab classes in rdf-vocab
|
22
|
-
def vocab_classes(mod = RDF::Vocab, memo = {})
|
23
|
-
mod.constants(false).each do |const|
|
24
|
-
cls = mod.const_get(const)
|
25
|
-
if cls.is_a?(Class)
|
26
|
-
memo[cls.__name__] = cls if cls < RDF::Vocabulary
|
27
|
-
elsif cls.is_a?(Module)
|
28
|
-
vocab_classes(cls, memo)
|
29
|
-
end
|
30
|
-
end
|
31
|
-
memo
|
32
|
-
end
|
33
|
-
|
34
|
-
namespace :vocabs do
|
35
|
-
desc "List all vocabularies in this package and their URIs"
|
36
|
-
task :list do
|
37
|
-
vocabs = vocab_classes
|
38
|
-
spaces = vocabs.keys.map(&:size).max + 2
|
39
|
-
vocabs.keys.sort.each do |key|
|
40
|
-
print "%-#{spaces}s" % key
|
41
|
-
puts vocabs[key].to_uri.to_s
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
data/lib/rdf-vocab/version.rb
DELETED
@@ -1,326 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
# This file generated automatically using vocab-fetch from github.com:fcrepo3/fcrepo/master/fcrepo-server/src/main/resources/rdfs/fedora_relsext_ontology.rdfs
|
3
|
-
# and edited for clarity and additional terms published in different serializations of the voabularies
|
4
|
-
require 'rdf'
|
5
|
-
module RDF::Vocab
|
6
|
-
module Fcrepo3
|
7
|
-
class System < RDF::StrictVocabulary("info:fedora/fedora-system:")
|
8
|
-
term :"ContentModel-3.0",
|
9
|
-
comment: %(Base Fedora 3 CModel cModel).freeze,
|
10
|
-
label: "Fedora 3 Content Model".freeze,
|
11
|
-
subClassOf: "info:fedora/fedora-system:def/model#FedoraObject".freeze,
|
12
|
-
type: "info:fedora/fedora-system:def/model#FedoraObject".freeze
|
13
|
-
term :"FedoraObject-3.0",
|
14
|
-
comment: %(Base Fedora 3 Object cModel).freeze,
|
15
|
-
label: "Fedora 3 Object".freeze,
|
16
|
-
subClassOf: "info:fedora/fedora-system:def/model#FedoraObject".freeze,
|
17
|
-
type: "info:fedora/fedora-system:def/model#FedoraObject".freeze
|
18
|
-
term :"ServiceDefinition-3.0",
|
19
|
-
comment: %(Fedora 3 Service Definition/BDef cModel).freeze,
|
20
|
-
label: "Fedora 3 Service Definition".freeze,
|
21
|
-
subClassOf: "info:fedora/fedora-system:def/model#FedoraObject".freeze,
|
22
|
-
type: "info:fedora/fedora-system:def/model#FedoraObject".freeze
|
23
|
-
term :"ServiceDeployment-3.0",
|
24
|
-
comment: %(Fedora 3 Service Deployment/BMech cModel).freeze,
|
25
|
-
label: "Fedora 3 Service Deployment".freeze,
|
26
|
-
subClassOf: "info:fedora/fedora-system:def/model#FedoraObject".freeze,
|
27
|
-
type: "info:fedora/fedora-system:def/model#FedoraObject".freeze
|
28
|
-
end
|
29
|
-
class Model < RDF::StrictVocabulary("info:fedora/fedora-system:def/model#")
|
30
|
-
# Class definitions
|
31
|
-
term :FedoraObject,
|
32
|
-
comment: %(The base type of all objects in Fedora).freeze,
|
33
|
-
label: "FedoraObject".freeze,
|
34
|
-
subClassOf: "rdfs:Resource".freeze,
|
35
|
-
type: "rdfs:Class".freeze
|
36
|
-
term :Datastream,
|
37
|
-
comment: %(Binary data associated with a Fedora object).freeze,
|
38
|
-
label: "Datastream".freeze,
|
39
|
-
subClassOf: "rdfs:Resource".freeze,
|
40
|
-
type: "rdfs:Class".freeze
|
41
|
-
term :ExtProperty,
|
42
|
-
comment: %(Reification of an extension property of a Fedora object used in messaging).freeze,
|
43
|
-
label: "ExtProperty".freeze,
|
44
|
-
subClassOf: "rdf:Property".freeze,
|
45
|
-
type: "rdfs:Class".freeze
|
46
|
-
term :State,
|
47
|
-
comment: %(The state of a Fedora object or datastream).freeze,
|
48
|
-
label: "State".freeze,
|
49
|
-
subClassOf: "rdfs:Resource".freeze,
|
50
|
-
type: "rdfs:Class".freeze
|
51
|
-
term :Active,
|
52
|
-
comment: %(State of an object available in the repository).freeze,
|
53
|
-
label: "Active".freeze,
|
54
|
-
subClassOf: "rdfs:Resource".freeze,
|
55
|
-
type: "info:fedora/fedora-system:def/model#State".freeze
|
56
|
-
term :Deleted,
|
57
|
-
comment: %(State of an object that should be considered deleted, but is not purged).freeze,
|
58
|
-
label: "Deleted".freeze,
|
59
|
-
subClassOf: "rdfs:Resource".freeze,
|
60
|
-
type: "info:fedora/fedora-system:def/model#State".freeze
|
61
|
-
term :Inactive,
|
62
|
-
comment: %(State of an object that should be considered temporarily unavailable).freeze,
|
63
|
-
label: "Inactive".freeze,
|
64
|
-
subClassOf: "rdfs:Resource".freeze,
|
65
|
-
type: "info:fedora/fedora-system:def/model#State".freeze
|
66
|
-
# Property definitions
|
67
|
-
property :altIds,
|
68
|
-
comment: %(The alternate IDs for a datastream).freeze,
|
69
|
-
label: "Alternate IDs".freeze,
|
70
|
-
domain: "info:fedora/fedora-system:def/model#Datastream",
|
71
|
-
range: "xsd:string".freeze,
|
72
|
-
type: "rdf:Property".freeze
|
73
|
-
property :controlGroup,
|
74
|
-
comment: %(indicates whether a Datastream's content is inline XML (X), Managed (M), Referenced (R) or External (E)).freeze,
|
75
|
-
label: "controlGroup".freeze,
|
76
|
-
domain: "info:fedora/fedora-system:def/model#Datastream",
|
77
|
-
range: "xsd:string".freeze,
|
78
|
-
type: "rdf:Property".freeze
|
79
|
-
property :createdDate,
|
80
|
-
comment: %(The UTC datetime an object was created).freeze,
|
81
|
-
label: "createdDate".freeze,
|
82
|
-
domain: "info:fedora/fedora-system:def/model#FedoraObject",
|
83
|
-
range: "xsd:dateTimeStamp".freeze,
|
84
|
-
type: "rdf:Property".freeze
|
85
|
-
property :definesMethod,
|
86
|
-
comment: %(indicates the name of a service method defined in this interface).freeze,
|
87
|
-
label: "definesMethod".freeze,
|
88
|
-
domain: "info:fedora/fedora-system:ServiceDefinition-3.0".freeze,
|
89
|
-
range: "xsd:NCName".freeze,
|
90
|
-
type: "rdf:Property".freeze
|
91
|
-
property :digest,
|
92
|
-
comment: %(indicates the checksum digest of a datastream's contents or the keyword 'none').freeze,
|
93
|
-
label: "digest".freeze,
|
94
|
-
domain: "info:fedora/fedora-system:def/model#Datastream",
|
95
|
-
range: "xsd:string".freeze,
|
96
|
-
type: "rdf:Property".freeze
|
97
|
-
property :digestType,
|
98
|
-
comment: %(indicates either the checksum algorithm or the keyword DISABLED).freeze,
|
99
|
-
label: "digestType".freeze,
|
100
|
-
domain: "info:fedora/fedora-system:def/model#Datastream",
|
101
|
-
range: "xsd:string".freeze,
|
102
|
-
type: "rdf:Property".freeze
|
103
|
-
property :downloadFilename,
|
104
|
-
comment: %(indicates the name to be used when downloading a datastream's contents).freeze,
|
105
|
-
label: "downloadFilename".freeze,
|
106
|
-
domain: "info:fedora/fedora-system:def/model#Datastream",
|
107
|
-
range: "xsd:string".freeze,
|
108
|
-
type: "rdf:Property".freeze
|
109
|
-
property :extProperty,
|
110
|
-
comment: %(indicates an extension property of an object in Fedora in messaging).freeze,
|
111
|
-
label: "extProperty".freeze,
|
112
|
-
domain: "info:fedora/fedora-system:def/model#FedoraObject".freeze,
|
113
|
-
range: "info:fedora/fedora-system:def/model#ExtProperty".freeze,
|
114
|
-
type: "rdf:Property".freeze
|
115
|
-
property :formatURI,
|
116
|
-
comment: %(A URI indicating the format of a datastream's content).freeze,
|
117
|
-
label: "formatURI".freeze,
|
118
|
-
type: "rdf:Property".freeze
|
119
|
-
property :hasModel,
|
120
|
-
comment: %(Indicates the Fedora 3 CModels for this object).freeze,
|
121
|
-
label: "hasModel".freeze,
|
122
|
-
subPropertyOf: "rdf:type".freeze,
|
123
|
-
domain: "info:fedora/fedora-system:FedoraObject-3.0".freeze,
|
124
|
-
range: "info:fedora/fedora-system:ContentModel-3.0".freeze,
|
125
|
-
type: "rdf:Property".freeze
|
126
|
-
property :hasService,
|
127
|
-
comment: %(indicates the Fedora 3 Service Definitions applicable to this CModel).freeze,
|
128
|
-
label: "hasService".freeze,
|
129
|
-
domain: "info:fedora/fedora-system:ContentModel-3.0".freeze,
|
130
|
-
range: "info:fedora/fedora-system:ServiceDefinition-3.0".freeze,
|
131
|
-
type: "rdf:Property".freeze
|
132
|
-
property :isContractorOf,
|
133
|
-
comment: %(indicates the Fedora 3 Content Models this deployment applies to).freeze,
|
134
|
-
label: "".freeze,
|
135
|
-
domain: "info:fedora/fedora-system:ServiceDeployment-3.0".freeze,
|
136
|
-
range: "info:fedora/fedora-system:ContentModel-3.0".freeze,
|
137
|
-
type: "rdf:Property".freeze
|
138
|
-
property :isDeploymentOf,
|
139
|
-
comment: %(indicates the Fedora 3 Service Definitions this deployment implements).freeze,
|
140
|
-
label: "isDeploymentOf".freeze,
|
141
|
-
domain: "info:fedora/fedora-system:ServiceDeployment-3.0".freeze,
|
142
|
-
range: "info:fedora/fedora-system:ServiceDefinition-3.0".freeze,
|
143
|
-
type: "rdf:Property".freeze
|
144
|
-
property :label,
|
145
|
-
comment: %(The label applied to a Fedora object).freeze,
|
146
|
-
label: "label".freeze,
|
147
|
-
domain: "info:fedora/fedora-system:def/model#FedoraObject".freeze,
|
148
|
-
range: "xsd:string".freeze,
|
149
|
-
type: "rdf:Property".freeze
|
150
|
-
property :length,
|
151
|
-
comment: %(indicates the length of a datastream's contents).freeze,
|
152
|
-
label: "length".freeze,
|
153
|
-
domain: "info:fedora/fedora-system:def/model#Datastream".freeze,
|
154
|
-
range: "xsd:nonNegativeInteger".freeze,
|
155
|
-
type: "rdf:Property".freeze
|
156
|
-
property :ownerId,
|
157
|
-
comment: %(indicates the owner of an object).freeze,
|
158
|
-
label: "ownerId".freeze,
|
159
|
-
type: "rdf:Property".freeze
|
160
|
-
property :state,
|
161
|
-
comment: %(indicates the state of the object or datastream).freeze,
|
162
|
-
label: "state".freeze,
|
163
|
-
domain: ["info:fedora/fedora-system:def/model#FedoraObject".freeze,"info:fedora/fedora-system:def/model#Datastream".freeze],
|
164
|
-
range: "info:fedora/fedora-system:def/model#State".freeze,
|
165
|
-
type: "rdf:Property".freeze
|
166
|
-
property :versionable,
|
167
|
-
comment: %(indicates whether a datastream's property and contents changes are being tracked as versions).freeze,
|
168
|
-
label: "versionable".freeze,
|
169
|
-
domain: "info:fedora/fedora-system:def/model#Datastream".freeze,
|
170
|
-
range: "xsd:boolean".freeze,
|
171
|
-
type: "rdf:Property".freeze
|
172
|
-
end
|
173
|
-
class RelsExt < RDF::StrictVocabulary("info:fedora/fedora-system:def/relations-external#")
|
174
|
-
|
175
|
-
# Property definitions
|
176
|
-
property :fedoraRelationship,
|
177
|
-
comment: %(The primitive property for all object-to-object relationships in the fedora ontology).freeze,
|
178
|
-
label: "Fedora Relationship".freeze,
|
179
|
-
type: "rdf:Property".freeze
|
180
|
-
property :hasAnnotation,
|
181
|
-
comment: %(A refinement of the generic descriptive relationship indicating a commentary relationship between fedora objects. The subject is a fedora object that is being commented on and the predicate is a fedora object that represents an annotation or comment about the subject. ).freeze,
|
182
|
-
label: "Has Annotation".freeze,
|
183
|
-
subPropertyOf: "info:fedora/fedora-system:def/relations-external#hasDescription".freeze,
|
184
|
-
"owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#isAnnotationOf).freeze,
|
185
|
-
type: "rdf:Property".freeze
|
186
|
-
property :hasCollectionMember,
|
187
|
-
label: "Has Collection Member".freeze,
|
188
|
-
subPropertyOf: "info:fedora/fedora-system:def/relations-external#hasMember".freeze,
|
189
|
-
"owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#isMemberOfCollection).freeze,
|
190
|
-
type: "rdf:Property".freeze
|
191
|
-
property :hasConstituent,
|
192
|
-
label: "Has Constituent".freeze,
|
193
|
-
subPropertyOf: "info:fedora/fedora-system:def/relations-external#hasPart".freeze,
|
194
|
-
"owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#isConstituentOf).freeze,
|
195
|
-
type: "rdf:Property".freeze
|
196
|
-
property :hasDependent,
|
197
|
-
label: "Has Dependent".freeze,
|
198
|
-
subPropertyOf: "info:fedora/fedora-system:def/relations-external#fedoraRelationship".freeze,
|
199
|
-
"owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#isDependentOf).freeze,
|
200
|
-
type: "rdf:Property".freeze
|
201
|
-
property :hasDerivation,
|
202
|
-
label: "Has Derivation".freeze,
|
203
|
-
subPropertyOf: "info:fedora/fedora-system:def/relations-external#fedoraRelationship".freeze,
|
204
|
-
"owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#isDerivationOf).freeze,
|
205
|
-
type: "rdf:Property".freeze
|
206
|
-
property :hasDescription,
|
207
|
-
comment: %(A generic descriptive relationship between fedora objects. The subject is a fedora object that is being described in some manner and the predicate is a fedora object that represents a descriptive entity that is about the subject. ).freeze,
|
208
|
-
label: "Has Description".freeze,
|
209
|
-
subPropertyOf: "info:fedora/fedora-system:def/relations-external#fedoraRelationship".freeze,
|
210
|
-
"owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#isDescriptionOf).freeze,
|
211
|
-
type: "rdf:Property".freeze
|
212
|
-
property :hasEquivalent,
|
213
|
-
label: "Has Equivalent".freeze,
|
214
|
-
subPropertyOf: "info:fedora/fedora-system:def/relations-external#fedoraRelationship".freeze,
|
215
|
-
type: "rdf:Property".freeze
|
216
|
-
property :hasMember,
|
217
|
-
label: "Has Member".freeze,
|
218
|
-
subPropertyOf: "info:fedora/fedora-system:def/relations-external#hasPart/".freeze,
|
219
|
-
"owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#isMemberOf).freeze,
|
220
|
-
type: "rdf:Property".freeze
|
221
|
-
property :hasMetadata,
|
222
|
-
comment: %(A refinement of the generic descriptive relationship indicating a metadata relationship between fedora objects. The subject is a fedora object and the predicate is a fedora object that represents metadata about the subject. ).freeze,
|
223
|
-
label: "Has Metadata".freeze,
|
224
|
-
subPropertyOf: "info:fedora/fedora-system:def/relations-external#hasDescription".freeze,
|
225
|
-
"owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#isMetadataFor).freeze,
|
226
|
-
type: "rdf:Property".freeze
|
227
|
-
property :hasPart,
|
228
|
-
label: "Has Part".freeze,
|
229
|
-
subPropertyOf: "info:fedora/fedora-system:def/relations-external#fedoraRelationship".freeze,
|
230
|
-
"owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#isPartOf).freeze,
|
231
|
-
type: "rdf:Property".freeze
|
232
|
-
property :hasSubset,
|
233
|
-
label: "Has Subset".freeze,
|
234
|
-
subPropertyOf: "info:fedora/fedora-system:def/relations-external#hasMember".freeze,
|
235
|
-
"owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#isSubsetOf).freeze,
|
236
|
-
type: "rdf:Property".freeze
|
237
|
-
property :isAnnotationOf,
|
238
|
-
comment: %(A refinement of the generic descriptive relationship indicating a commentary relationship between fedora objects. The subject is a fedora object that represents an annotation or comment and the predicate is a fedora object that is being commented upon by the subject.).freeze,
|
239
|
-
label: "Is Annotation Of".freeze,
|
240
|
-
subPropertyOf: "info:fedora/fedora-system:def/relations-external#isDescriptionOf".freeze,
|
241
|
-
"owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#hasAnnotation).freeze,
|
242
|
-
type: "rdf:Property".freeze
|
243
|
-
property :isConstituentOf,
|
244
|
-
label: "Is Constituent Of".freeze,
|
245
|
-
subPropertyOf: "info:fedora/fedora-system:def/relations-external#isPartOf".freeze,
|
246
|
-
"owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#hasConstituent).freeze,
|
247
|
-
type: "rdf:Property".freeze
|
248
|
-
property :isDependentOf,
|
249
|
-
label: "Is Dependent Of".freeze,
|
250
|
-
subPropertyOf: "info:fedora/fedora-system:def/relations-external#fedoraRelationship".freeze,
|
251
|
-
"owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#hasDependent).freeze,
|
252
|
-
type: "rdf:Property".freeze
|
253
|
-
property :isDerivationOf,
|
254
|
-
label: "Is Derivation Of".freeze,
|
255
|
-
subPropertyOf: "info:fedora/fedora-system:def/relations-external#fedoraRelationship".freeze,
|
256
|
-
"owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#hasDerivation).freeze,
|
257
|
-
type: "rdf:Property".freeze
|
258
|
-
property :isDescriptionOf,
|
259
|
-
comment: %(A generic descriptive relationship between fedora objects. The subject is a fedora object that represents a descriptive entity and the predicate is a fedora object that is being described in some manner by the subject.).freeze,
|
260
|
-
label: "Is Description Of".freeze,
|
261
|
-
subPropertyOf: "info:fedora/fedora-system:def/relations-external#fedoraRelationship".freeze,
|
262
|
-
"owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#hasDescription).freeze,
|
263
|
-
type: "rdf:Property".freeze
|
264
|
-
property :isMemberOf,
|
265
|
-
label: "Is Member Of".freeze,
|
266
|
-
subPropertyOf: "info:fedora/fedora-system:def/relations-external#isPartOf".freeze,
|
267
|
-
"owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#hasMember).freeze,
|
268
|
-
type: "rdf:Property".freeze
|
269
|
-
property :isMemberOfCollection,
|
270
|
-
label: "Is Member Of Collection".freeze,
|
271
|
-
subPropertyOf: "info:fedora/fedora-system:def/relations-external#isMemberOf".freeze,
|
272
|
-
"owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#hasCollectionMember).freeze,
|
273
|
-
type: "rdf:Property".freeze
|
274
|
-
property :isMetadataFor,
|
275
|
-
comment: %(A refinement of the generic descriptive relationship indicating a metadata relationship between fedora objects. The subject is a fedora object that represents metadata and the predicate is a fedora object for which the subject serves as metadata.).freeze,
|
276
|
-
label: "Is Metadata For".freeze,
|
277
|
-
subPropertyOf: "info:fedora/fedora-system:def/relations-external#isDescriptionOf".freeze,
|
278
|
-
"owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#hasMetadata).freeze,
|
279
|
-
type: "rdf:Property".freeze
|
280
|
-
property :isPartOf,
|
281
|
-
label: "Is Part Of".freeze,
|
282
|
-
subPropertyOf: "info:fedora/fedora-system:def/relations-external#fedoraRelationship".freeze,
|
283
|
-
"owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#hasPart).freeze,
|
284
|
-
type: "rdf:Property".freeze
|
285
|
-
property :isSubsetOf,
|
286
|
-
label: "Is Subset Of".freeze,
|
287
|
-
subPropertyOf: "info:fedora/fedora-system:def/relations-external#isMemberOf".freeze,
|
288
|
-
"owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#hasSubset).freeze,
|
289
|
-
type: "rdf:Property".freeze
|
290
|
-
end
|
291
|
-
class View < RDF::StrictVocabulary("info:fedora/fedora-system:def/view#")
|
292
|
-
property :disseminates,
|
293
|
-
comment: %(A property used to indicate that an object contains a datastream).freeze,
|
294
|
-
label: "disseminates".freeze,
|
295
|
-
domain: "info:fedora/fedora-system:FedoraObject-3.0".freeze,
|
296
|
-
range: "info:fedora/fedora-system:def/model#Datastream".freeze,
|
297
|
-
type: "rdf:Property".freeze
|
298
|
-
property :disseminationType,
|
299
|
-
comment: %(A property whose object is common to all Datastreams of a given DSID).freeze,
|
300
|
-
label: "dissemination type".freeze,
|
301
|
-
type: "rdf:Property".freeze
|
302
|
-
property :isVolatile,
|
303
|
-
comment: %(A property indicating that a datastream's content is a reference to content external to the repository).freeze,
|
304
|
-
label: "isVolatile".freeze,
|
305
|
-
domain: "info:fedora/fedora-system:def/model#Datastream".freeze,
|
306
|
-
range: "xsd:boolean".freeze,
|
307
|
-
type: "rdf:Property".freeze
|
308
|
-
property :lastModifiedDate,
|
309
|
-
comment: %(UTC datetime of the last change to an object or most recent version of this datastream).freeze,
|
310
|
-
label: "lastModifiedDate".freeze,
|
311
|
-
domain: ["info:fedora/fedora-system:def/model#FedoraObject".freeze,"info:fedora/fedora-system:def/model#Datastream".freeze],
|
312
|
-
range: "xsd:dateTimeStamp".freeze,
|
313
|
-
type: "rdf:Property".freeze
|
314
|
-
property :mimeType,
|
315
|
-
comment: %(The MIME type of this datastream's content).freeze,
|
316
|
-
label: "mimeType".freeze,
|
317
|
-
domain: "info:fedora/fedora-system:def/model#Datastream".freeze,
|
318
|
-
range: "xsd:string".freeze,
|
319
|
-
type: "rdf:Property".freeze
|
320
|
-
property :version,
|
321
|
-
comment: %(indicates Fedora server version in messaging).freeze,
|
322
|
-
label: "Server version".freeze,
|
323
|
-
type: "rdf:Property".freeze
|
324
|
-
end
|
325
|
-
end
|
326
|
-
end
|