FactGrid:Sample queries: Difference between revisions

From FactGrid
Jump to navigation Jump to search
 
(23 intermediate revisions by 2 users not shown)
Line 42: Line 42:
[[File:Second-Mission-French-Prophets.JPG|thumb|right|300px|[https://database.factgrid.de/query/index.html#%23defaultView%3AMap%7B%22hide%22%3A%5B%22%3Fpoint%22%2C%20%22%3Fline%22%2C%20%22%3Frgb%22%5D%7D%0ASELECT%20%0A%20%20%20%20%3Fbegin%20%3Fstay%20%3FstayLabel%20%3Fpoint%20%3Fline%20%3Fvisualisation%20%3Frgb%0AWITH%20%7B%0A%20%20SELECT%20%3Fjourney%20%3Fstay%20%3Fbegin%20%3Fdate%20%3Fpoint%20%3Fpoint_str%20WHERE%20%7B%0A%20%20%20%20VALUES%20%3Fjourney%20%7B%20%0A%20%20%20%20%20%20wd%3AQ257130%0A%20%20%20%20%7D%20.%20%20%0A%20%20%20%3Fjourney%20p%3AP296%20%5Bps%3AP296%20%3Fstay%20%3B%20%28pq%3AP49%20%7C%20pq%3AP50%20%7C%20pq%3AP106%29%20%3Fbegin%5D%20.%20%20%20%0A%20%20%20%3Fstay%20p%3AP48%20%5B%20ps%3AP48%20%3Fpoint%20%3B%20psv%3AP48%20%2F%20wikibase%3AgeoLatitude%20%3Flat%20%3B%20psv%3AP48%20%2F%20wikibase%3AgeoLongitude%20%3Flong%20%5D%20.%0A%20%20%20%20BIND%28CONCAT%28STR%28%3Flong%29%2C%20%27%20%27%2C%20STR%28%3Flat%29%29%20AS%20%3Fpoint_str%29%0A%20%20%7D%0A%20%20ORDER%20BY%20%28%3Fbegin%29%0A%7D%20AS%20%25points%0A%0AWITH%20%7B%0A%20%20SELECT%20%3Fjourney%20%28STRDT%28%20CONCAT%28%27LINESTRING%20%28%27%2C%20GROUP_CONCAT%28%3Fpoint_str%3B%20separator%3D%27%2C%27%29%2C%20%27%29%27%29%2C%20geo%3AwktLiteral%29%20AS%20%3Fline%29%20%3Frgb%20WHERE%20%7B%0A%20%20%20%20INCLUDE%20%25points%0A%20%20%20OPTIONAL%20%7B%20%3Fjourney%20p%3AP693%20%5Bpq%3AP697%20%3Fcolor%5D%20.%0A%20%20%20%20%3Fcolor%20wdt%3AP696%20%3Frgb.%20%7D%0A%20%20%7D%20GROUP%20BY%20%3Fjourney%20%3Frgb%0A%7D%20AS%20%25line%0A%0AWHERE%20%7B%0A%20%20INCLUDE%20%25points%0A%20%20INCLUDE%20%25line%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D Second mission of the French Prophets, 1 June 1712-1714]]]
[[File:Second-Mission-French-Prophets.JPG|thumb|right|300px|[https://database.factgrid.de/query/index.html#%23defaultView%3AMap%7B%22hide%22%3A%5B%22%3Fpoint%22%2C%20%22%3Fline%22%2C%20%22%3Frgb%22%5D%7D%0ASELECT%20%0A%20%20%20%20%3Fbegin%20%3Fstay%20%3FstayLabel%20%3Fpoint%20%3Fline%20%3Fvisualisation%20%3Frgb%0AWITH%20%7B%0A%20%20SELECT%20%3Fjourney%20%3Fstay%20%3Fbegin%20%3Fdate%20%3Fpoint%20%3Fpoint_str%20WHERE%20%7B%0A%20%20%20%20VALUES%20%3Fjourney%20%7B%20%0A%20%20%20%20%20%20wd%3AQ257130%0A%20%20%20%20%7D%20.%20%20%0A%20%20%20%3Fjourney%20p%3AP296%20%5Bps%3AP296%20%3Fstay%20%3B%20%28pq%3AP49%20%7C%20pq%3AP50%20%7C%20pq%3AP106%29%20%3Fbegin%5D%20.%20%20%20%0A%20%20%20%3Fstay%20p%3AP48%20%5B%20ps%3AP48%20%3Fpoint%20%3B%20psv%3AP48%20%2F%20wikibase%3AgeoLatitude%20%3Flat%20%3B%20psv%3AP48%20%2F%20wikibase%3AgeoLongitude%20%3Flong%20%5D%20.%0A%20%20%20%20BIND%28CONCAT%28STR%28%3Flong%29%2C%20%27%20%27%2C%20STR%28%3Flat%29%29%20AS%20%3Fpoint_str%29%0A%20%20%7D%0A%20%20ORDER%20BY%20%28%3Fbegin%29%0A%7D%20AS%20%25points%0A%0AWITH%20%7B%0A%20%20SELECT%20%3Fjourney%20%28STRDT%28%20CONCAT%28%27LINESTRING%20%28%27%2C%20GROUP_CONCAT%28%3Fpoint_str%3B%20separator%3D%27%2C%27%29%2C%20%27%29%27%29%2C%20geo%3AwktLiteral%29%20AS%20%3Fline%29%20%3Frgb%20WHERE%20%7B%0A%20%20%20%20INCLUDE%20%25points%0A%20%20%20OPTIONAL%20%7B%20%3Fjourney%20p%3AP693%20%5Bpq%3AP697%20%3Fcolor%5D%20.%0A%20%20%20%20%3Fcolor%20wdt%3AP696%20%3Frgb.%20%7D%0A%20%20%7D%20GROUP%20BY%20%3Fjourney%20%3Frgb%0A%7D%20AS%20%25line%0A%0AWHERE%20%7B%0A%20%20INCLUDE%20%25points%0A%20%20INCLUDE%20%25line%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D Second mission of the French Prophets, 1 June 1712-1714]]]
[[File:Illuminati correspondence, lines on maps.JPG|thumb|right|300px|[https://database.factgrid.de/query/index.html?fbclid=IwAR29yqUCMsZsCD4caHaH475VCbMICGUUb8zdjrvQ_jDT87Nj5TQEycLDGqU&fbclid=IwAR1dIHXj94VuVG3w0RAps1QbjwFDoZ2ELfXdK61X1gptkyuR7WUZkkRWHkQ#%23defaultView%3AMap%7B%22hide%22%3A%5B%22%3Fline%22%5D%7D%0ASELECT%20%2a%20WHERE%20%7B%0A%20%20%3Fq%20wdt%3AP2%20wd%3AQ10671%20.%0A%20%20%3Fq%20wdt%3AP97%20wd%3AQ10677%20.%0A%20%20%3Fq%20wdt%3AP95%20%3Forigin%20.%0A%20%20%3Forigin%20wdt%3AP48%20%3FcoordO%20.%0A%20%20%3Forigin%20p%3AP48%2Fpsv%3AP48%20%3Fvaluenode1.%20%3Fvaluenode1%20wikibase%3AgeoLatitude%20%3Flat1%20.%20%3Fvaluenode1%20wikibase%3AgeoLongitude%20%3Flon1.%0A%20%20%3Fq%20p%3AP28%2Fpq%3AP29%20%3Fdest%20.%0A%20%20%3Fdest%20wdt%3AP48%20%3FcoordD%20.%0A%20%20%3Fdest%20p%3AP48%2Fpsv%3AP48%20%3Fvaluenode2.%20%3Fvaluenode2%20wikibase%3AgeoLatitude%20%3Flat2%20.%20%3Fvaluenode2%20wikibase%3AgeoLongitude%20%3Flon2.%0A%20%20BIND%28geof%3Adistance%28%3FcoordO%2C%20%3FcoordD%29%20AS%20%3Fdist%29.%0A%20%20BIND%28floor%28%3Fdist%2F100%29%20AS%20%3Flayer%29.%0A%20%20BIND%28CONCAT%28%27LINESTRING%20%28%27%2C%20STR%28%3Flon1%29%2C%20%27%20%27%2C%20STR%28%3Flat1%29%2C%20%27%2C%27%2C%20STR%28%3Flon2%29%2C%20%27%20%27%2C%20STR%28%3Flat2%29%2C%20%27%29%27%29%20AS%20%3Fstr%29%20.%0A%20%20BIND%28STRDT%28%3Fstr%2C%20geo%3AwktLiteral%29%20AS%20%3Fline%29%0A%7D The Illuminati correspondence on a map]]]
[[File:Illuminati correspondence, lines on maps.JPG|thumb|right|300px|[https://database.factgrid.de/query/index.html?fbclid=IwAR29yqUCMsZsCD4caHaH475VCbMICGUUb8zdjrvQ_jDT87Nj5TQEycLDGqU&fbclid=IwAR1dIHXj94VuVG3w0RAps1QbjwFDoZ2ELfXdK61X1gptkyuR7WUZkkRWHkQ#%23defaultView%3AMap%7B%22hide%22%3A%5B%22%3Fline%22%5D%7D%0ASELECT%20%2a%20WHERE%20%7B%0A%20%20%3Fq%20wdt%3AP2%20wd%3AQ10671%20.%0A%20%20%3Fq%20wdt%3AP97%20wd%3AQ10677%20.%0A%20%20%3Fq%20wdt%3AP95%20%3Forigin%20.%0A%20%20%3Forigin%20wdt%3AP48%20%3FcoordO%20.%0A%20%20%3Forigin%20p%3AP48%2Fpsv%3AP48%20%3Fvaluenode1.%20%3Fvaluenode1%20wikibase%3AgeoLatitude%20%3Flat1%20.%20%3Fvaluenode1%20wikibase%3AgeoLongitude%20%3Flon1.%0A%20%20%3Fq%20p%3AP28%2Fpq%3AP29%20%3Fdest%20.%0A%20%20%3Fdest%20wdt%3AP48%20%3FcoordD%20.%0A%20%20%3Fdest%20p%3AP48%2Fpsv%3AP48%20%3Fvaluenode2.%20%3Fvaluenode2%20wikibase%3AgeoLatitude%20%3Flat2%20.%20%3Fvaluenode2%20wikibase%3AgeoLongitude%20%3Flon2.%0A%20%20BIND%28geof%3Adistance%28%3FcoordO%2C%20%3FcoordD%29%20AS%20%3Fdist%29.%0A%20%20BIND%28floor%28%3Fdist%2F100%29%20AS%20%3Flayer%29.%0A%20%20BIND%28CONCAT%28%27LINESTRING%20%28%27%2C%20STR%28%3Flon1%29%2C%20%27%20%27%2C%20STR%28%3Flat1%29%2C%20%27%2C%27%2C%20STR%28%3Flon2%29%2C%20%27%20%27%2C%20STR%28%3Flat2%29%2C%20%27%29%27%29%20AS%20%3Fstr%29%20.%0A%20%20BIND%28STRDT%28%3Fstr%2C%20geo%3AwktLiteral%29%20AS%20%3Fline%29%0A%7D The Illuminati correspondence on a map]]]
[[File:Heinrich Heine, Paris.jpg|thumb|right|300px|[https://database.factgrid.de/query/#%23defaultView%3AMap%7B%22hide%22%3A%5B%22%3Fpoint%22%2C%20%22%3Fline%22%5D%7D%0ASELECT%20DISTINCT%0A%3Fviewer%20%3Fsubject%20%3FsubjectLabel%20%3Fperiod%20%3Flocation%20%3FlocationLabel%20%3Fpoint%20%3Fline%20%0AWITH%20%7B%0A%20%20SELECT%20%3Fviewer%20%3Fsubject%20%3Flocation%20%3Ftime%20%3Fperiod%20%3Fpoint%20%3Fpoint_str%20WHERE%20%7B%0A%20%20%20%20VALUES%20%3Fsubject%20%7B%20wd%3AQ365979%20%7D%20.%0A%20%20%20%20%3Fsubject%20p%3AP208%20%3Flocation_statement%20.%0A%20%20%20%20%3Flocation_statement%20ps%3AP208%20%3Flocation%20%3B%20pq%3AP49%20%3Fbt%20%3B%20pq%3AP50%20%3Fet%20.%20%0A%20%23%20%20%20%3Flocation%20wdt%3AP47%20wd%3AQ10441%20.%0A%20%20%20%20%3Flocation%20p%3AP48%20%2F%20ps%3AP48%20%3Fpoint%20.%0A%20%20%20%20%3Flocation%20p%3AP48%20%2F%20psv%3AP48%20%2F%20wikibase%3AgeoLatitude%20%3Flatitude%20.%0A%20%20%20%20%3Flocation%20p%3AP48%20%2F%20psv%3AP48%20%2F%20wikibase%3AgeoLongitude%20%3Flongitude%20.%0A%20%20%20%20BIND%28STR%28YEAR%28%3Fbt%29%29%20AS%20%3Fbegin_time%29%20%0A%20%20%20%20BIND%28STR%28YEAR%28%3Fet%29%29%20AS%20%3Fend_time%29%0A%20%20%20%20BIND%28CONCAT%28%3Fbegin_time%2C%20%27-%27%2C%3Fend_time%29AS%20%3Fperiod%29%0A%20%20%20%20BIND%28CONCAT%28STR%28%3Flongitude%29%2C%20%27%20%27%2C%20STR%28%3Flatitude%29%29%20AS%20%3Fpoint_str%29%0A%20%20%20%20BIND%28STRAFTER%28STR%28%3Fsubject%29%2C%20STR%28wd%3A%29%29%20AS%20%3FitemId%29%0A%20%20%20%20BIND%28IRI%28CONCAT%28%22https%3A%2F%2Fdatabase.factgrid.de%2Fviewer%2Fitem%2F%22%2C%20%3FitemId%29%29%20AS%20%3Fviewer%29%0A%20%20%7D%0A%20%20ORDER%20BY%20%28%3Fbt%29%0A%7D%20AS%20%25points%0A%0AWITH%20%7B%0A%20%20SELECT%20%3Fsubject%20%28STRDT%28%20CONCAT%28%27LINESTRING%20%28%27%2C%20GROUP_CONCAT%28%3Fpoint_str%3B%20separator%3D%27%2C%27%29%2C%20%27%29%27%29%2C%20geo%3AwktLiteral%29%20AS%20%3Fline%29%20WHERE%20%7B%0A%20%20%20%20INCLUDE%20%25points%0A%20%20%7D%20GROUP%20BY%20%3Fsubject%0A%7D%20AS%20%25line%0A%0AWHERE%20%7B%0A%20%20INCLUDE%20%25points%0A%20%20INCLUDE%20%25line%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D Heinrich Heine's Parisian addresses]]]
[[File:FactGrid Screenshot, kitchen types in layers on map.PNG ‎|thumb|right|300px|[https://database.factgrid.de/query/#%23defaultView%3AMap%7B%22layer%22%3A%22%3FtypeLabel%22%7D%0ASELECT%20%3Fitem%20%3FitemLabel%20%3Fgeo%20%3Ftype%20%3FtypeLabel%20%28SAMPLE%28%3F_image%29%20AS%20%3Fimage%29%20WHERE%20%7B%0A%20%20%3Ftype%20wdt%3AP3%2a%20wd%3AQ648943%20.%0A%20%20%3Fitem%20wdt%3AP575%20%3Ftype%20%3B%0A%20%20%20%20%20%20%20%20wdt%3AP48%20%3Fgeo%20.%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%20%20%20%20OPTIONAL%20%7B%20%3Fitem%20%28p%3AP575%2Fpq%3AP189%29%20%3F_image.%20%7D%0A%7D%0AGROUP%20BY%20%3Fitem%20%3FitemLabel%20%3Fgeo%20%3Ftype%20%3FtypeLabel Kitchen types in layers on map]]]
=== Dots ===
=== Dots ===
* [https://database.factgrid.de/query/#%23defaultView%3AMap%0ASELECT%20%3Fitem%20%3FitemLabel%20%3FOrt%20%3FOrtLabel%20%3FGeokoordinaten%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%3Fitem%20wdt%3AP2%20wd%3AQ10671.%0A%20%20%3Fitem%20wdt%3AP95%20%3FOrt.%0A%20%20%3FOrt%20wdt%3AP48%20%3FGeokoordinaten.%0A%20%20%3Fitem%20wdt%3AP97%20wd%3AQ10677.%0A%7D All documents '''of a specific research interest where from?''' ]
* [https://database.factgrid.de/query/#%23defaultView%3AMap%0ASELECT%20%3Fitem%20%3FitemLabel%20%3FOrt%20%3FOrtLabel%20%3FGeokoordinaten%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%3Fitem%20wdt%3AP2%20wd%3AQ10671.%0A%20%20%3Fitem%20wdt%3AP95%20%3FOrt.%0A%20%20%3FOrt%20wdt%3AP48%20%3FGeokoordinaten.%0A%20%20%3Fitem%20wdt%3AP97%20wd%3AQ10677.%0A%7D All documents '''of a specific research interest where from?''' ]
Line 52: Line 55:


* [https://kurzelinks.de/y2hg Parisian miniaturists in 1834 (with clusters)]
* [https://kurzelinks.de/y2hg Parisian miniaturists in 1834 (with clusters)]
* [https://database.factgrid.de/query/embed.html#%23defaultView%3AMap%7B%22layer%22%3A%22%3FtypeLabel%22%7D%0ASELECT%20%3Fitem%20%3FitemLabel%20%3Fgeo%20%3Ftype%20%3FtypeLabel%20%28SAMPLE%28%3F_image%29%20AS%20%3Fimage%29%20WHERE%20%7B%0A%20%20%3Ftype%20wdt%3AP3%2a%20wd%3AQ648943%20.%0A%20%20%3Fitem%20wdt%3AP575%20%3Ftype%20%3B%0A%20%20%20%20%20%20%20%20wdt%3AP48%20%3Fgeo%20.%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%20%20%20%20OPTIONAL%20%7B%20%3Fitem%20%28p%3AP575%2Fpq%3AP189%29%20%3F_image.%20%7D%0A%7D%0AGROUP%20BY%20%3Fitem%20%3FitemLabel%20%3Fgeo%20%3Ftype%20%3FtypeLabel kitchen types in layers on a map]


=== Lines ===
=== Lines ===
Line 80: Line 85:


== Statistics ==
== Statistics ==
[[File:Adherents of the French Prophets and their religious affiliations.JPG|thumb|right|200px|[https://tinyurl.com/yglpoqzq Adherents of the French Prophets and their religious affiliations]]]
[[File:Adherents of the French Prophets and their religious affiliations.JPG|thumb|right|300px|[https://tinyurl.com/yglpoqzq Adherents of the French Prophets and their religious affiliations]]]
[[File:Age at death of all FacGrid humans.JPG|thumb|right|200px|[https://tinyurl.com/yhzquxwf Age at death of all Human beings (Q7) noted on FactGrid, statistical distribution]]]
[[File:Age at death of all FacGrid humans.JPG|thumb|right|300px|[https://tinyurl.com/yhzquxwf Age at death of all Human beings (Q7) noted on FactGrid, statistical distribution]]]
[[File:Bar chart, historical book production.png|thumb|300px|[https://database.factgrid.de/query/index.html#%23defaultView%3ABarChart%0ASELECT%20%3Fitem%20%3Fcountry%20%3Fdecade%20%20%28COUNT%28%3Fitem%29%20as%20%3Fproduction%29%20%3FcountryLabel%0AWITH%0A%7B%0A%20%20%20%20SELECT%20%3Fitem%20%3Fdecade%20%3Fplace%0A%20%20%20%20WHERE%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%3Fitem%20wdt%3AP2%20wd%3AQ394362%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20wdt%3AP243%20wd%3AQ172203%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20wdt%3AP222%20%3Fdate%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20wdt%3AP241%20%3Fplace%20.%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20BIND%28YEAR%28%3Fdate%29%20AS%20%3Fyear%29%0A%20%20%20%20%20%20%20%20%20%20BIND%28STR%28xsd%3Ainteger%28%3Fyear%2F10%29%2a10%29%20as%20%3Fdecade%29%0A%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20GROUP%20BY%20%20%3Fitem%20%3Fdecade%20%3Fplace%0A%7D%20AS%20%25results%0AWHERE%0A%7B%0A%20%20%20%20INCLUDE%20%25results.%0A%20%20%20%20%20%3Fplace%20wdt%3AP297%20%3Fcountry%20.%0A%20%20%20%20%20%3Fcountry%20wdt%3AP2%20wd%3AQ21925%20.%0A%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D%0AGROUP%20BY%20%3Fdecade%20%3Fcountry%20%3FcountryLabel%20%3Fitem Bar chart of books on Mesmerism Country]]]
[[File:Screenshot area chart.png|thumb|300px|[https://database.factgrid.de/query/embed.html#%23defaultView%3AAreaChart%0ASELECT%20%3Fitem%20%3Fcountry%20%3Fdecade%20%20(COUNT(%3Fitem)%20as%20%3Fproduction)%20%3FcountryLabel%0AWITH%0A%7B%0A%20%20%20%20SELECT%20%3Fitem%20%3Fdecade%20%3Fplace%0A%20%20%20%20WHERE%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%3Fitem%20wdt%3AP2%20wd%3AQ394362%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20wdt%3AP243%20wd%3AQ172203%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20wdt%3AP222%20%3Fdate%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20wdt%3AP241%20%3Fplace%20.%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20BIND(YEAR(%3Fdate)%20AS%20%3Fyear)%0A%20%20%20%20%20%20%20%20%20%20BIND(STR(ROUND(%3Fyear%2F10)*10)%20as%20%3Fdecade)%0A%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20GROUP%20BY%20%20%3Fitem%20%3Fdecade%20%3Fplace%0A%7D%20AS%20%25results%0AWHERE%0A%7B%0A%20%20%20%20INCLUDE%20%25results.%0A%20%20%20%20%20%3Fplace%20wdt%3AP297%20%3Fcountry%20.%0A%20%20%20%20%20%3Fcountry%20wdt%3AP2%20wd%3AQ21925%20.%0A%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D%0AGROUP%20BY%20%3Fdecade%20%3Fcountry%20%3FcountryLabel%20%3Fitem Area chart of a books on Mesmerism by language]]]
* [https://database.factgrid.de/query/embed.html#%23defaultView%3ABubbleChart%0ASELECT%20%3FSectorLabel%20(count(distinct(%3FA))%20as%20%3Fcount)%20WHERE%20%7B%0A%20%20%0A%20%20SELECT%20%3FA%20%3FALabel%20%3FADescription%20%3Ffamily_nameLabel%20%3FEntry%20%3FBnF_ID%20%3FDate_of_birth%20%3FSector%20%3FSectorLabel%20WHERE%20%7B%0A%20%20%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%22.%20%7D%0A%20%20%20%20%3FA%20wdt%3AP91%20wd%3AQ11161.%0A%20%20%20%20%3FA%20wdt%3AP165%20%3FOccupation.%20%0A%20%20%20%20%3FOccupation%20wdt%3AP626%20%3FSector.%0A%7D%0A%20%20%0A%20%20%7D%20group%20by%20%3FSectorLabel The members of Frankfurt's Union-Lodge, branches of occupation, bubble chart]
* [https://database.factgrid.de/query/embed.html#%23defaultView%3ABubbleChart%0ASELECT%20%3FSectorLabel%20(count(distinct(%3FA))%20as%20%3Fcount)%20WHERE%20%7B%0A%20%20%0A%20%20SELECT%20%3FA%20%3FALabel%20%3FADescription%20%3Ffamily_nameLabel%20%3FEntry%20%3FBnF_ID%20%3FDate_of_birth%20%3FSector%20%3FSectorLabel%20WHERE%20%7B%0A%20%20%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%22.%20%7D%0A%20%20%20%20%3FA%20wdt%3AP91%20wd%3AQ11161.%0A%20%20%20%20%3FA%20wdt%3AP165%20%3FOccupation.%20%0A%20%20%20%20%3FOccupation%20wdt%3AP626%20%3FSector.%0A%7D%0A%20%20%0A%20%20%7D%20group%20by%20%3FSectorLabel The members of Frankfurt's Union-Lodge, branches of occupation, bubble chart]
* [https://database.factgrid.de/query/index.html#%23defaultView%3ABarChart%0ASELECT%20%3FGenderLabel%20%28count%28distinct%28%3FA%29%29%20as%20%3Fcount%29%20WHERE%20%7B%0A%20%20%0A%20%20SELECT%20%3FA%20%3FALabel%20%3FADescription%20%3Ffamily_nameLabel%20%3FEntry%20%3FBnF_ID%20%3FDate_of_birth%20%3FGender%20%3FGenderLabel%20WHERE%20%7B%0A%20%20%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%22.%20%7D%0A%20%20%20%20%3FA%20wdt%3AP300%20wd%3AQ255080.%0A%20%20%20%20%3FA%20wdt%3AP154%20%3FGender.%20%0A%7D%0A%20%20%0A%20%20%7D%20group%20by%20%3FGenderLabel Followers of the "French Prophets", gender ratio, bar chart]
* [https://database.factgrid.de/query/index.html#%23defaultView%3ABarChart%0ASELECT%20%3FGenderLabel%20%28count%28distinct%28%3FA%29%29%20as%20%3Fcount%29%20WHERE%20%7B%0A%20%20%0A%20%20SELECT%20%3FA%20%3FALabel%20%3FADescription%20%3Ffamily_nameLabel%20%3FEntry%20%3FBnF_ID%20%3FDate_of_birth%20%3FGender%20%3FGenderLabel%20WHERE%20%7B%0A%20%20%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%22.%20%7D%0A%20%20%20%20%3FA%20wdt%3AP300%20wd%3AQ255080.%0A%20%20%20%20%3FA%20wdt%3AP154%20%3FGender.%20%0A%7D%0A%20%20%0A%20%20%7D%20group%20by%20%3FGenderLabel Followers of the "French Prophets", gender ratio, bar chart]
Line 91: Line 98:
:* [https://tinyurl.com/2xzmdxw9 Age profile for the Strict Observance]
:* [https://tinyurl.com/2xzmdxw9 Age profile for the Strict Observance]
:* [https://tinyurl.com/2bf5w5ec Age profile for the Illuminati]
:* [https://tinyurl.com/2bf5w5ec Age profile for the Illuminati]
:* [https://database.factgrid.de/query/index.html#SELECT%20%3FPerson%20%3FPersonLabel%20%3FDatum%20%3FGebDat%20%3Fage%20WHERE%20%7B%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22de%22.%20%7D%0A%20%20%3FPerson%20wdt%3AP91%20wd%3AQ10677%3B%0A%20%20%20%20wdt%3AP91%20wd%3AQ10677%3B%0A%20%20%20%20p%3AP91%20%3Fstatement.%0A%20%20%3Fstatement%20ps%3AP91%20wd%3AQ10677.%0A%20%20OPTIONAL%20%7B%20%3Fstatement%20pq%3AP49%20%3FDatum.%20%7D%0A%20%20OPTIONAL%20%7B%20%3FPerson%20wdt%3AP77%20%3FGebDat.%20%7D%0A%20%20%20%20%20%20%20%20BIND%28%20year%28%3FDatum%29%20-%20year%28%3FGebDat%29%20-%20if%28month%28%3FDatum%29%3Cmonth%28%3FGebDat%29%20%7C%7C%20%28month%28%3FDatum%29%3Dmonth%28%3FGebDat%29%20%26%26%20day%28%3FDatum%29%3Cday%28%3FGebDat%29%29%2C1%2C0%29%20as%20%3Fage%20%29%0A%20%20%20%20%20%20%20%20%23%20calculate%20the%20age%2C%20precisely%20to%20the%20day%20%28times%20and%20timezones%20ignored%29%0A%7D%0AORDER%20BY%20%28%3FDatum%29 How old was the person when he became a member of the Illuminati?]


* [https://database.factgrid.de/query/index.html#%23defaultView%3ALineChart%0ASELECT%20%3Fdate%20%20%28COUNT%20%28DISTINCT%20%3Fa%29%20AS%20%3Fcount%29%20%0AWHERE%20%7B%0A%20%20%20%20%20%20%20%20%20%20%3Fa%20wdt%3AP2%20wd%3AQ20%3B%0A%20%20%20%20%20%20%20%20%20%20%20wdt%3AP136%20wd%3AQ400628%3B%0A%20%20%20%20%20%20%20%20%20%20%20wdt%3AP222%20%3Fdate%20.%0A%20%20%20%20%20%20%20%20%20%20%20FILTER%20%28%20YEAR%28%3Fdate%29%20%3E%201700%20%29%0A%7D%0A%20GROUP%20BY%20%0A%3Fdate%0A%0A J.J.C. Bode's Library (1793), profile by date of publication of the copies]
* [https://database.factgrid.de/query/index.html#%23defaultView%3ALineChart%0ASELECT%20%3Fdate%20%20%28COUNT%20%28DISTINCT%20%3Fa%29%20AS%20%3Fcount%29%20%0AWHERE%20%7B%0A%20%20%20%20%20%20%20%20%20%20%3Fa%20wdt%3AP2%20wd%3AQ20%3B%0A%20%20%20%20%20%20%20%20%20%20%20wdt%3AP136%20wd%3AQ400628%3B%0A%20%20%20%20%20%20%20%20%20%20%20wdt%3AP222%20%3Fdate%20.%0A%20%20%20%20%20%20%20%20%20%20%20FILTER%20%28%20YEAR%28%3Fdate%29%20%3E%201700%20%29%0A%7D%0A%20GROUP%20BY%20%0A%3Fdate%0A%0A J.J.C. Bode's Library (1793), profile by date of publication of the copies]
* [https://database.factgrid.de/query/embed.html#%23defaultView%3ABarChart%0ASELECT%20%3Fitem%20%3Fcountry%20%3Fdecade%20%20(COUNT(%3Fitem)%20as%20%3Fproduction)%20%3FcountryLabel%0AWITH%0A%7B%0A%20%20%20%20SELECT%20%3Fitem%20%3Fdecade%20%3Fplace%0A%20%20%20%20WHERE%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%3Fitem%20wdt%3AP2%20wd%3AQ394362%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20wdt%3AP243%20wd%3AQ172203%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20wdt%3AP222%20%3Fdate%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20wdt%3AP241%20%3Fplace%20.%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20BIND(YEAR(%3Fdate)%20AS%20%3Fyear)%0A%20%20%20%20%20%20%20%20%20%20BIND(STR(ROUND(%3Fyear%2F10)*10)%20as%20%3Fdecade)%0A%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20GROUP%20BY%20%20%3Fitem%20%3Fdecade%20%3Fplace%0A%7D%20AS%20%25results%0AWHERE%0A%7B%0A%20%20%20%20INCLUDE%20%25results.%0A%20%20%20%20%20%3Fplace%20wdt%3AP297%20%3Fcountry%20.%0A%20%20%20%20%20%3Fcountry%20wdt%3AP2%20wd%3AQ21925%20.%0A%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D%0AGROUP%20BY%20%3Fdecade%20%3Fcountry%20%3FcountryLabel%20%3Fitem Bar chart of a historical book production by decade, script by Bruno Belhoste, books on Mesmerism by language]
* [https://database.factgrid.de/query/embed.html#%23defaultView%3AAreaChart%0ASELECT%20%3Fitem%20%3Fcountry%20%3Fdecade%20%20(COUNT(%3Fitem)%20as%20%3Fproduction)%20%3FcountryLabel%0AWITH%0A%7B%0A%20%20%20%20SELECT%20%3Fitem%20%3Fdecade%20%3Fplace%0A%20%20%20%20WHERE%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%3Fitem%20wdt%3AP2%20wd%3AQ394362%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20wdt%3AP243%20wd%3AQ172203%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20wdt%3AP222%20%3Fdate%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20wdt%3AP241%20%3Fplace%20.%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20BIND(YEAR(%3Fdate)%20AS%20%3Fyear)%0A%20%20%20%20%20%20%20%20%20%20BIND(STR(ROUND(%3Fyear%2F10)*10)%20as%20%3Fdecade)%0A%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20GROUP%20BY%20%20%3Fitem%20%3Fdecade%20%3Fplace%0A%7D%20AS%20%25results%0AWHERE%0A%7B%0A%20%20%20%20INCLUDE%20%25results.%0A%20%20%20%20%20%3Fplace%20wdt%3AP297%20%3Fcountry%20.%0A%20%20%20%20%20%3Fcountry%20wdt%3AP2%20wd%3AQ21925%20.%0A%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D%0AGROUP%20BY%20%3Fdecade%20%3Fcountry%20%3FcountryLabel%20%3Fitem Area chart of a historical book production by decade, script by Bruno Belhoste, books on Mesmerism by language]
*
[https://database.factgrid.de/query/#%23defaultView%3ABubbleChart%0ASELECT%20%3FpositionLabel%20%28COUNT%28%3Fitem%29%20AS%20%3Fcount%29%20%0AWHERE%20%0A%7B%20%3Fitem%20wdt%3AP2%20wd%3AQ20%3B%0A%20%20%20%20%20%20%20%20wdt%3AP243%20wd%3AQ172203%3B%0A%20%20%20%20%20%20%20%20wdt%3AP222%20%3Fdate%20.%0A%20OPTIONAL%20%7B%20%3Fitem%20%20%20p%3AP243%5Bpq%3AP823%20%3Fposition%5D%20%7D%20.%0A%20BIND%28COALESCE%28%3FpositionLabel%2C%20%22Indifferent%22%29%20AS%20%3FpositionLabel%29%0A%20BIND%28YEAR%28%3Fdate%29%20AS%20%3Fyear%29%20%0A%20FILTER%20%28%3Fyear%20%3E%3D1784%20%26%26%20%3Fyear%20%3C%3D%201785%20%29%20%23les%20bornes%20temporelles%20%28ici%201784%20et%201785%29%20peuvent%20%C3%AAtre%20modifi%C3%A9es%0A%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%20%7D%0A%20GROUP%20BY%20%3FpositionLabel%0A Bubble chart of books on animal magnetism in 1784-1785, pro, contra and indifferent; indifferent replacing empty value]


== Grammatically intricate searches ==
== Grammatically intricate searches ==
=== Wimimedia sources ===
=== Wimimedia sources ===
* [https://database.factgrid.de/query/#SELECT%20%3Fplace%20%3FplaceLabel%20%3Flink%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%3Fplace%20wdt%3AP2%20wd%3AQ8.%0A%20%20%3Flink%20schema%3Aabout%20%3Fplace%20%3B%20schema%3AisPartOf%20%3Chttps%3A%2F%2Fwww.wikidata.org%2F%3E%20.%0A%7D all places - with their respective Wikidata numbers]
* [https://database.factgrid.de/query/#SELECT%20%3Fplace%20%3FplaceLabel%20%3Flink%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%3Fplace%20wdt%3AP2%20wd%3AQ8.%0A%20%20%3Flink%20schema%3Aabout%20%3Fplace%20%3B%20schema%3AisPartOf%20%3Chttps%3A%2F%2Fwww.wikidata.org%2F%3E%20.%0A%7D all places - with their respective Wikidata numbers]
* [https://database.factgrid.de/query/#SELECT%20%3Fplace%20%3FplaceLabel%20%3Flink%20%3Fname%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%3Fplace%20wdt%3AP2%20wd%3AQ8.%0A%20%20%3Flink%20schema%3Aabout%20%3Fplace%20%3B%20schema%3AisPartOf%20%3Chttps%3A%2F%2Fuk.wikipedia.org%2F%3E%3B%0A%20%20%20%20%20%20%20%20schema%3Aname%20%3Fname%20.%0A%7D All places that have an article on the Ukrainian Wikipedia; link with the respective uk.wp lemma]
* [https://database.factgrid.de/query/#SELECT%20%3Fitem%20%3FitemLabel%20%3Flink%20%3Fis%20%3FisLabel%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%3Flink%20schema%3Aabout%20%3Fitem%3B%0A%20%20%20%20schema%3AisPartOf%20%3Chttps%3A%2F%2Fwww.wikidata.org%2F%3E.%0A%20%20OPTIONAL%20%7B%20%3Fitem%20wdt%3AP2%20%3Fis.%20%7D%0A%20%20%20%20%20%20minus%20%7B%0A%20%20%20%20%20%20values%20%3Fis%20%7B%0A%20%20%20%20%20%20%20%20wd%3AQ7%20%0A%20%20%20%20%20%20%20%20wd%3AQ8%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%20%7D%0A%20%20%0A%7D All items with a Wikidata equivalent, without humans and localities]


=== Statements with sources ===
=== Statements with sources ===
Line 103: Line 117:
=== Statements with unit information ===
=== Statements with unit information ===
* [https://database.factgrid.de/query/embed.html#%23Alle%20Testamente%20der%20L%C3%BCbecker%20B%C3%BCrger%20mit%20den%20jeweiligen%20Erbnehmern%0ASELECT%20%3Fitem%20%3FitemLabel%20%3Freceiver%20%3FreceiverLabel%20%3Fmonetaryvalue%20%3FunitLabel%0AWHERE%20%0A%7B%0A%20%20%3Fitem%20wdt%3AP131%20%20wd%3AQ452393.%0A%20%20%3Fitem%20wdt%3AP417%20%3Freceiver%0AOPTIONAL%20%7B%20%3Freceiver%20pq%3AP73%20%3FErbe_Notiz.%20%7D%0AOPTIONAL%20%7B%20%3Fitem%20p%3AP417%20%5B%20ps%3AP417%20%3Freceiver%3B%20pq%3AP545%20%3Fmonetaryvalue%20%3B%20%20pqv%3AP545%20%3Fmonetaryunit%20%5D%20.%20%3Fmonetaryunit%20wikibase%3AquantityUnit%20%3Funit%20%7D%0A%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cde%22.%20%7D%20%0A%7D%0A%0AORDER%20BY%20%3FerbnehmerLabel%0ALIMIT%2030 inherited sums of money, Lübeck late Middle Ages]
* [https://database.factgrid.de/query/embed.html#%23Alle%20Testamente%20der%20L%C3%BCbecker%20B%C3%BCrger%20mit%20den%20jeweiligen%20Erbnehmern%0ASELECT%20%3Fitem%20%3FitemLabel%20%3Freceiver%20%3FreceiverLabel%20%3Fmonetaryvalue%20%3FunitLabel%0AWHERE%20%0A%7B%0A%20%20%3Fitem%20wdt%3AP131%20%20wd%3AQ452393.%0A%20%20%3Fitem%20wdt%3AP417%20%3Freceiver%0AOPTIONAL%20%7B%20%3Freceiver%20pq%3AP73%20%3FErbe_Notiz.%20%7D%0AOPTIONAL%20%7B%20%3Fitem%20p%3AP417%20%5B%20ps%3AP417%20%3Freceiver%3B%20pq%3AP545%20%3Fmonetaryvalue%20%3B%20%20pqv%3AP545%20%3Fmonetaryunit%20%5D%20.%20%3Fmonetaryunit%20wikibase%3AquantityUnit%20%3Funit%20%7D%0A%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cde%22.%20%7D%20%0A%7D%0A%0AORDER%20BY%20%3FerbnehmerLabel%0ALIMIT%2030 inherited sums of money, Lübeck late Middle Ages]
* [https://database.factgrid.de/query/#SELECT%20%3FMensch%20%3FMenschLabel%20%3FAdresse%20%3FAdresseLabel%20%3FGeokoordinaten%20%3FMiete%20%3FunitLabel%20%3FGramm_Silber%20%3FGramm_SilberGegenwert%20WHERE%20%7B%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2C%20en%22.%20%7D%0A%20%20%0A%20%20%3FMensch%20wdt%3AP2%20wd%3AQ7%3B%0A%20%20%20%20wdt%3AP83%20wd%3AQ10408%3B%0A%20%20%20%20wdt%3AP165%20wd%3AQ38388.%0A%20%20%0A%20%20OPTIONAL%20%7B%20%3FMensch%20wdt%3AP208%20%3FAdresse.%20%7D%0A%20%20OPTIONAL%20%7B%20%3FAdresse%20wdt%3AP48%20%3FGeokoordinaten.%20%7D%0A%20%20%0A%20%20OPTIONAL%20%7B%20%0A%20%20%20%20%3FMensch%20p%3AP208%20%5B%20ps%3AP208%20%3FAdresse%3B%20pq%3AP943%20%3FMiete%20%3B%20%20pqv%3AP943%20%3Fmonetaryunit%20%5D%20.%20%0A%20%20%20%20%3Fmonetaryunit%20wikibase%3AquantityUnit%20%3Funit.%20%0A%20%20%20%20%3Funit%20wdt%3AP680%20%3FGramm_Silber.%20%0A%20%20%20%20BIND%20%28%3FMiete%20%2a%20%3FGramm_Silber%20AS%20%3FGramm_SilberGegenwert%29%0A%20%20%7D%0A%0A%20%20%3FMensch%20wdt%3AP131%20wd%3AQ469500.%0A%7D get the silver-equivalent for a computation in Reichsthaler]


=== Get information from connected items ===
=== Get information from connected items ===
Line 113: Line 128:


=== Search for all the Qualifiers on Statements with the same property ===
=== Search for all the Qualifiers on Statements with the same property ===
* [https://tinyurl.com/2lgxe4ha all the qualifiers for the people holding position at the pastorates of the Duchy of Gotha-Anstalt] useful when you want to delete a specific qualfier in a batch of items (here the pastorates of the Duchy), because it is not possible to simply delete qualifiers with Quickstatements. You need to delete the stateemnt with all its qualifiers and reinstall it without the qualifier you want to delete.
* [https://tinyurl.com/2lgxe4ha all the qualifiers for the people holding position at the pastorates of the Duchy of Gotha-Anstalt] useful when you want to delete a specific qualifier in a batch of items (here the pastorates of the Duchy), because it is not possible to simply delete qualifiers with Quickstatements. You need to delete the statement with all its qualifiers and reinstall it without the qualifier you want to delete.


=== You already know one related value ===
=== You already know one related value ===
Line 133: Line 148:
* [https://database.factgrid.de/query/#SELECT%20%3Fitem%20%3FitemLabel%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%3Fitem%20wdt%3AP131%20wd%3AQ465031.%0A%20%20FILTER%20NOT%20EXISTS%20%7B%20%3Fitem%20wdt%3AP66%20%3Fval%20%7D%0A%7D%0A All the titles of a specific project, that lack a P66 statement]
* [https://database.factgrid.de/query/#SELECT%20%3Fitem%20%3FitemLabel%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%3Fitem%20wdt%3AP131%20wd%3AQ465031.%0A%20%20FILTER%20NOT%20EXISTS%20%7B%20%3Fitem%20wdt%3AP66%20%3Fval%20%7D%0A%7D%0A All the titles of a specific project, that lack a P66 statement]
* [https://database.factgrid.de/query/#SELECT%20%3FDocument%20%3FDocumentLabel%20%3FAuthor%20%3FAuthorLabel%20%3FGND%20%3FGND2%20%3FRecipient%20%3FRecipientLabel%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%3FDocument%20wdt%3AP2%20wd%3AQ10671.%0A%20%20%3FDocument%20wdt%3AP21%20%3FAuthor.%0A%20%20%20%20%20%20%20%20%20%20%3FAuthor%20wdt%3AP76%20%3FGND.%20%0A%20%20%20%20%3FDocument%20wdt%3AP28%20%3FRecipient.%0A%20%20%20%20%20%20FILTER%20NOT%20EXISTS%20%7B%20%3FRecipient%20wdt%3AP76%20%3Fval%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%7D All people who do not have a GND number but who receive mail from a person with such a number]
* [https://database.factgrid.de/query/#SELECT%20%3FDocument%20%3FDocumentLabel%20%3FAuthor%20%3FAuthorLabel%20%3FGND%20%3FGND2%20%3FRecipient%20%3FRecipientLabel%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%3FDocument%20wdt%3AP2%20wd%3AQ10671.%0A%20%20%3FDocument%20wdt%3AP21%20%3FAuthor.%0A%20%20%20%20%20%20%20%20%20%20%3FAuthor%20wdt%3AP76%20%3FGND.%20%0A%20%20%20%20%3FDocument%20wdt%3AP28%20%3FRecipient.%0A%20%20%20%20%20%20FILTER%20NOT%20EXISTS%20%7B%20%3FRecipient%20wdt%3AP76%20%3Fval%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%7D All people who do not have a GND number but who receive mail from a person with such a number]
* [https://tinyurl.com/2m7zbyzt all types of non-literary genres that were not listed in Eckard Rolf's book of 1993, with their present position in Rolf's systematisation]
== Wildcards ==
* [https://database.factgrid.de/query/index.html#%23title%3A%20Personnes%20li%C3%A9es%20%C3%A0%20Rennes%0ASELECT%20DISTINCT%20%3Fpersonne%20%3FpersonneLabel%20%3Fpage%20WHERE%20%7B%0A%20%20%3Fpersonne%20%3Fprop%20wd%3AQ129672%20%3B%0A%20%20%20%20%20%20%20%20wdt%3AP2%20wd%3AQ7%20.%0A%20%20OPTIONAL%20%7B%20%3Fpage%20schema%3Aabout%20%3Fpersonne%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20schema%3AisPartOf%20%3Chttps%3A%2F%2Fwww.wikidata.org%2F%3E%20%7D%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D all  people linked to the French city of Renne]


== State all statements that are made on an item ==
== State all statements that are made on an item ==
Line 151: Line 170:


== SPARQL patterns for reuse ==
== SPARQL patterns for reuse ==
=== GROUP_CONCAT Bring several values in one cell (to avoid the repetition of lines) ===
* [https://database.factgrid.de/query/embed.html#SELECT%20%3FNr%20%3FSignatur%20%3Fitem%20%3FitemLabel%20%3FInhalt%20%28YEAR%28%3Fvon1%29%20AS%20%3Fvon%29%20%28YEAR%28%3Fbis1%29%20AS%20%3Fbis%29%20%28GROUP_CONCAT%28%3FPersonLabel%3B%20SEPARATOR%20%3D%20%22%20%E2%80%A2%20%22%29%20AS%20%3FPersonLabels%29%20WHERE%20%7B%0A%20%20%3Fitem%20wdt%3AP329%20wd%3AQ35000%3B%0A%20%20%20%20%20%20%20%20wdt%3AP2%20wd%3AQ10672.%0A%20%20%20OPTIONAL%20%7B%20%3Fitem%20wdt%3AP49%20%3Fvon1.%20%7D%0A%20%20OPTIONAL%20%7B%20%3Fitem%20wdt%3AP50%20%3Fbis1.%20%7D%0A%20%20OPTIONAL%20%7B%20%3Fitem%20%28p%3AP329%2Fpq%3AP10%29%20%3FSignatur.%20%7D%0A%20%20OPTIONAL%20%7B%20%3Fitem%20wdt%3AP499%20%3FNr.%20%7D%0A%20%20OPTIONAL%20%7B%20%3Fitem%20wdt%3AP724%20%3FInhalt.%20%7D%0A%20%20OPTIONAL%20%7B%20%3Fitem%20wdt%3AP33%20%3FPerson.%20%7D%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%0A%20%20%20%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%0A%20%20%20%20%3FPerson%20rdfs%3Alabel%20%3FPersonLabel.%0A%20%20%20%20%3Fitem%20rdfs%3Alabel%20%3FitemLabel.%0A%20%20%7D%0A%7D%0AGROUP%20BY%20%3Fitem%20%3FitemLabel%20%3FNr%20%3FSignatur%20%3FInhalt%20%3Fvon1%20%3Fbis1%0AORDER%20BY%20%3FNr Table with names of persons mentioned collected in the last cells]


=== Count properties ===
=== Count properties ===

Latest revision as of 14:46, 28 February 2024

Help:



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

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

Looking for dates

Dates are still a problem with wikibase. The manual input is very sophisticated. You can set the precision of date and you can define the calendar format. The QuickStatements mass input allows a definition of precision with a defining component on each date (for instance "/9" precision year, "/11" precision day...) but regular searches as formulated with the Query Service's Query Helper do not grab these additional details. A 1650 year input is downloaded as a "1 January 1650" value unless you specifically ask for the precision:

Maps

Dots

Lines

Tables

  • no functional query yet, but a first attempt is here, modeled after the "academic tree" graph in Scholia's author aspect

Graphs

Timelines

Statistics

Bubble chart of books on animal magnetism in 1784-1785, pro, contra and indifferent; indifferent replacing empty value

Grammatically intricate searches

Wimimedia sources

Statements with sources

Statements with unit information

Get information from connected items

Search for specific Qualifiers on a Statement

Search for all the Qualifiers on Statements with the same property

You already know one related value

  • all the lodges of Saint Domingue/Haiti the intricate part is, that the lodges only have information on places, the places have information on the territorial affiliation - we ask for Q176240 (Haiti) as the must have value. The bracket can also have more countries.

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. # ?st is the the statement node
  ?st ps:P266 ?o. # that simulates the predicate
  ?st ?qualifier ?value. # this is an attribute (a qualifier)
}

Missing Statements

These searches are most practical to see where work has to be done or where one has forgotten to make a certain statement.

Wildcards

State all statements that are made on an item

Filters

Filter based on strings

Filtering results containing certain strings (texts) can be archieved with `FILTER()`

SPARQL patterns for reuse

GROUP_CONCAT Bring several values in one cell (to avoid the repetition of lines)

Count properties

Get all properties of an item

SELECT ?p ?o WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  wd:Q406029 ?p ?o
 }

count statements per item within a certain project

or within any other property-object relation

 SELECT DISTINCT ?item ?itemLabel ?statementcount WHERE {
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
   # change property item relation
   ?item wdt:P131 wd:Q400012 .
   ?item wikibase:statements ?statementcount.
 }

Get popular items

Considering outcoming, incoming and sitelinks as proxys for popularity, one can formulate this query.

E.g. for Lodges:

 SELECT ?item ?itemLabel ?outcoming ?sitelinks ?incoming {
     ?item wdt:P2 wd:Q11211.
     ?item wikibase:statements ?outcoming .
     ?item wikibase:sitelinks ?sitelinks .
        {
        SELECT (count(?s) AS ?incoming) ?item WHERE {
            ?item wdt:P2 wd:Q11211.
            ?s ?p ?item .
            [] wikibase:directClaim ?p 
        } GROUP BY ?item
  }
   SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }.  
 } ORDER BY DESC (?incoming)

Federated Queries

Federated queries are those that gather data from multiple data sources. Factgrid can request data from Wikidata and DBpedia.


Get Factgrid IDs that don't have a Wikidata QID, but can be found in Wikidata via its Factgrid ID

Try it

 #defaultView:Table
 # Prefixes
 PREFIX fg: <https://database.factgrid.de/entity/>
 PREFIX fgt: <https://database.factgrid.de/prop/direct/>
 PREFIX wdt: <http://www.wikidata.org/prop/direct/>
 PREFIX wd: <http://www.wikidata.org/entity/>
 PREFIX wikibase: <http://wikiba.se/ontology#>
 PREFIX bd: <http://www.bigdata.com/rdf#>
 PREFIX schema: <http://schema.org/>
 SELECT DISTINCT ?fg_item ?fg_itemLabel ?fg_item_as_string ?wd_item where {
   # labels from Factgrid
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } 
   # maybe filter to prevent timeout
   #?fg_item fgt:P131 fg:Q400012.
   # get those Factgrid IDs that don't have a Wikidata QID
   FILTER NOT EXISTS {
     ?link schema:about ?fg_item .
     ?link schema:isPartOf <https://www.wikidata.org/> . #Targeting Wikipedia language where subjects has no article.
   }
   # Convert Factgrid ID from IRI to string
   BIND(REPLACE(STR(?fg_item), "https://database.factgrid.de/entity/", "") as ?fg_item_as_string) 
   # get those Items from Wikidata that have that corresponding Factgrid ID
   SERVICE <https://query.wikidata.org/sparql> {
     ?wd_item wdt:P8168 ?fg_item_as_string
   }
 }

Wishful thinking

Notes

  1. Adapted from here.