bensinober / marc_tools Goto Github PK
View Code? Open in Web Editor NEWruby scripts for handling MARC
ruby scripts for handling MARC
### MARCTOOLS - Collection of MARC conversion tools ### Ruby and Perl scripts # Creator: Benjamin Rokseth # Date: 15.11.2011 ########## ## csv2rdf.rb -- ruby script to Convert comma-separated table to semantic markup using headers as properties ########## ## FEATURES ## takes csv and uses column headers as properties first column is used as resource id, using base_uri from command line rdf type given in command line output can be .nt .rdf or .n3 ## USAGE ## csv2rdf.rb -i input_file.csv -o output_file -b base_uri -t rdf_type [-r recordlimit] -i input_file must be comma-separated file -o output_file extension can be either .rdf (slooow) .n3 (sloow) or .nt (very fast) -b base_uri must be uri -t rdf_type must be uri -r [number] stops processing after given number of records ## EXAMPLE ## ruby csv2rdf.rb -i example.csv -b http://example.com/bookreviews/ -t http://purl.org/stuff/rev#Review -o example.rdf ########## ## marc2csv.rb -- ruby script to convert NORMARC file to CSV ########## Usage: ruby marc2csv.rb -i input_file.mrc -o output_file.csv [-r recordlimit] ########## ## marcfix.pl -- Perl script removes breaking 000 fields from NORMARC ########## Usage: perl marcfix.pl inputfile.mrc > outputfile.mrc ########## ## marc2csv.rb -- ruby script to convert NORMARC binary file to CSV ########## Usage: ruby marc2xml.rb -i InputFile.mrc [-o OutputFile.csv] [-r recordlimit]\n" ## REQUIREMENTS ## ruby >= 1.8.7 rdf.rb (thanks to Arto Bendiken et.al. for the brilliant RDF library for ruby) rdf-rdfxml.rb (for rdf-xml output, requires development libraries libxml2 and libxslt1) rdf-n3.rb (for n3 output) ## UBUNTU INSTALL ## (for rdf-xml support) sudo apt-get install libxml2-dev libxslt1-dev gem install rdf rdf-rdfxml rdf-n3 (csv if ruby < 1.9)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.