query-0220b5720a773603c0edfa20f62671a7
TODO
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 p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?url where {
?item ?prop ?val.
VALUES ?prop { p:P348 p:P306 p:P275 p:P277 p:P178 }.
?val prov:wasDerivedFrom ?source.
?source pr:P854 ?url.
FILTER (CONTAINS(str(?url), "github")).
FILTER NOT EXISTS {
?item wdt:P1324 ?repo.
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v6("?prop")
v2("?repo")
v6("?source")
v3("?url"):::projected
v5("?val")
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"p:direct/P1324"--> e0v2
e0v1("?item"):::projected
e0v2("?repo"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
v1 --"p:direct/P1324"--> v2
f1[["contains(str(?url),'github')"]]
f1 --> v3
v1 -->v6--> v5
bind2[/VALUES ?prop/]
bind2-->v6
bind20(["p:P348"])
bind20 --> bind2
bind21(["p:P306"])
bind21 --> bind2
bind22(["p:P275"])
bind22 --> bind2
bind23(["p:P277"])
bind23 --> bind2
bind24(["p:P178"])
bind24 --> bind2
v5 --"prov:wasDerivedFrom"--> v6
v6 --"p:reference/P854"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end