Module: LD4L::WorksRDF

Defined in:
lib/ld4l/works_rdf.rb,
lib/ld4l/works_rdf/version.rb,
lib/ld4l/works_rdf/configuration.rb,
lib/ld4l/works_rdf/models/generic_work.rb,
lib/ld4l/works_rdf/models/work_metadata.rb,
lib/ld4l/works_rdf/models/bibo/bibo_book.rb,
lib/ld4l/works_rdf/models/bibo/vivo_book.rb,
lib/ld4l/works_rdf/models/bibo/bibo_document.rb,
lib/ld4l/works_rdf/models/schema/schema_book.rb,
lib/ld4l/works_rdf/models/bibo/vivo_authorship.rb,
lib/ld4l/works_rdf/models/schema/schema_person.rb,
lib/ld4l/works_rdf/services/get_model_from_uri.rb,
lib/ld4l/works_rdf/models/bibframe/bibframe_work.rb,
lib/ld4l/works_rdf/models/bibframe/bibframe_place.rb,
lib/ld4l/works_rdf/models/bibframe/bibframe_title.rb,
lib/ld4l/works_rdf/models/schema/oclc_schema_book.rb,
lib/ld4l/works_rdf/models/schema/schema_publisher.rb,
lib/ld4l/works_rdf/models/bibframe/bibframe_person.rb,
lib/ld4l/works_rdf/models/bibframe/bibframe_instance.rb,
lib/ld4l/works_rdf/models/bibframe/bibframe_provider.rb,
lib/ld4l/works_rdf/models/bibframe/bibframe_identifier.rb,
lib/ld4l/works_rdf/services/get_metadata_from_oclc_uri.rb,
lib/ld4l/works_rdf/services/get_metadata_from_vivo_uri.rb,
lib/ld4l/works_rdf/models/bibframe/bibframe_organization.rb,
lib/ld4l/works_rdf/services/get_metadata_from_solr_query.rb,
lib/ld4l/works_rdf/services/get_metadata_from_marcxml_uri.rb,
lib/ld4l/works_rdf/services/attempt_generic_metadata_extraction.rb,
lib/ld4l/works_rdf/services/negotiation_services/response_header.rb,
lib/ld4l/works_rdf/services/metadata_services/set_error_in_metadata.rb,
lib/ld4l/works_rdf/services/negotiation_services/get_rdfxml_from_uri.rb,
lib/ld4l/works_rdf/services/negotiation_services/get_turtle_from_uri.rb,
lib/ld4l/works_rdf/services/negotiation_services/get_marcxml_from_uri.rb,
lib/ld4l/works_rdf/services/conversion_services/get_rdfxml_from_marcxml.rb,
lib/ld4l/works_rdf/services/metadata_services/get_metadata_from_solr_doc.rb,
lib/ld4l/works_rdf/services/metadata_services/get_metadata_from_bibo_model.rb,
lib/ld4l/works_rdf/services/metadata_services/get_metadata_from_oclc_model.rb,
lib/ld4l/works_rdf/services/metadata_services/get_metadata_from_vivo_model.rb,
lib/ld4l/works_rdf/services/repository_services/populate_graph_from_rdfxml.rb,
lib/ld4l/works_rdf/services/repository_services/populate_graph_from_turtle.rb,
lib/ld4l/works_rdf/services/metadata_services/get_metadata_from_generic_model.rb,
lib/ld4l/works_rdf/services/model_services/populate_oclc_model_from_repository.rb,
lib/ld4l/works_rdf/services/model_services/populate_vivo_model_from_repository.rb,
lib/ld4l/works_rdf/services/repository_services/populate_repository_from_graph.rb,
lib/ld4l/works_rdf/services/metadata_services/get_metadata_from_bibframe_models.rb,
lib/ld4l/works_rdf/services/model_services/populate_generic_model_from_repository.rb,
lib/ld4l/works_rdf/services/negotiation_services/get_solr_results_from_solr_query.rb,
lib/ld4l/works_rdf/services/model_services/populate_bibframe_models_from_repository.rb

Defined Under Namespace

Classes: AttemptGenericMetadataExtraction, BibframeIdentifier, BibframeInstance, BibframeOrganization, BibframePerson, BibframePlace, BibframeProvider, BibframeTitle, BibframeWork, BiboBook, BiboDocument, Configuration, GenericWork, GetMarcxmlFromURI, GetMetadataFromBibframeModels, GetMetadataFromBiboModel, GetMetadataFromGenericModel, GetMetadataFromMarcxmlURI, GetMetadataFromOclcModel, GetMetadataFromOclcURI, GetMetadataFromSolrDoc, GetMetadataFromSolrQuery, GetMetadataFromVivoModel, GetMetadataFromVivoURI, GetModelFromURI, GetRdfxmlFromMarcxml, GetRdfxmlFromURI, GetSolrResultsFromSolrQuery, GetTurtleFromURI, OclcSchemaBook, PopulateBibframeModelsFromRepository, PopulateGenericModelFromRepository, PopulateGraphFromRdfxml, PopulateGraphFromTurtle, PopulateOclcModelFromRepository, PopulateRepositoryFromGraph, PopulateVivoModelFromRepository, ResponseHeader, SchemaBook, SchemaPerson, SchemaPublisher, SetErrorInMetadata, VivoAuthorship, VivoBook, WorkMetadata

Constant Summary collapse

VERSION =
"0.1.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



21
22
23
# File 'lib/ld4l/works_rdf.rb', line 21

def configuration
  @configuration
end

Class Method Details

.class_from_string(class_name, container_class = Kernel) ⇒ Object



114
115
116
117
118
119
120
121
122
123
124
125
126
127
# File 'lib/ld4l/works_rdf.rb', line 114

def self.class_from_string(class_name, container_class=Kernel)
  container_class = container_class.name if container_class.is_a? Module
  container_parts = container_class.split('::')
  (container_parts + class_name.split('::')).flatten.inject(Kernel) do |mod, class_name|
    if mod == Kernel
      Object.const_get(class_name)
    elsif mod.const_defined? class_name.to_sym
      mod.const_get(class_name)
    else
      container_parts.pop
      class_from_string(class_name, container_parts.join('::'))
    end
  end
end

.configure {|configuration| ... } ⇒ Object

Yields:



32
33
34
# File 'lib/ld4l/works_rdf.rb', line 32

def self.configure
  yield(configuration)
end

.resetObject



28
29
30
# File 'lib/ld4l/works_rdf.rb', line 28

def self.reset
  @configuration = Configuration.new
end