query-410154ce9371419f82bbfb15e711a881
Fix data teoricamente importata da VIAFNella query seguente e in altri casi simili Readaptation: I've readapted your excellent query in this: Dipsacus fullonum@
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?p ?db
WHERE
{
SERVICE wikibase:mwapi
{
bd:serviceParam wikibase:endpoint "www.wikidata.org" .
bd:serviceParam wikibase:api "Generator" .
bd:serviceParam mwapi:generator "exturlusage" .
bd:serviceParam mwapi:geuprop "title" .
bd:serviceParam mwapi:geunamespace "0" .
bd:serviceParam mwapi:geuprotocol "https" .
bd:serviceParam mwapi:geuquery "viaf.org/viaf/" .
bd:serviceParam mwapi:geulimit "max" .
?p wikibase:apiOutputItem mwapi:title .
}
?p p:P569 [ps:P569 ?db ; prov:wasDerivedFrom [pr:P854 ?site] ].
FILTER("1950-00-00"^^xsd:date = ?db)
FILTER(CONTAINS(STR(?site),"viaf.org/viaf/"))
}
Query found at
- https://www.wikidata.org/wiki/User_talk:Bargioni
- https://www.wikidata.org/wiki/Wikidata:Request_a_query/Archive/2020/06
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?db"):::projected
v3("?p"):::projected
v1("?site")
a1((" "))
a2((" "))
c1(["viaf.org/viaf/"]):::literal
c12(["title"]):::literal
c4(["bd:serviceParam"]):::iri
c16(["https"]):::literal
c6(["www.wikidata.org"]):::literal
c19(["max"]):::literal
c14(["0"]):::literal
c10(["exturlusage"]):::literal
c21(["mwapi:title"]):::iri
c8(["Generator"]):::literal
f0[["contains(str(?site),'viaf.org/viaf/')"]]
f0 --> v1
f1[["'1950-00-00^^xsd:date' = ?db"]]
f1 --> v2
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c4 --"mwapi:endpoint"--> c6
c4 --"mwapi:api"--> c8
c4 --"mwapi:generator"--> c10
c4 --"mwapi:geuprop"--> c12
c4 --"mwapi:geunamespace"--> c14
c4 --"mwapi:geuprotocol"--> c16
c4 --"mwapi:geuquery"--> c1
c4 --"mwapi:geulimit"--> c19
v3 --"mwapi:apiOutputItem"--> c21
end
a1 --"p:statement/P569"--> v2
a2 --"p:reference/P854"--> v1
a1 --"prov:wasDerivedFrom"--> a2
v3 --"p:P569"--> a1