From 968348a5d149f0b6f3f8129fa6541e7ed786689d Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Tue, 20 Jun 2006 16:08:13 +0000 Subject: [PATCH] Add a scraper for Dublin Core metadata embedded in HTML/XHTML META tags --- scrapers.sql | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/scrapers.sql b/scrapers.sql index 053c29ae5..65a7eeec4 100644 --- a/scrapers.sql +++ b/scrapers.sql @@ -1345,4 +1345,38 @@ utilities.HTTPUtilities.doGet(newUri, null, function(text) { }) model.addStatement(uri, prefixRDF + "type", prefixDummy + "journal", false); -wait();'); \ No newline at end of file +wait();'); + +REPLACE INTO "scrapers" VALUES('951c027d-74ac-47d4-a107-9c3069ab7b48', '2006-06-20 10:52:00', 'Scraper for Dublin Core expressed as HTML META elements', 'Simon Kornblith', NULL, +'var metaTags = doc.getElementsByTagName("meta"); + +if(metaTags) { + for(var i=0; i