Wikimania2019 book icon.svg

Want to learn more about Metabase, share your ideas or get help? You're welcome to the Metabase Office Hours and chat with the Wikimedia Sverige team!

Wednesday, April 9, 5pm Swedish time (convert time zone)

Register and get the link to the video meeting

Projects/OpenRefine

From MetaBase
Jump to navigation Jump to search
Global search icon (the Noun Project 1238421).svg Some topical projects initiated by the WMSE team to create basic data. See what's been done and how you can help out.

ConferencesThis Month in GLAMGLAM eventsSupport itemsOpenRefineMaintenance


Open Refine is Magic.png

As a proof of concept of how we can work with topics in Metabase (using main subject (P15)), the WMSE team created items for educational material about the usage of OpenRefine (Q21961) in the Wikimedia context. This provided an opportunity to think about how different types of documents (both text and video based) and events, like presentations, can be modelled.

Examples:

🖊️ Help out by adding new educational resources about OpenRefine, or doing a focused project about another tool or topic!

Everything published or presented about OpenRefine

# Everything presented or published about OpenRefine

PREFIX wb: <https://metabase.wikibase.cloud/entity/>
PREFIX wbt: <https://metabase.wikibase.cloud/prop/direct/>
SELECT ?typeLabel ?item ?itemLabel ?time
WHERE
{
?item wbt:P5/wbt:P4* wb:Q21.
?item wbt:P5 ?type.
?item wbt:P15 wb:Q21961.
OPTIONAL {?item wbt:P18 ?time } # publication date
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,sv". }
}
ORDER BY ?type

Try it!


Topics co-occurring with OpenRefine, as a graph

#defaultView:Graph
# Topics co-occurring with OpenRefine, as a graph

PREFIX wb: <https://metabase.wikibase.cloud/entity/>
PREFIX wbt: <https://metabase.wikibase.cloud/prop/direct/>
SELECT ?topic1 ?topic1Label ?topic2 ?topic2Label
WITH {
  SELECT
    (COUNT(DISTINCT ?item) AS ?count) ?topic1 ?topic2
  WHERE {
    ?item wbt:P15 wb:Q21961. # OPENREFINE
    ?item wbt:P15 ?topic1, ?topic2 . 
    FILTER (wb:Q21961 != ?topic1 && wb:Q21961 != ?topic2 && ?topic1 != ?topic2)
  }
  GROUP BY ?topic1 ?topic2
  ORDER BY DESC(?count)
} AS %results
WHERE {
  INCLUDE %results
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,sv". }
}

Try it!