query-102ed222cffef2bed386ddbe7d270333

rq turtle/ttl

[2]

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?p ?pLabel ?pDescription ?type WHERE {
?p a wikibase:Property; wikibase:propertyType ?t
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
BIND(STRDT(STRAFTER(STR(?p),"/P"),xsd:integer) AS ?pnum)
BIND(STRAFTER(STR(?t),"ontology#") AS ?type)
} ORDER BY ?pnum

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?p"):::projected v4("?pnum") v3("?t") v4("?type"):::projected c5(["bd:serviceParam"]):::iri c2(["wikibase:Property"]):::iri c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal v2 --"a"--> c2 v2 --"wikibase:propertyType"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end bind0[/"STRDT(substring-after(str(?p),'/P'),'xsd:integer')"/] v2 --o bind0 bind0 --as--o v4 bind1[/"substring-after(str(?t),'ontology#')"/] v3 --o bind1 bind1 --as--o v4