Skip to content

Commit 6b53732

Browse files
committed
Cleanup some doc strings and fix URLs.
1 parent f9668dd commit 6b53732

File tree

5 files changed

+28
-22
lines changed

5 files changed

+28
-22
lines changed

etc/doap.ttl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88

99
<rdf-ldp> a doap:Project ;
1010
doap:name "RDF::LDP" ;
11-
doap:homepage <http://rubygems.org/gems/rdf-ldp> ;
12-
doap:license <http://creativecommons.org/licenses/publicdomain/> ;
11+
doap:homepage <https://github.com/ruby-rdf/rdf-ldp> ;
12+
doap:license <https://creativecommons.org/licenses/publicdomain/> ;
1313
doap:shortdesc "A suite of LDP software and middleware for RDF.rb" ;
1414
doap:description "Implements a Linked Data Platform domain model, Rack middleware for server implementers, and a simple Sinatra-based server for RDF.rb" ;
1515
doap:created "2015-07-17"^^xsd:date ;
16-
doap:platform "Ruby" ;
16+
doap:programming-language "Ruby" ;
1717
doap:category <http://dbpedia.org/resource/Resource_Description_Framework>,
1818
<http://dbpedia.org/resource/Linked_Data_Platform>,
1919
<http://dbpedia.org/resource/Ruby_(programming_language)> ;
2020
doap:implements <http://www.w3.org/TR/ldp/> ;
21-
doap:bug-database <http://github.com/ruby-rdf/rdf-ldp/issues> ;
21+
doap:bug-database <https://github.com/ruby-rdf/rdf-ldp/issues> ;
2222
doap:vendor <https://github.com/orgs/ruby-rdf/teams/ldp#team> ;
2323
doap:developer <https://github.com/no-reply#self> ;
2424
doap:maintainer <https://github.com/no-reply#self> ;
@@ -28,16 +28,16 @@
2828

2929
<lamprey> a doap:Project ;
3030
doap:name "Lamprey" ;
31-
doap:homepage <http://rubygems.org/gems/rdf-ldp> ;
31+
doap:homepage <https://rubygems.org/gems/rdf-ldp> ;
3232
doap:license <http://creativecommons.org/licenses/publicdomain/> ;
3333
doap:shortdesc "A Ruby LDP server based on RDF.rb, RDF::LDP, and Sinatra." ;
3434
doap:created "2015-07-17"^^xsd:date ;
35-
doap:platform "Ruby" ;
35+
doap:programming-language "Ruby" ;
3636
doap:category <http://dbpedia.org/resource/Resource_Description_Framework>,
3737
<http://dbpedia.org/resource/Linked_Data_Platform>,
3838
<http://dbpedia.org/resource/Ruby_(programming_language)> ;
3939
doap:implements <http://www.w3.org/TR/ldp/> ;
40-
doap:bug-database <http://github.com/ruby-rdf/rdf-ldp/issues> ;
40+
doap:bug-database <https://github.com/ruby-rdf/rdf-ldp/issues> ;
4141
doap:vendor <https://github.com/orgs/ruby-rdf/teams/ldp#team> ;
4242
doap:developer <https://github.com/no-reply#self> ;
4343
doap:maintainer <https://github.com/no-reply#self> ;

lib/rack/ldp.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ def call(env)
108108
end
109109

110110
##
111-
# Specializes {Rack::LinkedData::ContentNegotiation}, making the default
111+
# Specializes `Rack::LinkedData::ContentNegotiation`, making the default
112112
# return type 'text/turtle'.
113113
#
114-
# @see Rack::LinkedData::ContentNegotiation}, making
114+
# @see Rack::LinkedData::ContentNegotiation, making
115115
class ContentNegotiation < Rack::LinkedData::ContentNegotiation
116116
DEFAULT_PREFIXES =
117117
Hash[*::RDF::Vocabulary.map { |v| [v.__prefix__, v.to_uri] }.flatten]

lib/rdf/ldp/container.rb

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,10 @@ def update(input, content_type, &block)
6969
# containment triple is completed when the transaction closes; otherwise it
7070
# is handled atomically.
7171
#
72-
# @param [RDF::Term] a new member for this container
73-
# @param transaction [RDF::Transaction] an active transaction as context for
74-
# the addition
72+
# @param [RDF::Term] resource
73+
# a new member for this container
74+
# @param transaction [RDF::Transaction] transaction
75+
# an active transaction as context for the addition
7576
# @return [Container] self
7677
def add(resource, transaction = nil)
7778
add_containment_triple(resource.to_uri, transaction)
@@ -85,9 +86,10 @@ def add(resource, transaction = nil)
8586
# containment triple is completed when the transaction closes; otherwise it
8687
# is handled atomically.
8788
#
88-
# @param [RDF::Term] a new member for this container
89-
# @param transaction [RDF::Transaction] an active transaction as context for
90-
# the removal
89+
# @param [RDF::Term] resource
90+
# a new member for this container
91+
# @param transaction [RDF::Transaction] transaction
92+
# an active transaction as context for the removal
9193
# @return [Container] self
9294
def remove(resource, transaction = nil)
9395
remove_containment_triple(resource.to_uri, transaction)
@@ -140,9 +142,11 @@ def remove_containment_triple(resource, transaction = nil)
140142
end
141143

142144
##
143-
# @param [RDF::Term] a member to be represented in the containment triple
145+
# @param [RDF::Term] resource
146+
# a member to be represented in the containment triple
144147
#
145-
# @return [RDF::URI] the containment triple, with a graph_name pointing
148+
# @return [RDF::URI]
149+
# the containment triple, with a graph_name pointing
146150
# to `#graph`
147151
def make_containment_triple(resource)
148152
RDF::Statement(subject_uri, CONTAINS_URI, resource,

lib/rdf/ldp/non_rdf_source.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ class NonRDFSource < Resource
2727
FORMAT_TERM = RDF::Vocab::DC11.format.freeze
2828

2929
##
30-
# @param [storage_adapter] a class implementing the StorageAdapter interface
30+
# @param [RDF::URI] subject_uri
31+
# @param [RDF::Queryable] data
32+
# @param [StorageAdapter] storage_adapter a class implementing the StorageAdapter interface
3133
#
3234
# @see RDF::LDP::Resource#initialize
3335
def initialize(subject_uri,
@@ -111,7 +113,7 @@ def description_uri
111113
##
112114
# Sets the MIME type for the resource in `metagraph`.
113115
#
114-
# @param [String] a string representing the content type for this LDP-NR.
116+
# @param [String] content_type a string representing the content type for this LDP-NR.
115117
# This SHOULD be a regisered MIME type.
116118
#
117119
# @return [StorageAdapter] the content type

lib/rdf/ldp/resource.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def to_uri
110110
##
111111
# Creates an unique id (URI Slug) for a resource.
112112
#
113-
# @note the current implementation uses {SecureRandom#uuid}.
113+
# @note the current implementation uses `SecureRandom#uuid`.
114114
#
115115
# @return [String] a unique ID
116116
def gen_id
@@ -203,9 +203,9 @@ def initialize(subject_uri, data = RDF::Repository.new)
203203
##
204204
# @abstract creates the resource
205205
#
206-
# @param [IO, File] input input (usually from a Rack env's
206+
# @param [IO, File] _input input (usually from a Rack env's
207207
# `rack.input` key) used to determine the Resource's initial state.
208-
# @param [#to_s] content_type a MIME content_type used to interpret the
208+
# @param [#to_s] _content_type a MIME content_type used to interpret the
209209
# input. This MAY be used as a content type for the created Resource
210210
# (especially for `LDP::NonRDFSource`s).
211211
#

0 commit comments

Comments
 (0)