query-76d24b55ae2889fcf85e50e510041ca5
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?url where {
?item wdt:P31/wdt:P279* wd:Q7397.
?item ?prop ?val.
?property a wikibase:Property;
wikibase:claim ?prop.
?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
v4("?prop")
v6("?property")
v2("?repo")
v7("?source")
v3("?url"):::projected
v5("?val")
a1((" "))
c7(["wikibase:Property"]):::iri
c5(["wd:Q7397"]):::iri
c12(["bd:serviceParam"]):::iri
c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P1324"--> e0v2
e0v1("?item"):::projected
e0v2("?repo"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
v1 --"wdt:P1324"--> v2
f1[["contains(str(?url),'github')"]]
f1 --> v3
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c5
v1 -->v4--> v5
v6 --"a"--> c7
v6 --"wikibase:claim"--> v4
v5 --"prov:wasDerivedFrom"--> v7
v7 --"pr:P854"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end