Help/Projects

From MetaBase
Jump to navigation Jump to search

About this page

This page explains how to describe a project (Q2) in Metabase, including WikiProjects, and how to link a project to its activities.


What counts as a project?

A project can be:

  • formal: run officially by an organization, such as a Wikimedia chapter or a GLAM institution
  • informal: run by a self-organized group, such as the participants in a WikiProject, or by an individual volunteer

The model on this page is based on how Wikimedia Sverige (Q9) structures its projects. See Wikidata for authority control (Q14) for an example. Projects from Wikimedia Sverige also use two extra properties, described in Wikimedia Sverige projects below.

Projects and their parts

A project often includes smaller activities, such as events. Link these with has part(s) (P35).

A project (Q2) is a type of activity (Q8). This means that everything you add as a part of a project must also be a type of activity (Q8).

Example: Gothenburg museums – 2021 images year 2021 (Q21932) has three events as parts: Q21931, Q21928 and Q21924.

WikiProjects

A WikiProject is a group of editors who work together on a topic on a Wikimedia wiki, for example on Wikipedia or Wikidata. WikiProjects are usually informal and ongoing, without a fixed end date.

To describe a WikiProject:

Example: WikiProject Med Foundation (Q25465)

Properties

Required

Required if the project has no Wikidata item

  • start time (P6)
    • Example: 2020-02-01
    • When the project started. A full date, a year and month, or only a year is fine.
  • title (P8)
    • Example: Wikidata för auktoritetskontroll 2020 (sv)
    • The official name of the project, with its language.
    • The official name is kept separate from the labels, because labels can be translated into any language at any time.

Required if it exists

Optional: people and dates

Optional: topics and structure

Optional: links

Wikimedia Sverige projects

Projects run by Wikimedia Sverige also need these two properties:

SPARQL

All projects, with dates, keywords and organizers

PREFIX wd: <https://metabase.wikibase.cloud/entity/>
PREFIX wdt: <https://metabase.wikibase.cloud/prop/direct/>

SELECT ?item ?itemLabel ?start ?end (GROUP_CONCAT(DISTINCT ?mainsubjectLabel; SEPARATOR = ", ") AS ?topics) (GROUP_CONCAT(DISTINCT ?organizerLabel; SEPARATOR = ", ") AS ?organizers)
WHERE
{
  ?item wdt:P5 wd:Q2 .
  OPTIONAL {  ?item wdt:P6 ?start.}
  OPTIONAL { ?item wdt:P7 ?end.}
  OPTIONAL { ?item wdt:P15 ?mainsubject.}
  OPTIONAL { ?item wdt:P14 ?organizer.}
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "sv".
    ?item rdfs:label ?itemLabel.
    ?mainsubject rdfs:label ?mainsubjectLabel.
    ?organizer rdfs:label ?organizerLabel
  }
}
GROUP BY ?item ?itemLabel ?start ?end
ORDER BY ?itemLabel

Try it!