Tools: Semantic Queries

From MarineLives
Revision as of 17:42, June 27, 2016 by ColinGreenstreet (Talk | contribs) (Semantic Query input strings)

Jump to: navigation, search

Queryable fields on a Form based Page


Creating a new form based page

The great majority of MarineLives wiki pages are structured as form based Pages, which are grouped into Volumes.

Wiki users with editorial privileges can create new pages and new volumes using the appropriate buttons in the vertical sidebar.

Form based pages contain a number of standard fields as defined by the form.

All these pre-defined fields are queryable using Special:Ask semantic queries.

The pre-defined fields are as follows:

Parent volume
Folio
Side
Status
First transcriber
First transcribed
Editorial history
Note
Transcription image
Transcription
Language
English translation
People
Places
Ships
Materials
Primary sources
Secondary sources
Suggested links


Spacial:Ask Semantic Query input strings


The following semantic query input strings are useful when working with the MarineLives wiki



Administrative queries


Listing all pages in Form:Page format which have Untranscribed in the First transcriber box

Query string to display all untrancribed form based pages

Listing all volumes in Form:Volume format, with Start date and End dates (where dates have been entered)

Query string to display all volumes with start and end dates



Semantic Query Outputs



Example



Semantic query to display all pages transcribed in calendar year 2014


Using the MarineLives Special Ask Query page


Go to MarineLives Special Ask page

Input into MarineLives Special Ask Query page the Query string: The date ">14/01/01" was not understood.The date ">14/01/01" was not understood. The date "<14/12/31" was not understood.The date "<14/12/31" was not understood.
Click on "Find results"

Output will be displayed in a results table


Embedding a Special Ask Query in a MarineLives wiki page


The same Query string used in the Special Ask Query page can be embedded in a MarineLives wiki page with the addition of some further code.

The following code, when embedded in a MarineLives wiki page, will display the same results table as produced in the above example

Semantic query to display all pages transcribed in calendar year 2014