onsdag 13 juli 2016

Timeline of people related forward to Gustav Vasa and have profile in WikiTree

Query



# Timeline with people related to Gustav Vasa Q52947 and how have an account in WikiTree
#defaultView:Timeline
PREFIX gas: <http://www.bigdata.com/rdf/gas#>

SELECT  DISTINCT ?item ?pic ?itemLabel ?WikiTreef ?FindAGravef ?birthDate ?deathDate {
  SERVICE gas:service {
    gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.SSSP" ;
                gas:in wd:Q52947 ;
                gas:traversalDirection "Forward" ;
#                gas:traversalDirection "Undirected" ;
#                gas:traversalDirection "Reverse" ;
                gas:out ?item ;
                gas:out1 ?depth ;
                gas:maxIterations 4 ;
                gas:linkType wdt:P40 .
  }

   OPTIONAL { ?item wdt:P569 ?birthDate.}
   OPTIONAL {?item wdt:P570 ?deathDate.}
    { ?item wdt:P2949 ?WikiTreeID .}
   #OPTIONAL { ?person  wdt:P535 ?FindAGrave }  # FindAGrave
   BIND (URI(CONCAT("http://www.wikitree.com/wiki/",?WikiTreeID)) AS ?WikiTreeIDf)
   BIND (URI(CONCAT("http://www.findagrave.com/cgi-bin/fg.cgi?page=gr&df=all&GRid=",?FindAGrave)) AS ?FindAGravef)

  # OPTIONAL { ?item wdt:P40 ?linkTo }
    OPTIONAL { ?item wdt:P18 ?pic }
  SERVICE wikibase:label {bd:serviceParam wikibase:language "sv" }
} limit 1000

Inga kommentarer:

Skicka en kommentar