Test

From oswald
Revision as of 00:01, 4 November 2022 by Magnus Sälgö (talk | contribs) (→‎wikidata URL)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Test WikibaseInWikitext

#List all
SELECT *
WHERE 
{
  ?s ?p ?o
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Try it!


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)
}

Try it!