Visar inlägg med etikett Spotify. Visa alla inlägg
Visar inlägg med etikett Spotify. Visa alla inlägg

onsdag 28 februari 2018

JSON / Spotify / SvensktPorträttarkiv


  • Extrahera Wikipedia intro för personer kopplade till Svenskt Porträttarkiv
  • Spotify Artist / Svenskt Porträttarkiv

Se också:

fredag 16 februari 2018

SPA <-> Spotify






Länkar


Kod

var endpointUrl = 'https://query.wikidata.org/sparql',
    sparqlQuery = "#defaultView:ImageGrid\n" +
        "select  ?person ?personLabel ?personDescription ?pic ?SPA  ?Spotify (SAMPLE(?birth) AS ?birth) {\n" +
        "{\n" +
        "   ?person wdt:P4819 ?SPAid . # SPAid\n" +
        "   ?person wdt:P1902 ?Spotifyid . # Spotify\n" +
        "   OPTIONAL {?person wdt:P569 ?birth} .\n" +
        "   OPTIONAL{ ?person wdt:P18 ?pic .} # If we have an illustration\n" +
        "   BIND (URI(CONCAT(\"https://porträttarkiv.se/details/\",?SPAid)) AS ?SPA)\n" +
        "   BIND (URI(CONCAT(\"https://open.spotify.com/artist/\",?Spotifyid)) AS ?Spotify)\n" +
        "  OPTIONAL { ?article schema:about ?person. }\n" +
        "\n" +
        " }   \n" +
        "  SERVICE wikibase:label { bd:serviceParam wikibase:language \"sv\",\"en\"}\n" +
        " }\n" +
        "Group by ?person ?personLabel ?personDescription ?pic ?SPA ?Geni ?SBL ?Spotify \n" +
        "Order by DESC(?birth)",
    settings = {
        headers: { Accept: 'application/sparql-results+json' },
        data: { query: sparqlQuery }
    };

$.ajax( endpointUrl, settings ).then( function ( data ) {
    $( 'body' ).append( ( $('<pre>').text( JSON.stringify( data) ) ) );
    console.log( data );
} );

måndag 5 juni 2017

Norra Begravningsplatsen +1900 graves cemetery in Stockholm, Sweden

Swedish Wikipedia with links to Google map and Svenskt Biografiskt Lexikon...



Map with filter per occupation
OBS with more people in the same grave just one is seen...
Map with graves with picture of the gravestone http://tinyurl.com/zwyfbn3


Below filter per occupation on the Northern cemetery Q252312 in Stockholm, Sweden

How to filter

Example of filter on Composer