User:Teester
Jump to navigation
Jump to search
Tools
[edit]- Entityshape - Userscript & API to compare items to entityschemas - Userscript - Github
- Entityschema Generator - A GUI to create simple entityschemas for Wikidata - Toolforge
- Shextranslator - A tool to convert entityschemas into human readable versions - Toolforge
- Parliament Diagram Generator - A tool to generate semicircular parliament diagrams for legislatures using WIkidata data - Toolforge
Useful queries
[edit]https://w.wiki/7Rds: Act of the Oireachtas (Q91586285) broken down by area of law (Q1756157)
https://w.wiki/7Rdz: Act of the Oireachtas (Q91586285) for a specific year and area of law (Q1756157) for each act
instance of (P31) > 500000
[edit]PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?o (count(?o) as ?count) WHERE {
?id wdt:P31 ?o.
}
group by ?o
having (?count > 500000)
order by desc(?count)
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
SELECT ?p ?label (count(?p) as ?count) WHERE {
?s wdt:P31 wd:Q2668072.
?s ?p ?o.
?pd wikibase:directClaim ?p.
?pd rdfs:label ?label.
filter (LANG(?label) = "en") .
filter contains (str(?p), "prop/direct/P")
}
group by ?p ?label
order BY desc(?count)