Test

From oswald
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!