#!/usr/bin/perl use CGI::Util; use Encode qw(_utf8_on); # Perl unicode hacking. use HTML::Entities qw(encode_entities_numeric); use LWP::Simple; # Manual mappings to Library of Congress Subject Headings. # I fill these in when I have the time. my $lcsh = { '110' => 'sh85084286', '111' => 'sh85094833', '113' => 'sh85033169', '114' => 'sh2006003964', '115' => 'sh85135395', '116' => 'sh85022510', '118' => 'sh85050452', '470' => 'sh85068863', '471' => 'sh85074944', '472' => 'sh85074948', '473' => 'sh87008049', '475' => 'sh85074950', '477' => 'sh85074964', '641' => 'sh85050184', '642' => 'sh85038076', '643' => 'sh85062635', '645' => 'sh85062549', '646' => 'sh85120542', }; $lcshCount = scalar( keys %$lcsh ); use DateTime; my $now = DateTime->now->ymd; open XML, ">decimalised.rdf"; open HTML, ">decimalised.html"; print XML < Decimalised Database of Concepts The decimalised database of concepts is a collection of topics suitable for use in linked data. The decimalised database of concepts is a collection of topics suitable for use in linked data. It is inspired by the Dewey Decimal Classification, but no guarantees are made about the closeness of its resemblance as a whole. SKOS mapping links are provided from this database to the Dewey system, to Library of Congree Classification codes and to DBPedia resources where possible. Toby Inkster 2009-03-24 $now http://purl.org/NET/decimalised#c[0-9]{3}(\.[0-9]+)? The subset of <#d> with integer numbers. http://purl.org/NET/decimalised#c[0-9]{3} The subset of <#d> with non-integer numbers. Although not currently listed, terms with decimal points (such as <#c025.431>) are considered to be defined by this document. http://purl.org/NET/decimalised#c[0-9]{3}\.[0-9]+ All integral Decimalised Database of Concepts terms include links to related Dewey Decimal Classification terms. info:ddc/22/eng//.+ Many integral Decimalised Database of Concepts terms include links to related Library of Congress Classifcation terms. http://inkdroid.org/lcco/.+ Some integral Decimalised Database of Concepts terms include links to related Library of Congress Subject Headings. These are added manually. There are currently $lcshCount such links. http://id.loc.gov/authorities/.+#concept Many integral Decimalised Database of Concepts terms include links to related DBPedia resources. http://dbpedia.org/resource/.+ application/rdf+xml text/plain text/html Contains only a subset of the information in the other versions. Number A number below 1000 to identify a resource within a scheme. EOF print HTML < Decimalised Database of Concepts

Decimalised Database of Concepts

This page is marked up with XHTML+RDFa 1.0, but the RDF/XML and N-Triples versions include much more information.

Concepts