1,482
edits
Line 80: | Line 80: | ||
== Authors with Wikidata ID (federated query) == | == Authors with Wikidata ID (federated query) == | ||
<sparql tryit="1"> | <sparql tryit="1"> | ||
#title: Authors with Wikidata ID (gets orcid, viaf, description from Wikidata) | #title: Authors with Wikidata ID (gets orcid, viaf, birthdate and description from Wikidata) | ||
PREFIX wikibase: <http://wikiba.se/ontology#> | PREFIX wikibase: <http://wikiba.se/ontology#> | ||
PREFIX schema: <http://schema.org/> | PREFIX schema: <http://schema.org/> | ||
Line 87: | Line 87: | ||
PREFIX endp: <https://eneoli.wikibase.cloud/prop/direct/> | PREFIX endp: <https://eneoli.wikibase.cloud/prop/direct/> | ||
select ?author ?authorLabel ?wikidata ?orcid ?viaf ?desc | select ?author ?authorLabel ?wikidata ?orcid ?viaf ?birth ?desc | ||
where { | where { | ||
Line 95: | Line 95: | ||
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } | SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } | ||
SERVICE <https://query.wikidata.org/sparql> { | SERVICE <https://query.wikidata.org/sparql> { | ||
select ?wikidata ?orcid ?viaf ?desc | select ?wikidata ?orcid ?viaf ?birth ?desc | ||
where { ?wikidata schema:description ?desc. filter(lang(?desc)="en") | where { ?wikidata schema:description ?desc. filter(lang(?desc)="en") | ||
optional {?wikidata wdt:P569 ?birth.} | |||
optional {?wikidata wdtn:P496 ?orcid.} optional {?wikidata wdtn:P214 ?viaf.} | optional {?wikidata wdtn:P496 ?orcid.} optional {?wikidata wdtn:P214 ?viaf.} | ||
} | } |