query-81f0fcac253a6a6ea15b6b7c593b9548
Link for an external identifier(P1992)Plazi ID Hello, is it possible to have exactly the same querry than below but with an additional field giving a weblink for the value stored in 18:26, 6 August 2021 (UTC)) talk (Christian Ferrer (P1992)Plazi ID + the value stored in http://treatment.plazi.org/id/The URL seems to be
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?author ?authorLabel ?publication ?publicationLabel ?referenceHasRole ?referenceHasRoleLabel ?PlaziID
WHERE
{
{?item p:P225 ?statement .
?statement prov:wasDerivedFrom ?reference .
?reference pr:P1992 ?PlaziID}
?item wdt:P105 ?rank .
OPTIONAL { ?item p:P225 ?st .
?st pq:P405 ?author . }
OPTIONAL { ?item p:P225 ?statement .
?statement prov:wasDerivedFrom ?reference .
?reference pr:P248 ?publication.
OPTIONAL { ?item p:P225 ?statement .
?statement prov:wasDerivedFrom ?reference .
?reference pr:P248 ?publication.
?reference pr:P6184 ?referenceHasRole}
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . }
}
order by ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?PlaziID"):::projected
v8("?author"):::projected
v2("?item"):::projected
v1("?itemLabel"):::projected
v9("?publication"):::projected
v6("?rank")
v4("?reference")
v10("?referenceHasRole"):::projected
v7("?st")
v3("?statement")
c9(["bd:serviceParam"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"p:P225"--> v3
v3 --"prov:wasDerivedFrom"--> v4
v4 --"p:reference/P1992"--> v5
v2 --"p:direct/P105"--> v6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:P225".-> v7
v7 --"p:qualifier/P405"--> v8
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:P225".-> v3
v3 --"prov:wasDerivedFrom"--> v4
v4 --"p:reference/P248"--> v9
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:P225".-> v3
v3 --"prov:wasDerivedFrom"--> v4
v4 --"p:reference/P248"--> v9
v4 --"p:reference/P6184"--> v10
end
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end