query-7da3fa3e61aa2588cf49ffe0dfe6bf3a
Forms
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX target: <http://www.wikidata.org/entity/L1319110>
SELECT
?form ?formLabel
(GROUP_CONCAT(DISTINCT ?feature_label; separator="; ") AS ?features)
(GROUP_CONCAT(DISTINCT ?hyphenation; separator=" ; ") AS ?hyphenations)
("Wikidata ↗" AS ?wikidata)
(CONCAT("https://www.wikidata.org/wiki/Lexeme:", SUBSTR(STR(?lexeme), 32)) AS ?wikidataUrl)
("Ordia ↗" AS ?ordia)
(CONCAT("https://ordia.toolforge.org/", SUBSTR(STR(?form), 32)) AS ?ordiaUrl)
WHERE {
BIND(target: AS ?lexeme)
target: ontolex:lexicalForm ?form .
?form ontolex:representation ?formLabel .
OPTIONAL {
?form wikibase:grammaticalFeature ?feature .
}
OPTIONAL {
?form wdt:P5279 ?hyphenation
}
?feature rdfs:label ?feature_label .
FILTER (LANG(?feature_label) = "en")
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?lexeme ?form ?formLabel
ORDER BY (STR(?form))
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?feature")
v2("?feature_label"):::projected
v7("?features")
v1("?form"):::projected
v4("?formLabel"):::projected
v6("?hyphenation"):::projected
v8("?hyphenations")
v3("?lexeme"):::projected
v11("?ordia")
v12("?ordiaUrl")
v9("?wikidata")
v10("?wikidataUrl")
c9(["bd:serviceParam"]):::iri
c2([http://www.wikidata.org/entity/L1319110]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?feature_label = 'en'"]]
f0 --> v2
bind1[/"http://www.wikidata.org/entity/L1319110"/]
bind1 --as--o v3
c2 --"ontolex:lexicalForm"--> v1
v1 --"ontolex:representation"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wikibase:grammaticalFeature".-> v5
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P5279".-> v6
end
v5 --"rdfs:label"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end
bind4[/"?feature_label"/]
v2 --o bind4
bind4 --as--o v7
bind5[/"?hyphenation"/]
v6 --o bind5
bind5 --as--o v8
bind6[/"'Wikidata ↗'"/]
bind6 --as--o v9
bind7[/"concat('https://www.wikidata.org/wiki/Lexeme:',substring(str(?lexeme),'32^^xsd:integer'))"/]
v3 --o bind7
bind7 --as--o v10
bind8[/"'Ordia ↗'"/]
bind8 --as--o v11
bind9[/"concat('https://ordia.toolforge.org/',substring(str(?form),'32^^xsd:integer'))"/]
v1 --o bind9
bind9 --as--o v12