Class: ActiveFedora::NtriplesRDFDatastream

Inherits:
RDFDatastream show all
Defined in:
lib/active_fedora/rdf/ntriples_rdf_datastream.rb

Constant Summary

Constants included from AttributeMethods

AttributeMethods::AttrNames

Instance Attribute Summary

Attributes inherited from File

#mime_type

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from RDFDatastream

#content, #content=, #content_changed?, #deserialize, #empty_or_blank_subject?, #freeze, #metadata?, #parent_uri, parent_uri, rdf_subject, #refresh_attributes, #resource, resource_class, #serialize, #term_values, #update_indexed_attributes, #uri=

Methods included from RDF::DatastreamIndexing

#primary_solr_name, #to_solr

Methods inherited from File

#attribute_will_change!, #changed?, #check_fixity, #content_changed?, #datastream_will_change!, #default_attributes, #default_attributes=, #described_by, #digest, #dirty_size, #empty?, #exists!, #freeze, #frozen?, #has_content?, #initialize, #inspect, #ldp_connection, #ldp_source, #metadata, #metadata?, #new_record?, #original_name, #original_name=, #persisted_size, #reload, #remote_content, #reset, #serialize!, #size, #to_solr, #uri, #uri=

Methods included from Versionable

#create_version, #has_versions?, #model_type, #restore_version, #versions

Methods included from File::Streaming

#authorization_key, #headers, #stream

Methods included from File::Persistence

#content, #content=, #retrieve_content, #save

Methods included from AttributeMethods

#[], #[]=, #attribute_names, #attributes

Constructor Details

This class inherits a constructor from ActiveFedora::File

Class Method Details

.default_attributesObject


5
6
7
# File 'lib/active_fedora/rdf/ntriples_rdf_datastream.rb', line 5

def self.default_attributes
  super.merge(:mimeType => 'text/plain')
end

Instance Method Details

#serialization_formatObject


9
10
11
# File 'lib/active_fedora/rdf/ntriples_rdf_datastream.rb', line 9

def serialization_format
  :ntriples
end