HTRC Workset Builder 2.0 (Beta) for Extracted Features 2.0

HTRC Workset Builder 2.0 (Beta) for Extracted Features 2.0

HTRC's Workset Builder tool offers advanced search and result filtering functionality in order to facilitate the creation HTRC worksets. Learn how about and how to use the tool here.

 

The HTRC Workset Builder 2.0 Beta for Extracted Features 2.0 is the next iteration of a new interface to the HTRC Extracted Features Dataset to enable both volume-level metadata search and volume- and page-level unigram (single word) text search of the extracted features in order to build worksets.

As indicated, this interface is currently in beta, and may change.

Quick Guide: How to Build a Workset

To build a workset using HTRC Workset Builder, follow these general steps:

  • Step 0: Decide what to search

  • Step 1: Perform a unigram (single-term) full text or metadata (using field tags) search at the desired level (page or volume)

  • Step 2: Filter through the results and select desired items to add to your workset

  • Step 3: Repeat steps 1 and 2 as necessary until your workset is ready;

  • Step 4: "Export as workset" to HTRC Analytics or download workset metadata.

More information about each of the steps in the workset building process are included in sections below.

Searching

Searches are not case sensitive, and by default, your search will be conducted on pages recognized as English. Click “Search all Languages” if you prefer to search everything. Users can also choose specific languages to limit your search to from those that appear under “Show other languages.” Limit your search to a specific part-of-speech by using the checkboxes under the language, though be aware that not all of the languages have the functionality to search by part-of-speech. Wildcard matching is possible using '?' for a single character and '*' for multiple characters. For example 'canad?' and '*land'.

There are four options for searching: text, metadata, combined and advanced. Text search will search the full text of the volume, at the page level, for a unigram or unigrams (e.g. searching all volumes for the word "rose"). Results returned are volume-level metadata, along with page-level metadata and bag-of-words tokens. Since this a page-based search, you will receive one result for each page that matches your query. To see results grouped by volume (multiple page results under one volume heading and one result), check the box marked "Sort &Group by Volume" under the search bar. Metadata search will search volume-level metadata fields for given unigrams, and return volumes in which the terms appear in a given (or any) field specified in the drop-down menu (e.g. searching all volumes for those with a publicaton place of "bl" the MARC code for Brazil). A Combined search allows both text and metadata search in a given query (e.g. a search to return all volumes published in Brazil in which the term "rose" appeared on a page). Advanced search allows for users familiar with Solr syntax (see below for more information) to construct and execute their own queries.

When searching the page text it is important to realize that every word you enter is treated as a separate term (a unigram) for the purposes of the query that is performed. Effectively phrase searching the page text is not possible.  This is because Workset Builder is a search interface built on the Extracted Features Dataset where the sequential order of the words has been removed, effectively making it bag of words. The closest approximation is to use the AND operator, for example the query lawn AND tennis will return all pages where both words appear somewhere on the page.  In the case of a hyphenated word, this is processed as single term, and so does present as a phrase in terms of indexing, for example the query "lawn tennis" (in quotes) will find pages where that term appears hyphenated. In the case of volume metadata search, the sequential order to the words is kept.  This means phrase searching is possible across metadata.

Search Text

Text search allows users to query the full text, by page, for unigrams (single terms). By default, text searches will search English-language volumes. If you'd like to search all languages, check the "Search pages in all languages" button underneath the search bar. Currently, part-of-speech information is only available for volumes in English, German, Portuguese, Danish, Dutch and Swedish. While other languages are coded in volume metadata and thus can be retrieved, there will not be part-of-speech data available for those volumes.

Text searches will retrieve volume-level metadata, but the main unit of search and retrieval is the page. Since many pages in a single volume may contain a given unigram, users may wish to check the "Sort & Group by Volume" button directly beneath the search bar, which will present results by the volume, with a list of pages on which the term appears, as compared to multiple volume entries with a single associated page in the results view. 

Search Metadata

Metadata search allows users to query the catalogue metadata associated with each volume in the corpus (aka volume metadata). Enter a single term, multiple terms, phrases (in quotes), or any combination thereof.  By default, "All fields" is selected in the drop-down menu next to the search box.  Click on the drop-down menu to select more specific fields to search by, such as Title.

To search multiple metadata fields, enter your search query in a format called Solr syntax. For example, a search for title_t:hamlet AND contributorName_t:shakespeare will return all volumes with “hamlet” in the title field and “shakespeare” in the contributorName field, the latter being the field used by the cataloguer to record a personal or corporate name associated with the volume. The same search can be used with an “OR” operand to return volumes that satisfy either condition. Note that there is no space between the colon and the search term. For more information, see this Solr query syntax guide.

For information on the volume metadata fields, including possible values for fields with controlled vocabularies see the below Metadata field values section.

Searching dates

Metadata date fields can be searched for using (primarily) 4-digit years, e.g. "1948".  A variety of dates can be associated with an volume, such as its publication date (pubDate_i), and the date the digital form of the record was created (dateCreated_i).  Being numeric, these fields are matched to "_i" fields, where the suffix indicates the indexed value is an integer (as opposed to "_t" for text).

To go beyond searching for a document from a particular year (e.g. pubDate_i:1948) to search over a date range, you need to use more complex Solr syntax (more information in the next section) to specify the numeric start and stop values.  After the field to search by is specified, this takes the form [ <val> TO <val>]. For example, to search for volumes published 1880-1883 enter “pubDate_i:[1880 TO 1883]” in the Advanced search tab.  Solr query syntax is case-sensitive, and so, the value range must be expressed as "TO" (and not, for example, "to").

Most recorded dates are numeric, however sometimes the exact date is not known when catalogued, and an "X", "-" or "?" as a digit is substituted to signify this, such as "194X", "194-" or "194?".  For this reason "_t" versions of date-related fields also provided to allow for more thorough date searches to be expressed, albeit requiring more complex syntax.  Note, all dates are mapped to the "_t" version of the field, including the fully numeric ones. 

To continue with the previous example of searching for volumes published 1880-1883, then a more expansive form of the search would be: pubDate_t:188X OR pubDate_t:188\? OR pubDate_t:1880 OR pubDate_t:1881 OR pubDate_t: 1882 OR pubDate_t:1883. One could then look through the results, and make a determination on a case-by-case basis as to whether to leave in a 188?, 188- or 188X date in the result set, or press the 'x' icon in the corner to have it removed.  In the event the search criteria is for publications in a given decade, including the '?', '-' and 'X' ones, then the needed query syntax gets simpler, and can be found with:  pubDate_t:188?. Note, this time the "?" is not preceded with a backslash (\), meaning it is interpreted by Solr as the wildcard character for matching purposes, not the literal question mark symbol.  More about this in the next section!

Volume Metadata

While Solr query syntax terms (met in the earlier sections, above) such as "AND", "OR", and "TO" are case-senstive—meaning they must be entered exactly as detailed—searching for volume-level metadata is case-insensitive: searching for Shakespeare with the term "SHAKESPEARE", "shakespeare" or even "ShakespEare" returns the same results.  Solr query syntax supports wildcard matching using '?' for a single character and '*' for multiple characters. For example 'canad?' and '*land'. While the HTRC Workset Builder interface is designed for unigram (single-term) searching of page-text, it is possible for volume-level metdata to express phrase-based search.  This is done using quotation marks: "term1 term2".

Via the "Metadata" tab you can enter terms directly into the search box, in which case the terms are matched against a common set of volume metadata fields. The main ones are: Title, Name, Genre, Type of Resource, Place of Publication.  You can click on the "Show full query ..." button on the search results page to see what the complete list of fields are.

You can also search for specific volume metadata fields using the field:term form, such as contributorName_t:Austen or as a phrase-base search contributorName_t:"Austen, Jane".

In alphabetical order, searchable fields are as follows.  In moving from Extracted Features 1.5 to 2.0, some of the indexed metadata fields have been changed.  In the table below in cases where this has occurred the old (v1.5) name is displayed with strikethrough to explicitly mark the transition.

Field name

Field name in Solr syntax

Field description

Access Profile

accessProfile_t:

The code that indicates full-text access level.

Bibliographic Format

bibliographicFormat_t:

The code for the format of a volume (e.g. book, serial, etc.).

Date Created

dateCreated_i, dateCreated_t:

The time this metadata object was processed.  

Genre

genre_t:

The genre of the volume.

Handle URL

handleUrl_t:

htid_s:

The persistent identifier for the given volume.

HathiTrust Record Number

hathitrustRecordNumber_t:

The unique record number for the volume in the HathiTrust Digital Library.

HathiTrust Bib URL

htBibUrl_t:

mainEntityOfPageCatalogRecord_s

The HathiTrust Bibliographic RESTful call for the volume metadata record.
The provided URL delivers an HTML page. Adding ".json" on to the end of the URL delilvers the metadatda in JSON format.

Imprint

imprint_t:

publisherName_t:

The place of publication, publisher, and publication date of the given volume.

Language

language_t:

The primary language of the volume in MARC language code format.

Last Update Date

lastUpdateDate_t:

lastRightsUpdateDate_i:,
lastRightsUpdateDate_t:

The date this page was last updated.

Names

names_t:

contributorName_t:

The personal and corporate names associated with a volume.

OCLC

oclc_t:

The control number(s) assigned to each bibliographic record by the Online Computer Library Center (OCLC).

Publication Date

pubDate_i:, pubDate_t:

The publication year.

Publication Place

pubPlace_t:

pubPlaceName_t:

The publication location code in MARC country code format.

Rights Attribute (Access Rights)

rightsAttributes_t:

accessRights_t

The rights attributes for a volume.

Schema Version

schemaVersion_t:

schemaVersion_s:

A version identifier for the format and structure of this metadata object.

Source Institution

sourceInstitution_t:

The institution code of the original institution who contributed the volume.

Title

title_t:

Title of the volume.

Type of Resource

typeOfResource_t:

typeOfResource_s:

The format type of a volume.

Volume Identifier

volumeIdentifier_t:

A unique identifier for the current volume. This is the same identifier used in the HathiTrust and HathiTrust Research Center corpora.

Results

On the results page, you will find the title and unique HathiTrust ID for each volume that contains a result based on your search. You can hover over the title of each volume to trigger a pop-up with brief metadata information. Also listed, if a text search is part of your query, is the page sequence on which your search term appears. Lastly, a link to download the Extracted Features data for each volume in your results is also generated. If you follow the link to the page sequence for your search term, the Extracted Features data–tokens in a variety of views, parts of speech, and token frequencies–for that page is shown, along with links to download the Extracted Features files for the page or volume, along with a thumbnail of the page image with a link back to HathiTrust to view the page directly. Additionally, below the volume title, the full metadata record in human-readable form is available, if you click the "Show metadata" link to expand the section.

Filtering

On your results page, you will see seven different fields that can be used to filter search results. These fields are derived from the same metadata fields listed above: genre, language, copyright status, author, place of publication, original bibliographic format and classification. To apply facets to filter results, check boxes next to the desired facets under a given heading (e.g. "author"), and then click the "Apply Filter" button that will appear next to the section heading. To filter by values in more than one field/heading, you must first choose to apply filters in one field before doing so in another.

Exporting results

Once you have a desired set of results on the search page, you may work with or save them in a number of ways. For result sets of less than 40 million pages, you may export the entire set of search results as: a list of volume or page IDs, a metadata manifest with one row per volume, or you may choose to download the Extracted Features files for each volume in your result set. When downloading Extracted Features files for result sets, be mindful that for many volumes, this will be a large download, which can take minutes to complete.

To create a workset from more than one search, you can add volumes you'd like to include to your shopping cart by checking boxes next to each volume and pressing the yellow "Add" button or by selecting volumes via check box and dragging and dropping them into the shopping cart icon at the top right on the result page. If you'd like to change the checkboxes for each item, you can use the "Select All On This Page" or "Deselect All" to either check or uncheck all results. Similarly, the "Invert Selection" button can be used to change all checked items to unchecked, or the inverse.

Once your shopping cart is complete with the volumes you're interested in, click on the cart icon to view your workset. From this page, you can directly import your shopping cart as a workset in HTRC Analytics by clicking the "Export as Workset" button at the top right of the shopping cart page. From here, you'll be taken to HTRC Analytics, prompted to sign in, if you aren't already, and asked to provide a name and description of your new workset. Once a workset is imported into Analytics, you can get metadata information, share the workset, and run algorithms over its contents.

Saving worksets

Since worksets created using the Workset Builder are tied to a web browser session, once you exit your browser, your workset will not be saved unless you export it in one of the above ways. For the same reason, worksets cannot be shared via URL unless they are imported into HTRC Analytics.

Metadata field values

The Bibliographic Format field is coded; for example using BK to represent a Book. The possible codes used for this field are:

BK:

Books

CF:

Computer Files

CR:

Continuing Resources

MP:

Maps

MU:

Music

MX:

Mixed Materials

SE:

Serials

VM:

Visual Materials

 

The Place of Publication field pubPlaceName_t uses MARC country codes, with the following possible values:

aa:

Albania

abc:

Alberta

aca:

Australian Capital Territory

ae:

Algeria

af:

Afghanistan

ag:

Argentina

ai:

Armenia (Republic)

aj:

Azerbaijan

aku:

Alaska

alu:

Alabama

am:

Anguilla

an:

Andorra

ao:

Angola

aq:

Antigua and Barbuda

aru:

Arkansas

as:

American Samoa

at:

Australia

au:

Austria

aw:

Aruba

ay:

Antarctica

azu:

Arizona

ba:

Bahrain

bb:

Barbados

bcc:

British Columbia

bd:

Burundi

be:

Belgium

bf:

Bahamas

bg:

Bangladesh

bh:

Belize

bi:

British Indian Ocean Territory

bl:

Brazil

bm:

Bermuda Islands

bn:

Bosnia and Herzegovina

bo:

Bolivia

bp:

Solomon Islands

br:

Burma

bs:

Botswana

bt:

Bhutan

bu:

Bulgaria

bv:

Bouvet Island

bw:

Belarus

bx:

Brunei

ca:

Caribbean Netherlands

cau:

California

cb:

Cambodia

cc:

China

cd:

Chad

ce:

Sri Lanka

cf:

Congo (Brazzaville)

cg:

Congo (Democratic Republic)

ch:

China (Republic : 1949- )

ci:

Croatia

cj:

Cayman Islands

ck:

Colombia

cl:

Chile

cm:

Cameroon

co:

Curaçao

cou:

Colorado

cq:

Comoros

cr:

Costa Rica

ctu:

Connecticut

cu:

Cuba

cv:

Cabo Verde

cw:

Cook Islands

cx:

Central African Republic

cy:

Cyprus

dcu:

District of Columbia

deu:

Delaware

dk:

Denmark

dm:

Benin

dq:

Dominica

dr: