Graph Statistics: Difference between revisions
(created page + all items query (temp, bc. not inline)) |
(added PropertyCount-query) |
||
Line 6: | Line 6: | ||
= Simple Metrics = | = Simple Metrics = | ||
== | == ItemCount == | ||
Gives a count of all items in the Wikibase-instance. | |||
{{SPARQL2|query= | {{SPARQL2|query= | ||
#defaultView:Table | #defaultView:Table | ||
Line 19: | Line 20: | ||
} LIMIT 25 | } LIMIT 25 | ||
}} | }} | ||
''Make inline'' | |||
== PropertyCount == | |||
Gives a count of all properties in the Wikibase-instance | |||
{{SPARQL2|query= | |||
#defaultView:Table | |||
PREFIX wd: <https://graphit.ur.de/entity> | |||
PREFIX wdt: <https://graphit.ur.de/prop/direct/> | |||
SELECT (COUNT(*) as ?property) | |||
WHERE { | |||
?property a wikibase:Property. | |||
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } | |||
} LIMIT 28 | |||
}} | |||
''Make inline'' |
Revision as of 12:27, 27 November 2023
A page to help show the structure of the graph using metrics and statistics. For similar pages reference:
Simple Metrics
ItemCount
Gives a count of all items in the Wikibase-instance.
#defaultView:Table
PREFIX wd: <https://graphit.ur.de/entity>
PREFIX wdt: <https://graphit.ur.de/prop/direct/>
SELECT (COUNT(*) as ?items)
WHERE {
# items that have 0+ statements
?item wikibase:statements ?s.
MINUS{ ?item a wikibase:Property } # Filter out properties = 28
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} LIMIT 25
Make inline
PropertyCount
Gives a count of all properties in the Wikibase-instance
#defaultView:Table
PREFIX wd: <https://graphit.ur.de/entity>
PREFIX wdt: <https://graphit.ur.de/prop/direct/>
SELECT (COUNT(*) as ?property)
WHERE {
?property a wikibase:Property.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} LIMIT 28
Make inline