Elamur Research

Efficient construction of metadata-enhanced web corpora

Paper · 2016 · Adrien Barbaresi

Summary

A webpage can contain an excellent example of language in use and still be difficult to cite. The page may give little indication of when the text appeared, who wrote it, or where the main entry ends and readers’ replies begin. These details matter in corpus linguistics, where researchers use collections of texts to study how people write. Adrien Barbaresi investigates whether a crawl designed around a single publishing system, WordPress, can find enough material to build a large corpus while preserving the information that makes individual entries identifiable.

The method looks for signs of WordPress before downloading full pages. It screens candidate addresses for URL patterns associated with the software and checks server response headers for stronger evidence. It then uses website sitemaps to find pages worth downloading. After parsing the pages, a WordPress-specific extractor separates entries from comments, keeps structural features such as paragraph boundaries, and records available metadata. A document needs both usable entry text and a publication date to enter the corpus. The resulting XML follows the Text Encoding Initiative guidelines.

The paper tests this approach on German blogs hosted at wordpress.com and on sites discovered through the Austrian .at domain. The hosted collection yields about 2.11 billion tokens from 6,024,187 files with usable dates and text. The .at crawl yields about 550 million tokens from about 2 million valid files. Across the experiments, the paper reports about 2.7 billion corpus tokens from 550 Gb of downloads. The results show that restricting a crawl by publishing software and requiring dated entries can still leave a substantial amount of text.

The two collections also show why the software a site runs tells only part of the story. The hosted collection includes communities devoted to hobbies and creative pursuits, and comments were extracted for 24% of its files. The .at collection includes substantial news, commercial, and specialist publishing, and comments were extracted for 7% of its files. Both collections meet the paper’s formal criterion of a blog as a series of dated entries. Their different uses of that form, and their different levels of observable discussion, make genre a separate question from successful extraction.

Deep dive: Efficient construction of metadata-enhanced web corpora

Adrien Barbaresi shows how targeted WordPress crawls build large text collections with publication dates and reveals how blog genres vary. · about 34 minutes to read

The problem and its context

Why a corpus needs identifiable entries

The paper starts from a practical problem for researchers who work with language evidence. A collection can contain a great deal of text while offering little information about the circumstances in which it appeared. A publication date makes an example usable for questions about language at a particular time. A source address helps a researcher identify the document. Titles and authorship, when they are available, give further ways to distinguish one piece of evidence from another. If a corpus flattens everything visible on a page into one string, even the distinction between the writer of the entry and the people responding to it can disappear.

Barbaresi places this problem in the context of the DWDS dictionary project, which already covered particular kinds of written German. Web material offered a way to extend that coverage to forms of writing associated with the internet and to more recent usage. The paper treats such a collection as a complement to resources with established genre coverage. A dated contribution from a hobby site and a dated story from a news outlet can both provide usable evidence, while serving different purposes in a linguistic study. A corpus needs to preserve enough information for the researcher to decide which evidence to use.

The paper describes the field as shifting from treating the web as a corpus in itself to using it as a source from which to build a corpus. The distinction has consequences for what gets downloaded. A broadly exploratory crawl encounters pages whose relevance becomes clear only after retrieval and processing. A focused crawl makes some selection decisions earlier, using properties related to the texts the collector is seeking. Barbaresi is concerned with both the cost of inspecting unwanted pages and the yield of research material that survives extraction. A collection procedure can therefore be judged in part by how much usable material it produces under its own admission rules.

The metadata problem also gives this task a different emphasis from earlier work in information retrieval. Identifying the central text of a page is valuable in both settings. For the corpus described here, the shape of the extracted text and the provenance attached to it also matter. A paragraph boundary can belong to the object a researcher wants to inspect. A date has to be associated with the particular entry. Comments can supply another kind of writing on the same page, provided the extractor can distinguish them from the entry. The task therefore brings together document discovery, information extraction, and decisions about the evidence a corpus should preserve.

How earlier work found and extracted blogs

Older methods of extracting data frequently relied on programs known as wrappers to find particular sections of a webpage and deliver the information they contained in a usable form. A hand-built wrapper can encode detailed knowledge of a site, but the paper notes the maintenance burden when page designs change. Research on automatically generating wrappers explored several alternatives. A system might induce rules that describe a page’s structure, learn to assign labels to regions from examples, or use statistical regularities to derive extraction heuristics. Work in both web corpus construction and retrieval drew on the document object model, the tree that represents elements in a parsed HTML document.

Blog search engines were early users of wrappers. The targets described in the paper include entry titles, author names, dates, comment counts, and addresses for archived posts. Other work concentrated specifically on extracting comments. Japanese weblog research also had reason to examine ordinary webpages alongside pages made with dedicated blogging software, because web diaries were already an established form. That example illustrates a tension the paper takes seriously. Selecting by software can make discovery and extraction easier, whereas selecting by a cultural or communicative form may require looking beyond the systems most closely associated with it.

A separate difficulty was finding a set of blogs to begin with. The paper describes a landscape of partial directories with no comprehensive listing. Glance and colleagues harvested addresses from specialized directories and found a practical ceiling of about 100,000 active weblogs for their study. An address obtained from a directory makes a site discoverable, but a directory-based collection is shaped by which sites people list there. Even a large inventory assembled in this way reflects a particular route into the population of blogs.

Feeds offered another route. RSS and Atom feeds can give a collector structured access to recent posts, sometimes including comments, and can supply the permanent address of an entry. In favorable cases they reduce the need to navigate archives or remove repeated material such as menus. The paper discusses the TREC blog collection as an example. It started from 100,649 predetermined blogs described as popular and added selected relevant blogs and spam blogs to broaden the material for retrieval tasks. Its construction illustrates the appeal of feeds and the importance of the initial selection. A dependable mechanism for acquiring entries leaves open which publishers should supply them.

Earlier corpus builders also concentrated on particular platforms. A Blogger collection described in the paper used 71,000 blogs for authorship research and contained posts without comments. The Birmingham Blog Corpus drew from Blogger and wordpress.com, where featured and trending blogs helped seed the crawl. It contained 222,245 posts and 2,253,855 comments, yielding about 95 million post tokens and 86 million comment tokens. These counts show the scale that comments can reach in a collection for which reader responses are of interest. They also make the source selection important when using such a collection to reason about ordinary levels of participation.

The Japanese YACIS corpus exemplified the advantages of a platform with clear HTML structure and many users writing in the target language. Its creators collected about 13 million webpages from 60,000 bloggers, yielding 5.6 billion tokens. Earlier work on the German part of wordpress.com pursued a different target, collecting 100 million tokens of material under Creative Commons licenses. That collection found comments on 12.7% of posts. The paper connects differences in comment coverage to earlier findings that popular blogs attract more replies. A crawl that begins with prominent sites can capture a different kind of interaction from one that starts with a broader set of addresses.

These precedents establish several ways to make a web collection manageable. Directories supply candidates. Feeds expose entries in a predictable format. Platform choice limits the variety of markup, and curated seeds can bring particular kinds of publishers into view. Barbaresi’s experiment combines that structural focus with explicit attention to how candidate sites are identified and how much dated text can actually be retained.

Why the definition of a blog matters

The paper distinguishes the outward form of a blog from its social uses. Earlier definitions often identified a blog by a sequence of dated entries shown with the newest first. Dedicated publishing software made that structure easy to maintain. A site might also have a persistent profile area and a blogroll, a list of links to other blogs. Cross-links within posts, blogrolls, trackbacks, and referrals helped earlier researchers describe the blogosphere as an interconnected set of communities. A trackback, in this setting, is a way for a site to signal that another site has referred to an entry.

Earlier typologies also asked why people published in this form. One distinguished personal journals, filters that directed readers to material elsewhere, and notebooks. Another organized blogs around functions such as keeping a diary, supporting a group, extending a column, or writing collaboratively. The paper also describes classifications that recognized expert, artistic, and promotional uses and treated comments or collaboration as dimensions along which sites could vary. The formal category was already capable of holding several different practices.

This history helps explain why WordPress is an interesting constraint. Its publishing conventions give a collector something recognizable to look for, and the same software can support sites with very different purposes. A useful extraction method can take advantage of the first property. A useful interpretation of the corpus has to account for the second. The paper addresses both by examining a hosted platform with a known German blogging population and a domain-wide search in which sites are encountered through their technical characteristics.

The method, step by step

From a candidate address to a corpus entry

The unit of discovery is initially an address, commonly called a URL. The crawler uses addresses to find sites likely to run WordPress. Once it has identified a site, its task changes. It needs an economical way to find that site’s entry pages. A sitemap is a site-provided list of addresses intended to help automated visitors discover those pages. The crawler uses the list to build a download queue. The final unit is an extracted entry with a usable date and text, together with whichever other fields the extractor can recover.

These units are worth keeping distinct. Several addresses may lead to a single site, and a single entry can appear through several routes on that site. Conversely, an entry acquired through a hosted service may declare a canonical address on a different domain. A canonical URL is the address the page identifies as the preferred reference for that content. The procedure therefore encounters identity at several stages, with redirects helping identify where a request ultimately leads, canonical URLs providing document-level provenance, and deduplication acting on extracted entries.

From candidate URLs to dated corpus entries

The steps in order.

From candidate URLs to dated corpus entriesStep 1: Gather candidate site addresses1. Gather candidate site addressesStep 2: Screen addresses for WordPress patterns2. Screen addresses for WordPress patternsStep 3: Check HTTP response headers3. Check HTTP response headersStep 4: Queue pages listed in sitemaps4. Queue pages listed in sitemapsStep 5: Download and parse entry pages5. Download and parse entry pagesStep 6: Extract metadata, posts, and comments6. Extract metadata, posts, and commentsStep 7: Deduplicate and retain dated entries7. Deduplicate and retain dated entriesStep 8: Encode and count corpus text8. Encode and count corpus text

Gather candidates using clues in their addresses

The experiments start from different pools. For the hosted collection, the author can draw on earlier work that had already found 158,719 German blogs at wordpress.com. For the site-discovery workflow, the paper describes assembling candidate addresses from earlier experiments, from pages already fetched, and from public sources that index or search the web. The CommonCrawl repository, the Internet Archive’s CDX index interface, and public instances of the Searx metasearch service were among the sources queried. Reusing addresses found on fetched pages also gives the crawl a way to extend itself through links.

Barbaresi distinguishes these queries from the randomized combinations of terms used in BootCaT. The queries here aim to surface addresses with useful formal properties. This choice fits the immediate question the crawler is trying to answer. At the discovery stage it wants to find a site running a kind of software, and some traces of that software may be visible before any document text is available.

WordPress allows site operators to select among several common permalink conventions. A permalink is meant to be a lasting address for an entry or page. The paper describes forms that use query parameters such as ?p=, paths that include dates, numbered paths with components such as archives, paths for tags or categories, and paths that use a hyphenated form of the post’s name. Configurable names and equivalents in other languages give the crawler additional variations to account for.

These patterns are useful as an inexpensive preliminary screen. Their evidential strength varies. A URL with a year and month may be worth inspecting because that format is common in WordPress, while a news site can organize its addresses by date for the same editorial reasons. Likewise, the use of hyphens in a title-based address says little on its own about how a site was built. The first pass therefore narrows a large candidate pool using already available strings. The next pass looks for signs more closely associated with the software.

Confirm likely WordPress sites using response headers

A full download would let the crawler inspect an HTML generator tag or other markup associated with WordPress. Doing that for every candidate would mean transferring page bodies during discovery. Barbaresi instead uses HTTP HEAD requests. A HEAD response supplies the server’s response headers, which can describe the resource and how it should be reached, without transferring the page body that a GET request would fetch. The method is described as needing less than three requests per domain name.

One clue is the X-Pingback response header on the home page. It can identify the address of a service associated with notifying sites about references to their entries. In the setup described by the paper, it frequently points to an address ending in xmlrpc.php. If the home page redirects, the address in the header can also help expose the site’s operative domain or path. Some widely used WordPress modules leave other recognizable header traces. The paper gives WP-Super-Cache as an example of particularly strong evidence.

The crawler can also check familiar login and feed paths. At /login or /wp-login.php, it looks for a status compatible with an existing resource, such as a success or redirect response, and occasionally 401. At /feed or /wp-feed.php, the Location header can be informative. These checks concern the public responses to requests. The crawler uses the responses as evidence about the publishing system and the address at which the site is actually served.

The clues can be considered individually or combined in a simple decision tree, the approach chosen in the paper. A decision tree applies a sequence of tests and uses the outcomes to determine which test or decision follows. Here the inputs are header and status observations. A strong software-specific trace can support a decision on its own. Other responses can be more informative in combination because redirects and successful responses also occur on sites running other software. The rule-based design reflects the author’s observation that ordinary WordPress installations commonly retain detectable defaults.

There is a second payoff from checking more than one address when needed. A list created by combining different indexes or crawls can contain aliases for the same destination. Following the evidence in responses helps the collector decide which domain and path are really in use. That gives the discovery pass a role in reducing duplication before the crawler queues document bodies. This early check addresses repeated network work. Later deduplication deals with repeated entry content that actually arrives.

Let sitemaps define the download queue

The author found sitemap-based discovery more tractable than trying to reconstruct the contents of a site by following every navigational route. An entry can be linked from its monthly archive, its category listing, and an index whose addresses change with a page parameter. Traversing those routes can bring the crawler back to the same document. A sitemap supplies a direct inventory of addresses that the site exposes for discovery, letting the collector pass more quickly from a recognized site to individual download candidates.

The choice has a consequence for what gets sampled. A site must offer a sitemap the crawler can find and use. An entry must also be reachable through the retrieval process built around those sitemaps. The author treats this as a practical restriction and observes that sites offering sitemaps generally accommodate automated visitors. The paper discusses robots.txt and crawl delays in this context. Those constraints apply to how a collector visits a site, while the sitemap helps answer which resource addresses it should consider.

In the hosted-platform experiment, the paper describes obtaining sitemaps for the known home pages. That route depends on earlier discovery work and on a recognizable hosting environment. The .at experiment repeatedly extracts addresses associated with the top-level domain, checks their potential to lead to WordPress sites, looks for sitemaps, and queues addresses that are new. The crawler can then draw further candidates from downloaded material or refresh its pool from the other sources used for discovery. The iterations therefore involve both the retrieval of entries and the replenishment of possible sites.

The scope is focused in two respects. The collections are organized by a language or domain interest, and candidate sites are selected by technical structure. The hosted experiment seeks German blogging material. The .at experiment uses the national domain as its entry point and studies the group of sites that the WordPress and sitemap criteria expose. This difference shapes the interpretation of the resulting collections. A language-centered source pool and a domain-centered crawl represent different ways of getting to the documents.

Extract entries and comments from the page tree

After downloading a page, the wrapper parses its HTML into a tree. Paragraphs, headings, containers, and other elements can then be addressed according to their position and properties. The wrapper uses XPath expressions, which describe how to select elements or branches of that tree. The selected branches can be pruned to remove unwanted material, and some HTML elements can be converted to corresponding elements in the output format.

The underlying assumption is that pages running WordPress have enough in common for a dedicated extractor to be useful across sites. The assumption allows for variation. Themes and plugins affect the rendered HTML, and site operators make different choices about what to display. A field may be easy to locate on one site and absent or represented differently on another. The extractor is designed to exploit recurring structures while working with the fields that a particular page makes available.

The target fields are the entry title, site title, publication date, canonical URL, author, categories, and tags. These fields describe different aspects of a document. The entry title identifies a particular item, while the site title puts it in a publishing context. A category or tag records a publisher’s way of grouping or describing material. An author field, where it can be found, offers another piece of provenance. The canonical URL can point to the preferred reference even when the crawler reached the same text through another address.

The distinction between entry text and comments is explicit in the output. Comments can be recorded in a series of paragraphs with formatting, separately from the main post. The wrapper also keeps boundaries such as titles and paragraphs and discards links from the text prepared for corpus use. Retaining a canonical source address as metadata is compatible with that choice. The source address identifies the entry, whereas hyperlinks inside the page are part of a separate decision about what to preserve from the original markup.

The resulting output is XML, with the selected structures encoded according to the Text Encoding Initiative guidelines. XML represents text and metadata through explicit markup. Here it gives the extracted text a form that can carry its internal boundaries and accompanying fields together. The author presents adherence to the guidelines as a way to support exchange and reuse in a research community. The representation is particularly relevant when an investigator needs to select some parts of a record, such as the entry or its replies, and interpret their origin separately.

Decide which entries count and characterize the collection

The collector requires a usable publication date and usable entry content. A document is excluded from the corpus if either is absent or the extractor fails to recover it. This rule is important because successful retrieval only shows that an address returned a document. Successful processing can produce a file with some recognizable content or metadata. Admission to the corpus is a stronger condition tied to the paper’s purpose of assembling dated entries. The reported counts distinguish these stages.

Deduplication acts at the entry level. A copy reached through another address can burden a corpus even after the crawler has reduced repeated visits through its choice of sitemaps. Entry-level deduplication is directed at that later problem. Canonicalization, meanwhile, changes the address and possibly the domain under which a document is counted. Its effect on the domain totals is visible in the .at experiment.

The German platform experiment uses langid.py for language identification. The toolchain for evaluating sources has a name that begins with “Filtering and Language identification” and ends with “for URL Crawling Seeds.” The paper describes operations that include screening obvious spam and material without text, checking redirects, collecting information about hosts and markup, removing HTML code, and checking document validity. The .at experiment leaves language identification out of its collection procedure because it has no intended language filter. The author expects much of its content to be German and later considers what its extracted labels suggest about the intended readership.

Finally, WASTE supplies token counts through tokenization, the segmentation of text into units that can be counted and processed. Here tokens measure the size of the usable text collection. Document counts describe how many entries or files pass particular stages, and download volumes describe the material transferred or retained. Each measure answers a different question. A site with many entries can contribute disproportionately to document counts, and a large set of short entries can have a different effect on token totals than a smaller set of long entries.

Experiments and results

How the paper measures yield

The paper evaluates the procedure through collection outcomes instead of a shared test set of pages labeled for every metadata field. It reports the volume downloaded, the material remaining after processing, the number of documents with usable dates and text, and the number of tokens available from those documents. It also examines metadata frequencies and the kinds of sites that contribute many entries. These measures show how a corpus is formed from the downloads and what it contains once formed.

Earlier collections provide context for scale and methods of acquisition. The TREC material supplies a point of comparison for dates that appear implausible, and the author’s earlier Creative Commons collection shows what had been collected under a different restriction on the same hosted platform. The paper uses those comparisons descriptively. The experiments themselves are two applications with different discovery scopes, and their results should be read with those scopes in view. There is no shared crawler baseline evaluated on the two source pools under the same conditions.

A further distinction is the one between date usability and the rest of the record. A count of documents with a credible publication year measures the availability of time information at the resolution the author reports for the year analysis. The count of valid files additionally concerns the availability of entry content. Counts for categories, tags, and comments describe other fields recovered from the collections. None is interchangeable with the headline figure for usable corpus tokens.

German blogs on wordpress.com

During the summer of 2015, the hosted-platform experiment retrieved sitemaps for known home pages and downloaded material from 145,507 websites. The initial total was 6,605,078 documents occupying 390 Gb. Processing left 6,095,630 files occupying 36 Gb. The set the paper calls valid contained 6,024,187 files from 141,648 websites. These files had usable dates and entry content and supplied about 2.11 billion tokens.

The figures describe distinct stages in producing the corpus. The downloaded volume includes the web material the crawler had to obtain. The processed volume describes the files after conversion and filtering. The token total comes from the valid text, which is the material available for subsequent linguistic work. The large reduction in volume also illustrates what the choice of representation and the removal of unwanted material do to the collection, independently of the number of entries ultimately judged usable.

For the time distribution, Barbaresi reports 6,095,206 documents with at least a credible publication year, or 92.3% of the downloaded documents in this experiment. The dates are recovered from page metadata. That gives the date measure a different origin from dates read from permalinks supplied by feeds, as in the comparison discussed by the paper. It also means that the statistic describes a property of the page records as collected. The paper identifies some dates as implausible and discusses the possibility that authors exercised their own discretion in setting dates.

In the annual distribution, 2012 accounts for 1,066,996 documents and 2013 for 1,108,495 documents. The figures for 2014 and 2015 are 717,861 and 362,633 documents respectively. Earlier years have much smaller counts, with 1,746 in 2003 and 62,901 in 2006. These are years assigned to documents in a collection acquired during 2015. They give a researcher a sense of where the available dated evidence is concentrated, while the way the collection was assembled matters for any interpretation of long-term publishing activity.

Barbaresi examines prominent source domains using the canonical addresses recovered from the documents. The discussion characterizes the leading sources as oriented toward communities organized around interests and creative pursuits. Sites concerned with photography and craft are recognizable examples of why provenance and genre matter separately. A site can be clearly identifiable and fit the dated-entry criterion while a substantial part of what it publishes is visual. For a collection aimed at language study, the topic can be useful and the supply of running text can still vary with how the site presents it.

Categories were recovered for 4,777,546 pages. The experiment records 10,288,861 category uses and 312,055 distinct categories. The most common label, Uncategorized, occurs 588,638 times. Allgemein, a general label, occurs 239,796 times. Politik occurs 71,534 times. The counts show both the scale of the metadata available and the different kinds of information a category can convey. A default label records a publishing setting. A subject label can help a reader characterize the content. Both appear in the same field.

Tags were recovered for 2,312,843 pages, with 15,856,481 uses and 2,431,920 distinct tags. Fotografie leads the tag list with 35,910 uses, followed by Berlin with 34,553. The paper also reports frequent tags for subjects such as music, art, and nature. The category and tag results offer complementary views. Categories frequently give broad sections or defaults, while the prominent tags in this collection provide somewhat more detail about interests and places. The reported counts of uses and distinct labels answer different questions about that vocabulary. One describes how frequently labels were assigned, and the other describes how many different labels the extraction recovered.

The author reports extracting comments for 1,454,752 files, corresponding to 24% in the paper’s account of the hosted collection. This fits the interpretation of much of the hosted material as blogging in a recognizable tradition of publishing entries with room for replies. The percentage is a measure of files with recovered comments. Earlier work discussed by the paper suggests that the number of replies depends strongly on the popularity of the blog, so the coverage figure has meaning in relation to the source population and the way it was assembled.

Sites discovered through the .at domain

The second experiment ran during the 2nd half of 2015. Each iteration sought .at addresses, examined them as WordPress candidates, and collected new document addresses from sitemaps where possible. The paper describes refreshing the crawl with material from the other discovery sources when needed, including after stages 5 and 6. The experiment ended after 11 iterations, when finding more WordPress sites with sitemaps was becoming difficult within the available pool of candidates.

The batches give a more detailed picture of collection work than the overall totals alone. Batch 1 records 2,020 domains and 571,888 files. Batch 3 records 1,269 domains and 695,827 files. The largest file batch of these examples therefore comes from the smaller domain count. The figures make sense for a crawl where sites differ in how much material they expose. They also show why the progress of a collection cannot be inferred from domain counts alone.

Individual batches could be much smaller. Batch 5 records 84 domains and 433 files, while batch 7 records 1,405 domains and 483,566 files. Batch 11 still records 2,988 domains and 417,951 files. The decision to end the experiment concerns the difficulty of finding the next qualifying sites as the pool was being exhausted. It is compatible with a substantial final retrieval batch, since the size of a batch already identified and the availability of further new seeds are separate matters.

The experiment downloaded 3,053,974 different URLs, occupying 159 Gb. Processing and canonicalization left 2,589,674 files occupying 14 Gb. About 2 million files met the condition of having usable dates and entry text, and their text amounted to about 550 million tokens. The domain count reported before processing is 5,664. It becomes 7,275 after the canonical addresses are resolved. The author attributes the change to those addresses. A collection can gain distinct source names during canonicalization while losing files during processing, because the two counts refer to different properties.

The year analysis identifies 2,083,535 documents with at least a credible publication year, reported as 80.5% in the processed .at collection. The observed annual counts include 297,143 documents for 2013, 371,605 for 2014, and 517,073 for 2015. The later years contain more of the harvested .at material than the earlier years do. The paper interprets the rise as consistent with increasing WordPress use and potentially with the short lifetimes of some blogs. Surviving documents and current discoverability are both relevant to that reading.

The leading canonical domains reveal a wider range of publishing purposes than the initial blog label might suggest. In its discussion of the top 50 domains by document count, the paper identifies 16 specialist sources, 12 promotional or commercial sources, and 9 general news sources. It also identifies entertainment, political, personal, adult, and forum material. The individual domains can contribute large numbers of entries. The paper lists 333,690 URLs for vol.at and 312,714 for triple-s.at, with both classified as informational. News can therefore have a strong presence in the text even if the domain list also contains many smaller sites serving other purposes.

Of the canonical domain names, 240 contain the word blog. That count measures how frequently a particular word appears in a site name. The website analysis classifies the types of material appearing under the names. Together they illustrate how a collection identified through software can include publishers that use the mechanics of serial entries under a different description of their activity.

The .at experiment recovered categories from 260,468 pages. They account for 834,284 uses and 11,813 distinct categories. Allgemein occurs 28,005 times and Blog 9,652 times. The author reads the latter as evidence that publishers can mark a section as their blog within a site that has other functions. A label inside a site can therefore offer information that the domain name and the page structure leave open. Other common categories concern subjects such as film, school, and family life, alongside labels whose meaning is more specific to the publisher using them.

Tags occur on 279,083 pages, with 5,093,088 uses and 192,352 distinct tags. Wien occurs 18,973 times and Deutschland 18,895 times. The prominent tags also include subjects connected to family, holidays, work, and employment law. The paper interprets the overall pattern of labels as supporting its expectation of a largely German-speaking target audience. It also points out that words from another language may occur within German usage, so the language of an isolated tag offers limited evidence about the language of its associated entry.

Comment coverage and overall scale

The .at collection yielded comments for 181,246 files, reported as 7%. Barbaresi attributes this chiefly to entries that had no comments, with an additional contribution from the difficulty of extracting replies provided through third-party commenting systems. The distinction matters because the observable share depends on both editorial or reader behavior and what the wrapper can recover. The paper’s genre analysis supports a difference in the uses of the sites, while the extraction issue makes the recorded percentages an imperfect measure of the full discussion on them.

Files with extracted comments in the two WordPress collections

The hosted German collection had higher coverage of extracted comments.

Files with extracted comments in the two WordPress collections.at-domain crawl: 7.at-domain crawl7German blogs on wordpress.com (this paper): 24German blogs on wordpress.com (thispaper)24
The numbers
System or setting% of files with extracted comments
.at-domain crawl7
German blogs on wordpress.com (this paper)24

The metric in the chart is coverage of recovered comments. Higher coverage supplies more opportunities to study replies within the collection. A study of posts from news or commercial sites could value the .at material for other properties. The chart also counts files with comments, so a file with one reply and a file with a long discussion contribute in the same way to this measure. It tells the reader how often replies are available alongside a file, leaving the depth of those discussions as a separate question.

For the combined experiments, the paper summarizes the volume transferred as 550 Gb and the resulting corpus as about 2.7 billion tokens with rich metadata. The aggregate is a demonstration of feasibility under the reported selection and processing procedures. Its practical meaning comes from the validity condition. The yield concerns text accompanied by usable dates, collected in a representation that can preserve other fields and separate main entries from replies when those replies are recovered. That is the outcome the focused method was designed to produce.

What the ablations show

The paper has no component ablations and examines the method through collection-stage yields, crawl iterations, metadata frequencies, and comparisons between the two source populations.

Following material through the collection stages

The difference between downloaded documents, processed files, and valid entries shows where the operational definition of a corpus matters. Downloads are successes from the point of view of retrieval. A successfully processed file can still fail the corpus admission rule. Reporting valid files and their text separately makes it possible to judge the experiment against its stated purpose of collecting dated language evidence. The reported figures also give a concrete sense of how the raw download volume differs from the volume of processed material.

The .at domain counts offer a particularly clear view of the effect of a processing decision. Counts before and after canonicalization refer to different versions of a document’s address. An entry discovered through a candidate in one namespace may declare a source address in another. The increase in distinct names after that step is consistent with resolving where documents belong. It cannot be read as a fresh increase in the number of sites visited during discovery. The paper thereby exposes a difference between the domain used to find a source and the domain used to identify its evidence.

The batch analysis answers a different operational question. It shows that the number of sites identified and the number of entries they supply can vary independently from one round to another. Renewing the seed pool was part of the workflow, and later batches recovered substantial material. The batches give a record of the actual crawl, with multiple influences acting at once. Their yields leave the contribution of any individual seed source or refresh decision undetermined.

Reading the metadata frequencies

The comparison of required and optional fields helps explain what metadata enhancement achieved. Dates and entry text determine validity. Categories, tags, author information, and other fields are recovered when possible, so their coverage varies with the conventions of the publisher and the ability of the wrapper to find them. A corpus can consequently contain many identifiable entries and still have uneven coverage for a field needed by a particular research question. The frequency analysis makes that unevenness visible.

The categories and tags also show two different ways in which raw metadata can be informative. A broad or default category describes how a site organizes its output, while labels about photography, politics, or a particular place help characterize what publishers discuss. A very frequent label can reflect repeated assignments by prolific sources. The lists therefore describe the metadata as encountered in this document collection. Using them as evidence of publishers’ interests calls for attention to the distribution of entries across sites.

The differences in comment coverage sharpen this point. The hosted collection contains many sources that the paper relates to community blogging, while the .at leaders include publishers of news, offers, and specialist information. The corresponding difference in recovered comments gives the genre comparison an observable dimension beyond the labels attached to the sites. At the same time, the paper distinguishes absent comments from replies that are harder to retrieve. The evidence supports a contrast between the assembled collections, with the exact roles of publisher behavior and extraction success left open.

Separating publishing form from communicative purpose

The genre analysis gives the paper its strongest reason to look beyond overall yield. WordPress makes it possible to recognize recurring structure and retain dated entries across sites whose purposes differ. The author’s classification of prolific sources shows that a common form can support general news, personal writing, sales, entertainment, and specialist communities. Those are distinctions a researcher could lose by aggregating all usable entries under a single genre label.

The paper also revisits earlier assumptions about blogs through this comparison. An entry-oriented site can have several contributors or serve an organization. Whether a site updates frequently is a separate question from whether its entries are dated. A comment facility is a feature of publishing infrastructure, while the prevalence of discussion is a matter for observation. These are consequences of the descriptive analysis. They concern the kinds of texts exposed by the collection procedure and the care needed in describing them.

The engineering evidence and the genre evidence thus have different scopes. The volume of usable output supports the viability of the whole procedure in the two settings. The frequency and site analyses characterize that output. The marginal contribution of header checks, sitemap restriction, tailored extraction, and the date requirement would require comparisons that vary those components while holding the source pool and success criteria fixed. Here the steps operate together, and the reported yields belong to the combination.

Limitations

Limits the paper identifies

Barbaresi describes substantial differences in markup among WordPress sites, particularly where plugins alter what a page renders. Publishers also choose which fields to use. Titles and canonical addresses are the most often recovered metadata in the author’s account, with dates, categories, tags, and authorship following. A common publishing system makes common extraction rules possible, while the observed variation makes the result field-dependent. A question about authorship may consequently apply to a narrower part of the corpus than a question about publication year.

Publication dates have their own uncertainty. The paper finds a share of implausible values and compares the hosted result with the 3% reported for the TREC blog corpus. Barbaresi suggests that publishers’ choices in assigning dates may account for some of these values. A date recovered faithfully from a page can therefore still be doubtful as historical evidence. A usable year can give useful temporal orientation, but questions that depend on the exact sequence of events require stronger evidence than the presence of a date field.

The paper also acknowledges genre-related difficulties for text collection. Photography is prominent in parts of the hosted material, and the existence of a dated entry makes no guarantee about how much prose it contains. In the .at experiment, some comment systems prevent replies from being recovered with the same ease as comments represented in the expected page structure. Both issues affect what a researcher can obtain for particular kinds of analysis, even when the entry itself is correctly identified and retained.

The author explicitly recognizes the difference between users of a hosted platform and the wider set of users of the publishing software. The hosted material appears more closely tied to familiar traditions of blogging, while the .at material includes sites using dated entries in support of other aims. The paper treats the resulting genre as hybrid. Its discussion of less visible interaction and more commercial or informational publishing is informed by the collected material and by earlier studies with their own recruitment and sampling choices.

Limits that follow from the setup

The first limit concerns coverage. The crawler sees the candidates supplied by its seed sources and by links encountered during collection. Its choices then favor addresses with recognizable patterns, sites whose responses expose useful WordPress evidence, and sites with discoverable sitemaps. Success at each stage is conditional on the preceding one. The reported scale establishes that these restrictions leave substantial material. The share of all eligible WordPress sites or entries reached by this route is unknown.

Selection continues at the level of the entry. The validity rule favors pages with recoverable dates and text. That is appropriate for assembling the particular research object the paper wants. It also means that styles of publishing with weak metadata or unconventional markup can be underrepresented. From the final corpus alone, it is difficult to tell whether a kind of entry rarely appeared on the source sites or was often lost during discovery and extraction. The counts at successive processing stages describe the extent of attrition without assigning every loss to a cause.

The paper uses recovered files and metadata to characterize extraction behavior. It gives no independent validation set on which field precision and recall could be measured. The availability of a name, date, or canonical address is one observation. Whether the field belongs to the correct entry, is complete, or faithfully represents the event a researcher is interested in is another. Comments present a similar distinction. The reported file-level coverage establishes how frequently the wrapper produced comments, with the completeness of individual discussions left unmeasured.

The efficiency claim also has a particular scope. The counts quantify the amount of material downloaded, the resulting file volume, and the usable text obtained through a focused crawl. HEAD requests and sitemaps give concrete reasons to expect savings in page transfer and repeated navigation. The paper supplies no matched run of an unrestricted crawler on the same source pool and no component-level accounting of elapsed time or machine costs. The experiment therefore establishes a feasible yield for the implemented process, while the magnitude of savings over a specific alternative remains an open measurement.

Comparisons between the corpora involve several differences at once. The hosted experiment starts with known German blogs and uses language identification. The .at experiment discovers sites through a national domain and leaves language unfiltered. The sites differ in hosting arrangements, source selection, and likely publication purposes. The figures describe the collections produced by these choices. A causal claim about how much the hosting arrangement itself affects comment activity or metadata coverage would require a comparison that controls the other differences.

Likewise, the publication-year counts are retrospective views from crawls conducted during 2015. Older material depends on whether it remained available and could be reached or listed in a sitemap, and dates depend on publisher practices and extraction success. The author’s interpretation involving the growth of WordPress and the life span of blogs is plausible within the discussion, but the historical count of all originally published .at entries is beyond the measurement. The same sampling considerations apply when relating the observed activity to older studies of blogging communities.

Finally, the experiment’s source analysis gives special attention to prolific domains, and the label analyses count occurrences across pages. This is appropriate for understanding what contributes a large share of the available text. A study of the typical site, typical writer, or typical reader would need a unit of analysis appropriate to that question. Many documents from a single publisher can shape what is frequent in a corpus. The paper’s characterization is most directly about the sources and entries its procedure brought together.

What came after

The later works that cite this paper include research on web extraction and on language discrimination. Their subjects point to different parts of the corpus-building process. The citation records establish a connection to Barbaresi’s study. The titles establish the scope of several later contributions, while their specific use of the crawl, its corpus, or its findings remains unspecified.

Trafilatura (2021) presents a library and command-line tool concerned with discovering and extracting text from the web. That scope brings together two tasks that the WordPress study also had to coordinate. Discovery determines which documents a system can reach. Extraction determines whether those documents can be turned into text suitable for later use. In the corpus experiment, the connection is visible in the progression from sitemaps to downloaded HTML and then to selected text. Trafilatura takes text discovery and extraction as the subjects of the tool itself. The record establishes that it cites the study, with the reuse of individual WordPress rules unspecified.

htmldate (2020) presents a Python package for extracting publication dates from webpages. It takes up a narrower problem that was decisive for admission to the corpus. Barbaresi’s experiment needed publication dates so that successful text extraction would result in dated evidence. It also encountered a distinction between locating a candidate date and treating it as credible. The package’s stated purpose places the recovery of publication dates at the center of a dedicated piece of work. Its title and citation establish that topical connection without specifying which date extraction practices carry over.

Discriminating between Similar Languages using Weighted Subword Features (2017) concerns the distinction between closely related languages using weighted features from units below the word level. Its relationship to the corpus study is through the language identification problem. The earlier study uses language identification in assembling and evaluating sources for the German platform experiment. It also illustrates the different decision to assemble a domain-based collection without imposing a language filter. The later title makes language discrimination the research problem in its own right. The citation leaves open whether the earlier corpus provided data or whether the paper served as methodological context.

A further citing work concerns computationally efficient discrimination between language varieties. Its stated topic brings efficiency into the language discrimination question. In the corpus study, efficiency primarily concerns directing retrieval and processing towards usable evidence, with language identification among the operations used to characterize or select sources. The later record gives too little detail to identify a shared procedure or a transferred result. The documented relationship is a citation between work on obtaining language data efficiently and work on the efficiency of telling language varieties apart.

Cite

Cite as Adrien Barbaresi. 2016. Efficient construction of metadata-enhanced web corpora. Proceedings of the 10th Web as Corpus Workshop.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/w16-2602

@inproceedings{adrien2016efficient,
  title = {{Efficient construction of metadata-enhanced web corpora}},
  author = {Adrien Barbaresi},
  booktitle = {Proceedings of the 10th Web as Corpus Workshop},
  year = {2016},
  doi = {10.18653/v1/w16-2602},
  url = {https://doi.org/10.18653/v1/w16-2602}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/barbaresi-2016-efficient-construction-metadata-enhanced-web/