query-541bca81ec49b760053b4dc46281101f
List of features supported by a forge. (P31)instance of Each feature is associated with a
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 p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?forge ?forgeLabel ?instanceOf ?instanceOfLabel
WHERE
{
{
?forge wdt:P31 wd:Q3077240. # Must be of a forge
VALUES (?instanceOf ?instanceOfLabel) {
(wd:Q3133368 "repository")
(wd:Q1480561 "issue tracker")
(wd:Q16947796 "CI")
(wd:Q16920237 "code review")
(wd:Q6686945 "wiki")
(wd:Q63067479 "mailing list")
(wd:Q1334294 "software repository")
# (wd:Q68712963 "pull request")
}
?forge wdt:P31 ?instanceOf.
MINUS {
?forge p:P582 ?ignore0. # Do not include items with end time, i.e. forges that are obsolete
}
}
FILTER NOT EXISTS {
?forge wdt:P31+ wd:Q35127.
} # website: exclude online services running a forge, only keep forge software
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } # Helps get the label in your language, if not, then en language
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?forge"):::projected
v4("?ignore0")
v2("?instanceOf"):::projected
v3("?instanceOfLabel"):::projected
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c3(["wd:Q3077240"]):::iri
c2(["wd:Q35127"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"p:direct/P31"--> e0c2
e0v1("?forge"):::projected
e0c2(["wd:Q35127"]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> c2
v1 --"p:direct/P31"--> c2
v1 --"p:direct/P31"--> c3
bind1[/VALUES ?instanceOf ?instanceOfLabel/]
bind1-->v2
bind1-->v3
bind10(["wd:Q3133368"])
bind10 --> bind1
bind11(["repository"])
bind11 --> bind1
bind12(["wd:Q1480561"])
bind12 --> bind1
bind13(["issue tracker"])
bind13 --> bind1
bind14(["wd:Q16947796"])
bind14 --> bind1
bind15(["CI"])
bind15 --> bind1
bind16(["wd:Q16920237"])
bind16 --> bind1
bind17(["code review"])
bind17 --> bind1
bind18(["wd:Q6686945"])
bind18 --> bind1
bind19(["wiki"])
bind19 --> bind1
bind110(["wd:Q63067479"])
bind110 --> bind1
bind111(["mailing list"])
bind111 --> bind1
bind112(["wd:Q1334294"])
bind112 --> bind1
bind113(["software repository"])
bind113 --> bind1
v1 --"p:direct/P31"--> v2
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v1 --"p:P582"--> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end