onsdag 19 juli 2017

Timeline Wikitree before 1700


Query

Norra Krematoriet

Vi har några i svenskaGravar.se med Norra Krematoriet som inte finns med koordinat i HittaGraven

Special Länksökning

SBL länkar utan mall


Upload to Commons - Graves with no pictures on Q252312

App:  Upload to commons Android_App/Renewal

User case graves with no pictures see Talk

P1442 picture of grave

Normally a picture is Property:P18  ==> you have a Wikidata object with coordinates P625.

Graves has a less normalized implementation ==> you add the grave picture, plot information, coordinates of grave for every person in the grave.... see below a search for missing picture of Grave of people on a cemetery Q252312

OBS Wikidata query tool has problem visualize 2 dots with the same coordinates (all coordinates are displayed over each other  see e.g. wiki-map that has some "explode" support for items with the same coordinates) 

Graves with no gravepictures on Q252312  ==> SPARQL minus P1442



Graves that has grave pictures P1442 on cemetery Q252312


A layered approach pictures/no pictures

tisdag 18 juli 2017

Change request for Wikipedia for Iphone

Phabricator T171284

User case:

As an user walking around on a cemetery I would like to see if there exists any articles in WIkipedia about people in the graves near me....

Coordinates in Wikipedia

Coordinates can be primary or secondary see Extension:GeoData#Glossary


Coordinates in Articles

In an article you should have just one coordinate as the primary. For an article about a person its not obvious what coordinate is the primary is it:
  1. The location of a famous painting
  2. The location of the house he was born
  3. The grave (his current location)

Grave Coordinates

A good location to store grave locations are in Wikidata P119 and then use a template to make it visible in the article (or visual hidden ==> just for tools like Wikipedia for Iphone).



As a grave is maybe not the primary coordinate of an article about a person it will be transformed as a secondary coordinate to avoid getting more primary coordinates ==> we get problems with apps just retrieving default the primary coordinate....

Retrieving coordinates primary(default) vs. all

gsprimary=all coordinates 59.356500 18.031694 ==> grave Lena Nyman shown

{
                "pageid": 31877,
                "ns": 0,
                "title": "Lena Nyman",
                "lat": 59.3565,
                "lon": 18.0317,
                "dist": 0.3
            },

default is gsprimary=primary coordinates 59.356500 18.031694 Lena Nyman's grave not shown

Suggested change Wikipedia for Iphone

Retrieve also secondary coordinates

Next step
I guess lesson learned of having +1200 coordinates on a  small area is that filtering is interesting....having the possibility to just see grave coordinates and not coordinates for buildings

==> I guess the concept of coordinates in Wikidata needs to be developed and saying that coordinate xxx is of an instance of yyyy

Misc
  • Wiki-map now supports gsprimary=all see blog
  • With 1200 people with coordinates also a function most famous is of interest see blog
  • Filter on graves with people with Spotify Artist ID see blog
  • Instead of dots on a map see the people near me on a Timeline e.g. Histropedia (picture below)

Histropedia Timeline of people on the cemetery
Diary
2017-07-20 Phabricator task created T171284 and email sent to mobile-ios-wikipedia@wikimedia.org" 

måndag 17 juli 2017

Update Wiki-map graves

Update 2017-jun

I emailed David Taylor  and wiki-map has changed and is now fetching all coordinates using gsprimary=all


==>the grave of Lena Nymans can be seen although its not a primary coordinate










api caction=query&titles=Lena Nyman.....&coprimary=all




{
    "batchcomplete": "",
    "query": {
        "pages": {
            "31877": {
                "pageid": 31877,
                "ns": 0,
                "title": "Lena Nyman",
                "coordinates": [
                    {
                        "lat": 59.3565,
                        "lon": 18.0317,
                        "globe": "earth",
                        "name": "grav+f%C3%B6r+Lena+Nyman",
                        "type": "landmark"
                    }
                ]
            }
        }
    }
}









Wiki-map is a javascript implementation.

  1. The grave of Lena Nyman has coordinates in Wikidata Q255967#P119 and use a Wikipediatemplate Infobox Skådespelare ==> coordinates are not primary coordinates
  2. Alfred Nobel has coordinates in Wikidata Q23810#P119 and use the Template  Faktamall_biografi_WD ==> the coordinates are displayed as primary coordinates
Status today for the cemetery Northern Cemetery Stockholm wd:Q252312

URL used after change in Wiki-map gsprimary=all ==> fetch all coordinates also the grave for Lena Nymans grav


https://sv.wikipedia.org/w/api.php?action=query&list=geosearch&gsprimary=all&gsradius=3675.732859607522&gscoord=59.356500|18.031694&gslimit=20&callback=?

See below Lena Nyman vs. primary coordinates Gustaf Lagercrantz
"geosearch": [
            {
                "pageid": 31877,
                "ns": 0,
                "title": "Lena Nyman",
                "lat": 59.3565,
                "lon": 18.0317,
                "dist": 0.3
            },
            {
                "pageid": 672192,
                "ns": 0,
                "title": "Gustaf Lagercrantz",
                "lat": 59.35652,
                "lon": 18.03183,
                "dist": 8,
                "primary": ""
            },


Today about 1000 graves are seen ==> compared before 776

Still problem with Iphone apps like V for Wiki (see change request)  and Wikipedia for Iphone


söndag 16 juli 2017

Wiki-map supports all types of coordinates in Wikipedia

David Taylor has updated wiki-map and he is now fetching all coordinates (gsprimary=allfrom Wikipedia

Today about +1068 graves are visible on Norra Begravningsplatsen with coordinates (Petscan query)

  • Next step is to add support for some Templates used for profiles on Wikipedia that are not supporting coordinates for Graves about 372 profiles 




onsdag 12 juli 2017

Suggested change V for Wiki

User case:
As an user walking around on a cemetery I would like to see if there exists any articles in WIkipedia about people in the graves near me....

Coordinates in Wikipedia

Coordinates can be primary or secondary see Extension:GeoData#Glossary


Coordinates in Articles

In an article you should have just one coordinate as the primary. For an article about a person its not obvious what coordinate is the primary is it:
  1. The location of a famous painting
  2. The location of the house he was born
  3. The grave (his current location)

Grave Coordinates

A good location to store grave locations are in Wikidata P119 and then use a template to make it visible in the article (or visual hidden ==> just for tools like V for Wiki).

As a grave is maybe not the primary coordinate of an article about a person it will be transformed as a secondary coordinate to avoid getting more primary coordinates ==> we get problems with apps just retrieving default the primary coordinate....

Retrieving coordinates primary vs. all

gsprimary=all coordinates 59.356500 18.031694 ==> grave Lena Nyman shown

{
                "pageid": 31877,
                "ns": 0,
                "title": "Lena Nyman",
                "lat": 59.3565,
                "lon": 18.0317,
                "dist": 0.3
            },

default is gsprimary=primary coordinates 59.356500 18.031694 Lena Nyman's grave not shown

Suggested change V for Wiki

Retrieve also secondary coordinates

Next step
I guess lesson learned of having +1200 coordinates on a  small area is that filtering is interesting....having the possibility to just see grave coordinates and not coordinates for buildings

==> I guess the concept of coordinates in Wikidata needs to be developed and saying that coordinate xxx is of an instance of yyyy

V for Wiki works in Apple watch  

V for Wiki using Swedish wikipedia at Norra Begravningsplatsen displaying distance to a grave but looks like we also need to retrieve all coordinates....


Misc
  • Wiki-map now supports gsprimary=all see blog
  • With 1200 people with coordinates also a function most famous is of interest see blog
  • Filter on graves with people with Spotify Artist ID see blog
  • Instead of dots on a map see the people near me on a Timeline e.g. Histropedia (picture below)


tisdag 11 juli 2017

Test wiki-map

Uppdatering
Jag emailed David Taylor  och wiki-map hämtar nu alla koordinater gsprimary=all


==> Lena Nymans grav syns














Test wiki-map som jag fick tips om i Bybrunnen

Wiki-map är en javascript implementation. Nedan den URL som används ==> att vi ser samma problem som beskrivs i blog Lena Nymans grav där

  1. Lena Nyman har koordinater till graven i Wikidata Q255967#P119 och använder en Wikipedia mall Infobox Skådespelare ==> att den koordinat som skapas inte syns
  2. Alfred Nobel har koordinater till graven i Wikidata Q23810#P119 och använder en Wikipedia mall Faktamall_biografi_WD ==> att den koordinat som skapas syns
Status idag är

URL som används i Wiki-map

requestURL = 'https://sv.wikipedia.org/w/api.php?format=json&action=query&list=geosearch&gsradius='+diagonal+'&gscoord='+center.lat()+'|'+center.lng()+'&gslimit=500&callback=?&continue=';
           
===>

  1. koordinat  nära Alfred Nobel 59.356340, 18.032215 - Google map
  2. hämta 20 poster 
https://sv.wikipedia.org/w/api.php?format=json&action=query&list=geosearch&gsradius=3675.732859607522&gscoord=59.356340|18.032215&gslimit=20&callback=?

==>
......
{"pageid":10077,"ns":0,"title":"Alfred Nobel","lat":59.3562,"lon":18.0322,"dist":15.6,"primary":""},{"pageid":474096,"ns":0,"title":"Carl Fredrik Liljevalch den \u00e4ldre","lat":59.3562,"lon":18.0324,"dist":18.8,"primary":""}
.......
  1. koordinat  nära Lena Nyman 59.356500, 18.031694 Google map
  2. hämta 20 poster 

Lägger på gsprimary=all ==> hämtar alla koordinater dvs. också Lena Nymans grav

https://sv.wikipedia.org/w/api.php?action=query&list=geosearch&gsprimary=all&gsradius=3675.732859607522&gscoord=59.356500|18.031694&gslimit=20&callback=?

See below Lena Nyman vs. primary coordinates Gustaf Lagercrantz
"geosearch": [
            {
                "pageid": 31877,
                "ns": 0,
                "title": "Lena Nyman",
                "lat": 59.3565,
                "lon": 18.0317,
                "dist": 0.3
            },
            {
                "pageid": 672192,
                "ns": 0,
                "title": "Gustaf Lagercrantz",
                "lat": 59.35652,
                "lon": 18.03183,
                "dist": 8,
                "primary": ""
            },


Today 776 graves are seen ==> just graves with primary are shown


Map

lördag 8 juli 2017

Lena Nymans grav

Test att se hur koordinater kan hämtas upp från Wikidata och till olika appar - se diskussion ByBrunnen


  1. Lena Nyman 
    1. Wikidata Q255967
      1. har P119 gravort Norra Begravningsplatsen
        1. geografiska koordinater 59°21'23.4"N, 18°1'54.1"E = 59.356500, 18.031694
    2. Wikipedia 
      1. Mallar 
        1. Infobox Skådespelare ==> har ändrats så att koordinater syns se rev 40452029 
  2. Test API  för att hitta koordinater i Lena Nyman
    1. action=query&prop=coordinates
      1. Lena Nyman API 59.3565 18.0317 ==> negativt
      2. Alfred Nobel API 59.3562 18.0322 ==> positivt
    2. action=query&list=geosearch
      1. 59.3556 18.0317 ==> negativt Lena Nyman
        1. gsprimary=all ==> positivt Lena Nyman
      2. 59.3562 18.032 ==> positivt Alfred Nobel
    3. Fråga artikel
      1. Lena Nyman har Infobox Skådespelare

        <pages>
        <page _idx="31877" pageid="31877" ns="0" title="Lena Nyman">
        <coordinates>
        <co lat="59.3565" lon="18.0317" globe="earth" name="grav+f%C3%B6r+Lena+Nyman" type="landmark"/>
        </coordinates>
        </page>
        </pages>
      2.   Alfred Nobel har Faktamall Biografi WD
        <page _idx="10077" pageid="10077" ns="0" title="Alfred Nobel">
        <coordinates>
        <co lat="59.3562" lon="18.0322" primary="" globe="earth" type="landmark"/>
        </coordinates>
        </page>
  3. Test WEB appar

    1. V for Wiki - based on wikipediakit
      1. Lena Nyman Negativt
      2. Alfred Nobel - Postivt
    2. Wikipedia app - source code  GitHub -
      1. Lena Nyman
        1. Funktion Visa på kartan negativt
        2. Funktion Platser negativt
      2. Alfred Nobel 
        1. Funktion Visa på Kartan positivt
        2. Funktion Platser positivt

OBS Hjalmar Sandberg fungerar med mall InfoBox Konstnär i Wikipedia Iphone App men
inte i V for Wiki....
  • Profiler med Infobox Konstnärer Petscan 1158414 begravda på Norra Begravningsplatsen ==>
Infobox konstnärKarl Nordström [Q1380734]NJAPI
MallNamnV for WikiWikipedia
Iphone App
API query
coordinates
Infobox konstnärJohan Gustaf Sandberg [Q3301801]NJAPI
Infobox konstnärJ.A.G. Acke [Q5541979]NJ
Infobox konstnärEugène Jansson [Q647473]NJ
Infobox konstnärEgron Lundgren [Q426033]NJ
Infobox konstnärMårten Eskil Winge [Q983492]NJ
Infobox konstnärAugust Hagborg [Q2870939]NJ
Infobox konstnärPer Hasselberg [Q3067154]NJ
Infobox konstnärCarl Skånberg [Q6180578]NJ
Infobox konstnärOlof Arborelius [Q5558580]NJ
Infobox konstnärBianca Wallin [Q4902519]NJ
Infobox konstnärDavid Wallin [Q5240800]NJ
Infobox konstnärJenny Nyström [Q3100592]NJ
Infobox konstnärOtto Gustaf Carlsund [Q2610660]NJ
Infobox konstnärHjalmar Sandberg [Q16650273]NJ
Infobox konstnärEinar Forseth [Q1305835]NJ
Infobox konstnärJohan Åkerlund [Q16650654]NJ
Faktamall Biografi WDAlfred Nobel [Q23810]JJAPI
Infobox SkådespelareLena Nyman [Q255967]NNAPI






Diary

  1. asked on twitter if V for Wikipedia needs to have primary coordinates in an article do display it on the map
    1. see twitter 
    2. SVAR Se tweet
      verkar som dom använder
  2.  IRC fråga https://webchat.freenode.net/?channels=wikimedia-mobile

    [03:11] <Magnus> Hi we are geocoding graves and would like to make them visible in the WIkipedia App for Iphone. Question do we need to set primary coordinates in a article for the app to see them?!?!?
    [03:15] <Magnus> A grave geocodet with primary set like for sv:Alfred Nobel works https://sv.wikipedia.org/w/api.php?action=query&prop=coordinates&titles=Alfred%20Nobel&coprop=globe%7Cname%7Ctype&coprimary=all
    [03:16] <Magnus> A grave without primary doesnt appear in the app e.g. sv:Lena Nyman https://sv.wikipedia.org/w/api.php?action=query&prop=coordinates&titles=Lena%20Nyman&coprop=globe%7Cname%7Ctype&coprimary=all

söndag 2 juli 2017

SBL jmf. Nationalencyklopedin - Norra Begravningsplatsen

Nedan sökning att hitta alla som ligger begravda på Norra Begravningsplatsen och som är kopplade till en artikel i Nationalencyklopedin P3222

Om Wikipedia och /eller SBL artikel finns visas länk exempel Isak Collijn






Nedan sökning Wikidata på alla personer begravda på Norra Begravningsplatsen med artikel kopplad till Nationalencyklopedin = 576 personer




lördag 1 juli 2017

Grabben i graven bredvid

Apple watch möter Wikidata P625

Geografiska koordinater


 

Ovan Apple watch på Norra Begravningsplatsen 
83 meter från Lars Schönanders grav
och
92 meter från Arvid Bergman




Vad som gjorts
V for Wiki på Iphone som visar
närliggande gravar
  1. Wikidata
    1. Q16650316#P119 har satts till Norra Begravningsplatsen
      1. P625 är koordinater för graven

  2. Svenska Wikipedia sidan Lars_Schönander
    1. Har Mall:Faktamall_biografi_WD

      ==> att gravkoordinaterna finns i Wikipedia artikeln

             
  3. Iphone appen V for Wiki som även fungerar på Apple Watch hämtar koordinaterna från artikeln och visar upp det på klockan


Exempel nedan med en annan Iphone App från Wikipedia




Status Wikipedia - Wikidata - SBL - Norra Begravningsplatsen

  1. Wikipedia
    1. 1388 artiklar har Kategori:Gravsatta_på_Norra_begravningsplatsen_i_Stockholm 
    2. 613 artiklar har Mall Faktamall_biografi_WD 
    3. 370 artiklar har en mall som inte stödjer Wikidata koppling
      1. Adlig
      2. Biskop
      3. Författare
      4. Hertig
      5. Infobox politiker
      6. Infobox arkitekt
      7. Infobox forskare
      8. Infobox konstnär
      9. Infobox musiker
      10. Infobox Skådespelare
      11. Infobox tonsättare
      12. Infobox regissör
      13. Infobox Militär Person
      14. MedaljStart
  2. Wikidata 
    1. 1380 poster gravort Norra Begravningsplatsen
    2. 1452 poster kopplade tillhörande begravningsplatser
      1. 17 Romersk-katolska församlingens begravningsplats
      2. 26 Minneslunden Norra begravningsplatsen
      3. 36 Mosaiska kyrkogården Norra begravningsplatsen 
  3. Wikipedia profiler på Norra Begravningsplatsen med Faktamallen WD
  4. SBL - Svenskt biografiskt lexikon
    1. 460 poster i SBL är kopplade till en motsvarande person i Wikidata som är begravd på Norra Begravningsplatsen se karta nedan





Begravda på Norra Begravningsplatsen med artikel i SBL Svenskt biografiskt lexikon