rdf-ldp 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9c65e25ccfe58735498f6e8ef96ddc89169b36e6
4
+ data.tar.gz: 2587bdde58f904c6e428943eb0c08dfeabf3c4d9
5
+ SHA512:
6
+ metadata.gz: 8a0bd1a03bb070d56c912875788a2b1e5f61f1c02f6b0dc0f833f375e8737053677cc42054b9d12848167fce2ef69b4771a220a5b0503775c71d63bbf2c895e8
7
+ data.tar.gz: 37156eee4fc8143e7de55117f0e2f3c448a0bfd72892878fab0b75a6b8696e59d9eac876f5845ff6b432f057d89be38bf999c9ab44638f4feefb441b3b4668ca
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in open_annotation.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,13 @@
1
+ Copyright 2014 The Board of Trustees of the Leland Stanford Junior University.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
data/README.md ADDED
@@ -0,0 +1,36 @@
1
+ # rdf-ldp
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/rdf-ldp.svg)](http://badge.fury.io/rb/rdf-ldp)
4
+
5
+ Contains vocabularies to be used by RDF ruby gem https://github.com/ruby-rdf/rdf/ to simplify coding when using LDP data.
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'rdf-ldp'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install rdf-ldp
22
+
23
+ ## Usage
24
+
25
+ include rdf
26
+ include rdf-ldp
27
+
28
+ RDF::LDP.member #=> RDF::URI("http://www.w3.org/ns/ldp#member")
29
+
30
+ ## Contributing
31
+
32
+ 1. Fork it ( https://github.com/[my-github-username]/ldp/fork )
33
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
34
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
35
+ 4. Push to the branch (`git push origin my-new-feature`)
36
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
@@ -0,0 +1,5 @@
1
+ module RDF
2
+ module LDP
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
data/lib/rdf/ldp.rb ADDED
@@ -0,0 +1,140 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # This file generated automatically using vocab-fetch from http://www.w3.org/ns/ldp
3
+ require 'rdf'
4
+ module RDF
5
+ class LDP < RDF::StrictVocabulary("http://www.w3.org/ns/ldp")
6
+
7
+ # Class definitions
8
+ term :"#BasicContainer",
9
+ comment: %(An LDPC that uses a predefined predicate to simply link to its contained resources.).freeze,
10
+ label: "BasicContainer".freeze,
11
+ "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
12
+ subClassOf: "http://www.w3.org/ns/ldp#Container".freeze,
13
+ type: "rdfs:Class".freeze,
14
+ "vs:term_status" => %(unstable).freeze
15
+ term :"#Container",
16
+ comment: %(A Linked Data Platform RDF Source \(LDP-RS\) that also conforms to additional patterns and conventions for managing membership. Readers should refer to the specification defining this ontology for the list of behaviors associated with it.).freeze,
17
+ label: "Container".freeze,
18
+ "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
19
+ subClassOf: "http://www.w3.org/ns/ldp#RDFSource".freeze,
20
+ type: "rdfs:Class".freeze,
21
+ "vs:term_status" => %(unstable).freeze
22
+ term :"#DirectContainer",
23
+ comment: %(An LDPC that has the flexibility of choosing what form the membership triples take.).freeze,
24
+ label: "DirectContainer".freeze,
25
+ "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
26
+ subClassOf: "http://www.w3.org/ns/ldp#Container".freeze,
27
+ type: "rdfs:Class".freeze,
28
+ "vs:term_status" => %(unstable).freeze
29
+ term :"#IndirectContainer",
30
+ comment: %(An LDPC that is similar to a LDP-DC but it allows an indirection with the ability to list as member a resource, such as a URI representing a real-world object, that is different from the resource that is created).freeze,
31
+ label: "IndirectContainer".freeze,
32
+ "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
33
+ subClassOf: "http://www.w3.org/ns/ldp#Container".freeze,
34
+ type: "rdfs:Class".freeze,
35
+ "vs:term_status" => %(unstable).freeze
36
+ term :"#NonRDFSource",
37
+ comment: %(A Linked Data Platform Resource \(LDPR\) whose state is NOT represented as RDF.).freeze,
38
+ label: "NonRDFSource".freeze,
39
+ "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
40
+ subClassOf: "http://www.w3.org/ns/ldp#Resource".freeze,
41
+ type: "rdfs:Class".freeze,
42
+ "vs:term_status" => %(unstable).freeze
43
+ term :"#RDFSource",
44
+ comment: %(A Linked Data Platform Resource \(LDPR\) whose state is represented as RDF.).freeze,
45
+ label: "RDFSource".freeze,
46
+ "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
47
+ subClassOf: "http://www.w3.org/ns/ldp#Resource".freeze,
48
+ type: "rdfs:Class".freeze,
49
+ "vs:term_status" => %(unstable).freeze
50
+ term :"#Resource",
51
+ comment: %(A HTTP-addressable resource whose lifecycle is managed by a LDP server.).freeze,
52
+ label: "Resource".freeze,
53
+ "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
54
+ type: "rdfs:Class".freeze,
55
+ "vs:term_status" => %(unstable).freeze
56
+
57
+ # Property definitions
58
+ property :"#contains",
59
+ comment: %(Links a container with resources created through the container.).freeze,
60
+ domain: "http://www.w3.org/ns/ldp#Container".freeze,
61
+ label: "contains".freeze,
62
+ range: "rdfs:Resource".freeze,
63
+ "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
64
+ type: "rdf:Property".freeze,
65
+ "vs:term_status" => %(unstable).freeze
66
+ property :"#hasMemberRelation",
67
+ comment: %(Indicates which predicate is used in membership triples, and that the membership triple pattern is < membership-constant-URI , object-of-hasMemberRelation, member-URI >.).freeze,
68
+ domain: "http://www.w3.org/ns/ldp#Container".freeze,
69
+ label: "hasMemberRelation".freeze,
70
+ range: "rdf:Property".freeze,
71
+ "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
72
+ type: "rdf:Property".freeze,
73
+ "vs:term_status" => %(unstable).freeze
74
+ property :"#insertedContentRelation",
75
+ comment: %(Indicates which triple in a creation request should be used as the member-URI value in the membership triple added when the creation request is successful.).freeze,
76
+ domain: "http://www.w3.org/ns/ldp#Container".freeze,
77
+ label: "insertedContentRelation".freeze,
78
+ range: "rdf:Property".freeze,
79
+ "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
80
+ type: "rdf:Property".freeze,
81
+ "vs:term_status" => %(unstable).freeze
82
+ property :"#isMemberOfRelation",
83
+ comment: %(Indicates which predicate is used in membership triples, and that the membership triple pattern is < member-URI , object-of-isMemberOfRelation, membership-constant-URI >.).freeze,
84
+ domain: "http://www.w3.org/ns/ldp#Container".freeze,
85
+ label: "isMemmberOfRelation".freeze,
86
+ range: "rdf:Property".freeze,
87
+ "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
88
+ type: "rdf:Property".freeze,
89
+ "vs:term_status" => %(unstable).freeze
90
+ property :"#member",
91
+ comment: %(LDP servers should use this predicate as the membership predicate if there is no obvious predicate from an application vocabulary to use.).freeze,
92
+ domain: "http://www.w3.org/ns/ldp#Resource".freeze,
93
+ label: "member".freeze,
94
+ range: "rdfs:Resource".freeze,
95
+ "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
96
+ type: "rdf:Property".freeze,
97
+ "vs:term_status" => %(unstable).freeze
98
+ property :"#membershipResource",
99
+ comment: %(Indicates the membership-constant-URI in a membership triple. Depending upon the membership triple pattern a container uses, as indicated by the presence of ldp:hasMemberRelation or ldp:isMemberOfRelation, the membership-constant-URI might occupy either the subject or object position in membership triples.).freeze,
100
+ domain: "http://www.w3.org/ns/ldp#Container".freeze,
101
+ label: "membershipResource".freeze,
102
+ range: "rdf:Property".freeze,
103
+ "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
104
+ type: "rdf:Property".freeze,
105
+ "vs:term_status" => %(unstable).freeze
106
+
107
+ # Extra definitions
108
+ term :"#",
109
+ comment: %(This ontology provides an informal representation of the concepts and terms as defined in the LDP specification. Consult the LDP specification for normative reference.).freeze,
110
+ "dc:description" => %(All vocabulary URIs defined in the Linked Data Platform \(LDP\) namespace.).freeze,
111
+ "dc:title" => %(The W3C Linked Data Platform \(LDP\) Vocabulary).freeze,
112
+ label: "W3C Linked Data Platform (LDP)".freeze,
113
+ "rdfs:seeAlso" => [%(http://www.w3.org/2012/ldp).freeze, %(http://www.w3.org/TR/ldp-ucr/).freeze, %(http://www.w3.org/TR/ldp/).freeze, %(http://www.w3.org/2011/09/LinkedData/).freeze],
114
+ type: "owl:Ontology".freeze
115
+ term :"#MemberSubject",
116
+ comment: %(Used to indicate default and typical behavior for ldp:insertedContentRelation, where the member-URI value in the membership triple added when a creation request is successful is the URI assigned to the newly created resource.).freeze,
117
+ label: "MemberSubject".freeze,
118
+ "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
119
+ type: "rdf:Description".freeze,
120
+ "vs:term_status" => %(unstable).freeze
121
+ term :"#PreferContainment",
122
+ comment: %(URI identifying a LDPC's containment triples, for example to allow clients to express interest in receiving them.).freeze,
123
+ label: "PreferContainment".freeze,
124
+ "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
125
+ type: "rdf:Description".freeze,
126
+ "vs:term_status" => %(unstable).freeze
127
+ term :"#PreferEmptyContainer",
128
+ comment: %(URI identifying the subset of a LDPC's triples present in an empty LDPC, for example to allow clients to express interest in receiving them. Currently this excludes containment and membership triples, but in the future other exclusions might be added. This definition is written to automatically exclude those new classes of triples.).freeze,
129
+ label: "PreferEmptyContainer".freeze,
130
+ "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
131
+ type: "rdf:Description".freeze,
132
+ "vs:term_status" => %(unstable).freeze
133
+ term :"#PreferMembership",
134
+ comment: %(URI identifying a LDPC's membership triples, for example to allow clients to express interest in receiving them.).freeze,
135
+ label: "PreferMembership".freeze,
136
+ "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
137
+ type: "rdf:Description".freeze,
138
+ "vs:term_status" => %(unstable).freeze
139
+ end
140
+ end
data/rdf-ldp.gemspec ADDED
@@ -0,0 +1,24 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'rdf/ldp/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "rdf-ldp"
8
+ spec.version = RDF::LDP::VERSION
9
+ spec.authors = ["Naomi Dushay"]
10
+ spec.email = ["ndushay@stanford.edu"]
11
+ spec.summary = %q{Linked Data Platform vocabulary for RDF.rb}
12
+ spec.homepage = ""
13
+ spec.license = "Apache 2"
14
+
15
+ spec.files = `git ls-files -z`.split("\x0")
16
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
+ spec.require_paths = ["lib"]
19
+
20
+ spec.add_dependency 'rdf'
21
+
22
+ spec.add_development_dependency "bundler", "~> 1.6"
23
+ spec.add_development_dependency "rake", "~> 10.0"
24
+ end
metadata ADDED
@@ -0,0 +1,93 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rdf-ldp
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Naomi Dushay
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-10-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rdf
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.6'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.6'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ description:
56
+ email:
57
+ - ndushay@stanford.edu
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - Gemfile
63
+ - LICENSE
64
+ - README.md
65
+ - Rakefile
66
+ - lib/rdf/ldp.rb
67
+ - lib/rdf/ldp/version.rb
68
+ - rdf-ldp.gemspec
69
+ homepage: ''
70
+ licenses:
71
+ - Apache 2
72
+ metadata: {}
73
+ post_install_message:
74
+ rdoc_options: []
75
+ require_paths:
76
+ - lib
77
+ required_ruby_version: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ required_rubygems_version: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ requirements: []
88
+ rubyforge_project:
89
+ rubygems_version: 2.2.0
90
+ signing_key:
91
+ specification_version: 4
92
+ summary: Linked Data Platform vocabulary for RDF.rb
93
+ test_files: []