Modelling: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 12: Line 12:
For example: {{P|P9}}, {{P|13}}, {{P|10}}.
For example: {{P|P9}}, {{P|13}}, {{P|10}}.


Query to find all internal properties:
<SPARQL tryit="1">
PREFIX wd: <https://metabase.wikibase.cloud/entity/>
PREFIX wdt: <https://metabase.wikibase.cloud/prop/direct/>
SELECT ?item ?itemLabelEN ?itemLabelSV ?itemDescEN ?itemDescSV
WHERE
{
  ?item wdt:P5 wd:Q24.
  OPTIONAL {?item rdfs:label ?itemLabelEN filter (lang(?itemLabelEN) = "en")}.
  OPTIONAL {?item rdfs:label ?itemLabelSV filter (lang(?itemLabelSV) = "sv")}.
  OPTIONAL {?item schema:description ?itemDescEN filter (lang(?itemDescEN) = "en")}.
  OPTIONAL {?item schema:description ?itemDescSV filter (lang(?itemDescSV) = "sv")}.
}
</SPARQL>
==Metabase vs. Wikidata==
==Metabase vs. Wikidata==
As we do not aim to duplicate the information on Wikidata, there's a number of item types that '''only''' contain a Wikidata QID, using {{P|P1}}. These are:
As we do not aim to duplicate the information on Wikidata, there's a number of item types that '''only''' contain a Wikidata QID, using {{P|P1}}. These are:

Navigation menu