query-fdee8adf56c5495c3369a098a017f2ba

rq turtle/ttl

List all active Forges

Use at

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
WHERE 
{
  {
    ?forge wdt:P31 wd:Q3077240. # Must be of a forge
    MINUS {
        ?forge p:P2669 ?ignore0. # Do not include items with a discontinued date as documented in https://www.wikidata.org/wiki/Wikidata:WikiProject_Informatics/FLOSS#inception/discontinued_date, 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 v2("?ignore0") 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 subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v1 --"p:P2669"--> v2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end