query-281bff6dd1896534361b253cec230606

rq turtle/ttl

c. average linking degree

TBD: include incoming links?

SELECT (AVG(?st) as ?avg_linking_degree) WITH { SELECT DISTINCT ?item ?st WHERE { ?item wdt:P279* wd:Q181388 . # ?item wdt:P641 wd:Q847 . ?item wikibase:statements ?st . }
} as %a { INCLUDE %a }

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
#  c. average linking degree
# TBD: include incoming links?
SELECT (AVG(?st) as ?avg_linking_degree)
{

{
    SELECT DISTINCT ?item ?st 
    WHERE
    {
        ?item wdt:P279* wd:Q181388 .
        # ?item wdt:P641 wd:Q847 .
        ?item wikibase:statements ?st . 
    }      
}
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?avg_linking_degree") v1("?item") v2("?st"):::projected c2(["wd:Q181388"]):::iri v1 --"wdt:P279"--> c2 v1 --"wikibase:statements"--> v2 bind1[/"average(?st)"/] v2 --o bind1 bind1 --as--o v3