Project:SPARQL/examples: Difference between revisions
Jump to navigation
Jump to search
Line 30: | Line 30: | ||
</SPARQL> | </SPARQL> | ||
=Documents= | =Documents= | ||
==Documents in languages other than Swedish== | |||
<SPARQL tryit="1"> | |||
PREFIX wb: <https://metabase.wikibase.cloud/entity/> | |||
PREFIX wbt: <https://metabase.wikibase.cloud/prop/direct/> | |||
SELECT ?item ?itemLabel ?language ?languageLabel | |||
WHERE | |||
{ | |||
?item wbt:P5/wbt:P4* wb:Q21. | |||
?item wbt:P20 ?language. | |||
MINUS {?item wbt:P20 wb:Q31} | |||
SERVICE wikibase:label { bd:serviceParam wikibase:language "sv,en". } | |||
} | |||
</SPARQL> | |||
==Documents published in 2020== | ==Documents published in 2020== | ||
<SPARQL tryit="1"> | <SPARQL tryit="1"> | ||
Line 44: | Line 57: | ||
} | } | ||
</SPARQL> | </SPARQL> | ||
==People and how many documents they have authored== | ==People and how many documents they have authored== | ||
<SPARQL tryit="1"> | <SPARQL tryit="1"> |