FactGrid:Sample queries: Difference between revisions
Jump to navigation
Jump to search
Olaf Simons (talk | contribs) (→Maps) |
Olaf Simons (talk | contribs) (→Tables) |
||
Line 43: | Line 43: | ||
== Tables == | == Tables == | ||
* [https://database.factgrid.de/query/#SELECT%20%3Fmember%20%3FnameLabel%20%3FmemberLabel%20WHERE%20%7B%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%20%20%3Fmember%20wdt%3AP91%20wd%3AQ10677.%0A%20%20OPTIONAL%20%7B%20%3Fmember%20wdt%3AP247%20%3Fname.%20%7D%0A%7D%0AORDER%20BY%20%3FnameLabel Was a member of the Illuminati] | |||
* [https://database.factgrid.de/query/#SELECT%20%3Fmember%20%3FnameLabel%20%3FmemberLabel%20WHERE%20%7B%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%20%20%3Fmember%20wdt%3AP91%20wd%3AQ10677.%0A%20%20OPTIONAL%20%7B%20%3Fmember%20wdt%3AP247%20%3Fname.%20%7D%0A%7D%0AORDER%20BY%20%3FnameLabel | |||
* [https://database.factgrid.de/query/#SELECT%20%3FAufsatz%20%3FAufsatzLabel%20%3FAbsendeort%20%3FAbsendeortLabel%20%3FDatum%20%3FFactGrid_Transkript%20WHERE%20%7B%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%20%20%3FAufsatz%20wdt%3AP121%20wd%3AQ10512.%0A%20%20%3FAufsatz%20wdt%3AP97%20wd%3AQ10677.%0A%20%20OPTIONAL%20%7B%20%3FAufsatz%20wdt%3AP95%20%3FAbsendeort.%20%7D%0A%20%20OPTIONAL%20%7B%20%3FAufsatz%20wdt%3AP106%20%3FDatum.%20%7D%0A%20%20OPTIONAL%20%7B%20%3FAufsatz%20wdt%3AP251%20%3FFactGrid_Transkript.%20%7D%0A%7D All guided compositions, where written? when? plus links to FactGrid transcripts]. | * [https://database.factgrid.de/query/#SELECT%20%3FAufsatz%20%3FAufsatzLabel%20%3FAbsendeort%20%3FAbsendeortLabel%20%3FDatum%20%3FFactGrid_Transkript%20WHERE%20%7B%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%20%20%3FAufsatz%20wdt%3AP121%20wd%3AQ10512.%0A%20%20%3FAufsatz%20wdt%3AP97%20wd%3AQ10677.%0A%20%20OPTIONAL%20%7B%20%3FAufsatz%20wdt%3AP95%20%3FAbsendeort.%20%7D%0A%20%20OPTIONAL%20%7B%20%3FAufsatz%20wdt%3AP106%20%3FDatum.%20%7D%0A%20%20OPTIONAL%20%7B%20%3FAufsatz%20wdt%3AP251%20%3FFactGrid_Transkript.%20%7D%0A%7D All guided compositions, where written? when? plus links to FactGrid transcripts]. | ||
Revision as of 20:56, 16 June 2021
Help:
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views/en
- https://en.wikibooks.org/wiki/SPARQL/FILTER
Looking for people
- Search all people of the same family name, sort by given names, state everyone with information about life dates and family details. Table
- Name of people who ever were a residents of place with basic personal information. Table
- Two Persons, when and where did they meet timeline
- All people with a FactGrid account by gender
Looking for documents
- All documents written by N.N. with corresponding documents. Table
- All documents sent to N.N. with corresponding documents. Table
- All documents mentioning N.N. with corresponding documents. Table
- All documents of a file listed in sequence. Table
- All documents sent from (place) by date. Table
- All documents of a specific archive and research interest by date. Table
Maps
Dots
All documents of a specific research interest where from? Map
All persons of a certain profession in a town Map
Lines
Tables
- Was a member of the Illuminati
- All guided compositions, where written? when? plus links to FactGrid transcripts.
- no functional query yet, but a first attempt is here, modeled after the "academic tree" graph in Scholia's author aspect
- all 18th-century addresses in Gotha (which have already received geo-coordinates)
- when was the Gregorian calendar introduced?
Graphs
Timelines
Bubble Charts
- The distribution of males and females who became followers of the early 18th-century "French Prophets"
- Adherents of the French Prophets and their religious affiliation
- The Illuminati membership statements The intricate thing is that this search excludes the two 100% bubbles of Illuminati and Freemasons that are of course given with every Illuminati membership.
Grammatically intricate searches
- all places - with their respective Wikidata numbers
- Member of the Illuminati, state the primary document reference that we have for this statement
- The graduates of Gotha's Gymnasium Illustre/Ernestinum: their fathers with career information, their mothers and the fathers of the mothers (i.e. maternal grandfathers) with the respective career information] The search is intricate as it goes into related database objects and brings information located there into the table.
Looking for a statement - give it with all the qualifying statements
This search is especially useful if the data model needs to be changed. It searches the database for a particular statement and gives all the instances with the respective qualifying sub-statements:
SELECT * WHERE { ?s wdt:P2 wd:Q7. ?s p:P266 ?st. # ?s is the the statement node ?st ps:P266 ?o. # that simulates the predicate ?st ?qualifier ?value. # this is an attribute (a qualifier) }
Wishful thinking
- A map of all places a Person has been, using (also) the information from sender's and receiver's places
- visualisations quest on phabricator