query-759847018a10815a6b18de578d9fa5d2
Query B:
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?property ?propertyLabel (GROUP_CONCAT(?alias; separator="; ") AS ?aliases) {
VALUES (?class) {(wd:Q5)}
?property a wikibase:Property .
?property p:P2302 [ ps:P2302 wd:Q21503250 ;
pq:P2309 wd:Q21503252 ;
pq:P2308 ?class ] .
?property a wikibase:Property ;
rdf:type wikibase:Property ;
wikibase:propertyType ?type ;
skos:altLabel ?alias .
FILTER(?type != wikibase:PropertyType && ?type != wikibase:ExternalId)
FILTER(LANG(?alias) = "en")
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
GROUP BY ?property ?propertyLabel
ORDER BY ASC(xsd:integer(strafter(str(?property), concat(str(wd:), "P"))))
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?alias"):::projected
v5("?aliases")
v4("?class")
v1("?property"):::projected
v3("?type")
a1((" "))
c7(["wikibase:Property"]):::iri
c9(["wd:Q21503250"]):::iri
c3(["en"]):::literal
c17(["bd:serviceParam"]):::iri
c11(["wd:Q21503252"]):::iri
f0[["?alias = 'en'"]]
f0 --> v2
f1[["?type != 'wikibase:PropertyType'?type != 'wikibase:ExternalId'"]]
f1 --> v3
bind2[/VALUES ?class/]
bind2-->v4
bind20(["wd:Q5"])
bind20 --> bind2
v1 --"a"--> c7
a1 --"p:statement/P2302"--> c9
a1 --"p:qualifier/P2309"--> c11
a1 --"p:qualifier/P2308"--> v4
v1 --"p:P2302"--> a1
v1 --"a"--> c7
v1 --"a"--> c7
v1 --"wikibase:propertyType"--> v3
v1 --"skos:altLabel"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c17 --"wikibase:language"--> c3
end
bind4[/"?alias"/]
v2 --o bind4
bind4 --as--o v5