Test: Difference between revisions
Jump to navigation
Jump to search
Magnus Sälgö (talk | contribs) No edit summary |
Magnus Sälgö (talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Test WikibaseInWikitext == | |||
* https://github.com/wbstack/mediawiki-extensions-WikibaseInWikitext | * https://github.com/wbstack/mediawiki-extensions-WikibaseInWikitext | ||
<sparql | <sparql tryit="1"> | ||
#List all | #List all | ||
SELECT * | SELECT * | ||
Line 11: | Line 11: | ||
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } | SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } | ||
} | } | ||
</sparql> | |||
=== wikidata URL === | |||
* [https://gist.github.com/salgo60/1e9c17bb13178d3ff60692c468ad9265 datat GIST] | |||
<sparql tryit="1"> | |||
#title: List all P2 props as Quickstatement | |||
PREFIX odt: <https://oswald.wikibase.cloud/prop/direct/> | |||
SELECT ?Oswald ("Ny P" AS ?p) ?WD | |||
WHERE | |||
{ | |||
?s odt:P2 ?value | |||
BIND(REPLACE(str(?s),"https://oswald.wikibase.cloud/entity/","") AS ?Oswald) | |||
BIND(REPLACE(str(?value),"https://www.wikidata.org/wiki/","") AS ?WD) | |||
} | |||
</sparql> | </sparql> |
Latest revision as of 00:01, 4 November 2022
Test WikibaseInWikitext
#List all
SELECT *
WHERE
{
?s ?p ?o
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
wikidata URL
#title: List all P2 props as Quickstatement
PREFIX odt: <https://oswald.wikibase.cloud/prop/direct/>
SELECT ?Oswald ("Ny P" AS ?p) ?WD
WHERE
{
?s odt:P2 ?value
BIND(REPLACE(str(?s),"https://oswald.wikibase.cloud/entity/","") AS ?Oswald)
BIND(REPLACE(str(?value),"https://www.wikidata.org/wiki/","") AS ?WD)
}