query-20e5deb99866b20b23263e3aec6940ed

rq turtle/ttl

MTA tagjai lekérdezés - mintaértékekel ... ~ 2343 találat ( ?person wdt:P463 wd:Q265058.) SELECT ?person ?mta_id ?pim_id ?mtmt_id ?nas_id ?leopoldina_id ?personLabel ?field_of_workLabel ?genderLabel ?personDescription ?birth ?birthplaceLabel ?death ?commons_gallery ?commons_category WHERE { {
SELECT ?person (SAMPLE(?mta_id) as ?mta_id ) (SAMPLE(?pim_id) as ?pim_id ) (SAMPLE(?mtmt_id) as ?mtmt_id ) (SAMPLE(?nas_id) as ?nas_id) (SAMPLE(?leopoldina_id) as ?leopoldina_id) (SAMPLE(?field_of_work) as ?field_of_work) (SAMPLE(?gender) as ?gender) (SAMPLE(?birth) as ?birth) (SAMPLE(?birthplace) as ?birthplace) (SAMPLE(?death) as ?death) (SAMPLE(?commons_gallery) as ?commons_gallery) (SAMPLE(?commons_category) as ?commons_category) WHERE { # VALUES ?person {wd:Q13423405 wd:Q188128 } ?person wdt:P31 wd:Q5. ?person wdt:P463 wd:Q265058. OPTIONAL { ?person wdt:P3226 ?mta_id. } OPTIONAL { ?person wdt:P569 ?birth .} OPTIONAL { ?person wdt:P19 ?birthplace .} OPTIONAL { ?person wdt:P21 ?gender .}
OPTIONAL { ?person wdt:P570 ?death .} OPTIONAL { ?person wdt:P3973 ?pim_id .} OPTIONAL { ?person wdt:P2492 ?mtmt_id . } OPTIONAL { ?person wdt:P5380 ?nas_id . } OPTIONAL { ?person wdt:P3413 ?leopoldina_id . }
OPTIONAL { ?person wdt:P101 ?field_of_work .} OPTIONAL { ?person wdt:P935 ?commons_gallery .} OPTIONAL { ?person wdt:P373 ?commons_category .}
} group by ?person } SERVICE wikibase:label { bd:serviceParam wikibase:language "hu,en,de,es,fr,ro,sk,sr". } } order by xsd:integer(?mta_id)

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# MTA tagjai lekérdezés - mintaértékekel ...  ~ 2343 találat ( ?person wdt:P463 wd:Q265058.)
SELECT ?person ?mta_id
       ?pim_id ?mtmt_id ?nas_id ?leopoldina_id 
       ?personLabel 
       ?field_of_workLabel ?genderLabel
       ?personDescription
       ?birth ?birthplaceLabel 
       ?death 
       ?commons_gallery ?commons_category
WHERE {
{  
SELECT ?person 
       (SAMPLE(?mta_id)  as ?mta_id )
       (SAMPLE(?pim_id)  as ?pim_id )
       (SAMPLE(?mtmt_id) as ?mtmt_id )
       (SAMPLE(?nas_id)  as ?nas_id)
       (SAMPLE(?leopoldina_id) as ?leopoldina_id)
       (SAMPLE(?field_of_work)  as ?field_of_work)
       (SAMPLE(?gender) as ?gender)
       (SAMPLE(?birth)  as ?birth)
       (SAMPLE(?birthplace) as ?birthplace)
       (SAMPLE(?death) as ?death)
       (SAMPLE(?commons_gallery)  as ?commons_gallery) 
       (SAMPLE(?commons_category) as ?commons_category)
WHERE {
 # VALUES ?person {wd:Q13423405 wd:Q188128 }
  ?person wdt:P31   wd:Q5.
  ?person wdt:P463 wd:Q265058.
  OPTIONAL {  ?person wdt:P3226 ?mta_id. }
  OPTIONAL {  ?person wdt:P569  ?birth .}
  OPTIONAL {  ?person wdt:P19   ?birthplace .}
  OPTIONAL {  ?person wdt:P21   ?gender .}   
  OPTIONAL {  ?person wdt:P570  ?death .}
  OPTIONAL {  ?person wdt:P3973 ?pim_id .}
  OPTIONAL {  ?person wdt:P2492 ?mtmt_id . }
  OPTIONAL {  ?person wdt:P5380 ?nas_id . } 
  OPTIONAL {  ?person wdt:P3413 ?leopoldina_id . }   
  OPTIONAL {  ?person wdt:P101  ?field_of_work .}
  OPTIONAL {  ?person wdt:P935  ?commons_gallery .}
  OPTIONAL {  ?person wdt:P373  ?commons_category .}    
}
group by ?person
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "hu,en,de,es,fr,ro,sk,sr". }
}
order by xsd:integer(?mta_id)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v14("?birth"):::projected v14("?birthplace") v14("?commons_category"):::projected v14("?commons_gallery"):::projected v14("?death"):::projected v14("?field_of_work") v14("?gender") v14("?leopoldina_id"):::projected v14("?mta_id"):::projected v14("?mtmt_id"):::projected v14("?nas_id"):::projected v2("?person"):::projected v14("?pim_id"):::projected c20(["hu,en,de,es,fr,ro,sk,sr"]):::literal c18(["bd:serviceParam"]):::iri c2(["wd:Q5"]):::iri c4(["wd:Q265058"]):::iri v2 --"wdt:P31"--> c2 v2 --"wdt:P463"--> c4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P3226".-> v14 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P569".-> v14 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P19".-> v14 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P21".-> v14 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P570".-> v14 end subgraph optional5["(optional)"] style optional5 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P3973".-> v14 end subgraph optional6["(optional)"] style optional6 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P2492".-> v14 end subgraph optional7["(optional)"] style optional7 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P5380".-> v14 end subgraph optional8["(optional)"] style optional8 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P3413".-> v14 end subgraph optional9["(optional)"] style optional9 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P101".-> v14 end subgraph optional10["(optional)"] style optional10 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P935".-> v14 end subgraph optional11["(optional)"] style optional11 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P373".-> v14 end bind12[/"sample(?mta_id)"/] v14 --o bind12 bind12 --as--o v14 bind13[/"sample(?pim_id)"/] v14 --o bind13 bind13 --as--o v14 bind14[/"sample(?mtmt_id)"/] v14 --o bind14 bind14 --as--o v14 bind15[/"sample(?nas_id)"/] v14 --o bind15 bind15 --as--o v14 bind16[/"sample(?leopoldina_id)"/] v14 --o bind16 bind16 --as--o v14 bind17[/"sample(?field_of_work)"/] v14 --o bind17 bind17 --as--o v14 bind18[/"sample(?gender)"/] v14 --o bind18 bind18 --as--o v14 bind19[/"sample(?birth)"/] v14 --o bind19 bind19 --as--o v14 bind20[/"sample(?birthplace)"/] v14 --o bind20 bind20 --as--o v14 bind21[/"sample(?death)"/] v14 --o bind21 bind21 --as--o v14 bind22[/"sample(?commons_gallery)"/] v14 --o bind22 bind22 --as--o v14 bind23[/"sample(?commons_category)"/] v14 --o bind23 bind23 --as--o v14 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c18 --"wikibase:language"--> c20 end