lib/rdf/ldp/non_rdf_source.rb in rdf-ldp-1.0.1 vs lib/rdf/ldp/non_rdf_source.rb in rdf-ldp-2.1.0

- old
+ new

@@ -13,11 +13,11 @@ # When a `NonRDFSource` is created, it also creates an `RDFSource` which # describes it. This resource is created at the URI in `#description_uri`, # the resource itself is returned by `#description`. # # @see RDF::LDP::Resource - # @see http://www.w3.org/TR/ldp/#dfn-linked-data-platform-non-rdf-source for + # @see https://www.w3.org/TR/ldp/#dfn-linked-data-platform-non-rdf-source for # a definition of NonRDFSource in LDP class NonRDFSource < Resource attr_reader :storage # Use the default filesystem-based storage adapter @@ -25,11 +25,13 @@ # Use DC elements format FORMAT_TERM = RDF::Vocab::DC11.format.freeze ## - # @param [storage_adapter] a class implementing the StorageAdapter interface + # @param [RDF::URI] subject_uri + # @param [RDF::Queryable] data + # @param [StorageAdapter] storage_adapter a class implementing the StorageAdapter interface # # @see RDF::LDP::Resource#initialize def initialize(subject_uri, data = RDF::Repository.new, storage_adapter = DEFAULT_ADAPTER) @@ -40,11 +42,11 @@ ## # @return [RDF::URI] uri with lexical representation # 'http://www.w3.org/ns/ldp#NonRDFSource' # - # @see http://www.w3.org/TR/ldp/#dfn-linked-data-platform-non-rdf-source + # @see https://www.w3.org/TR/ldp/#dfn-linked-data-platform-non-rdf-source def self.to_uri RDF::Vocab::LDP.NonRDFSource end ## @@ -109,10 +111,10 @@ end ## # Sets the MIME type for the resource in `metagraph`. # - # @param [String] a string representing the content type for this LDP-NR. + # @param [String] content_type a string representing the content type for this LDP-NR. # This SHOULD be a regisered MIME type. # # @return [StorageAdapter] the content type def content_type=(content_type) metagraph.delete([subject_uri, FORMAT_TERM])