Queries about secondary literature, references and quotations
Next to the statements mined from literary works and the bibliographic metadata, the team annotated statements about the authors and the literary works in different secondary publications. These were then lodified and imported in the MiMoTextBase. This allowed us to enrich the graph with different statements:
- for author-items:
topic interest
(P47) - for literary work-items:
about
(P36)
Using reification the statements themselves have statements:
stated in
(P18): reference to the scholarly workquotation
(P42): String containing the quotation where the statement was derived from
In order to retrieve references using SPARQL, it is necessary to extend the PREFIXES
declared. A more detailed explanation of the prefixes can be found elsewhere, eg. here for wikidata. For more information about references, see here.
Not only do we want to use the prefix mmdt:
for the properties to point directly to the value, but we want to address the whole statement group.
With the following query, we can display all Labels of the secondary literature used in the MiMoTextBase. Klick here to open it in a new tab.
Please note: As we are addressing only the reference within this query, it would be possible to combine this lines
?statement prov:wasDerivedFrom ?refnode.
?refnode mmpr:P18 ?ref.
using property paths
into one line:
?statement prov:wasDerivedFrom/mmpr:P18 ?ref.
With the next query, we want to explore all items, either literary work-items or author-items, where any reference by a scholarly literature was made.
How many references by scholarly works does each author has? Ordered in descending order.
If you want to ask the same for the literary works, just change line 11 from
?item mmdt:P11 mmd:Q11. # item has occupation author
to
?item mmdt:P2 mmd:Q2. # item is instance of literary work
or click here.
For each of the secondary literature-items within the MiMoTextBase count how many references / quotations they have in total (please note: there can be the same quotations if it is connected to more than one work, author or statement). See query here
The following queries focus on the statements of the individual works.
The first query retrieves novels and the counts of their associated P36 (about)
-statements that are referenced at least three times by any scholarly work.
In the next query, the works will be narrowed down to those that deal with the theme of “libertinism”. In addition, we ask for the literature on which the topic is referenced and the corresponding quotations.
Next we are going to connect both the topic interest
-statements of the author items and the about
-statements of the novels. With this query we retrieve all topic interests of one author and show the novels were these topic interests are represented. Also show the respective quotations for the about
statements of the novels as well as the quotations for that statement found in topic interest
within the author-statements. Show the quotations only if they are not the same within the topic interest
and the about
-statement.
If you want to bind the references and the quotations additionally, so that all quotations for topic interest
and all quotations of about
are shown as one string each, check this query.
As the quotation statements are of the datatype “string”, it is possible to create a string search within the quotations.
For example if you want to search for the mention of “Voltaire” in either about
-statements of the novels or the topic interest
-statements of the authors, you can add the line FILTER(CONTAINS(?quotation, "Voltaire"))
, see query here.
If you are interested in the temporal development of the topics written about in the secondary literature, this can be displayed as a bar chart. For this purpose, in addition to the topics of the primary texts and their referencing, the year of publication of the secondary literature is queried. As secondary literature is not available for every year in the period from 1902-2008, the year is additionally filtered from the ?date
variable using BIND(STR(YEAR(?date)) as ?year)
and converted to a string in order to avoid larger gaps in the representation. See query here.