query-6c0b804d885be894ce3b0b53379a1962

rq turtle/ttl

German words with three syllables, i. e. a hyphenation (P5279) with two U+2027 HYPHENATION POINTs SELECT ?lexeme (GROUP_CONCAT(DISTINCT ?text; separator = "/") AS ?text) WHERE { ?lexeme dct:language wd:Q188. { ?lexeme ontolex:lexicalForm [ ontolex:representation ?text; wdt:P5279 ?hyphenation ]. } UNION { # P5279 is only supposed to be used on forms, but some also use it on the lexeme itself ?lexeme wikibase:lemma ?text; wdt:P5279 ?hyphenation. } FILTER(REGEX(?hyphenation, "^[^‧]‧[^‧]‧[^‧]*$")) } GROUP BY ?lexeme

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
PREFIX dct: <http://purl.org/dc/terms/>
# German words with three syllables, i. e. a hyphenation (P5279) with two U+2027 HYPHENATION POINTs
SELECT ?lexeme (GROUP_CONCAT(DISTINCT ?text; separator = "/") AS ?text) WHERE {
  ?lexeme dct:language wd:Q188.
  {
    ?lexeme ontolex:lexicalForm [
      ontolex:representation ?text;
      wdt:P5279 ?hyphenation
    ].
  } UNION {
    # P5279 is only supposed to be used on forms, but some also use it on the lexeme itself
    ?lexeme wikibase:lemma ?text;
            wdt:P5279 ?hyphenation.
  }
  FILTER(REGEX(?hyphenation, "^[^‧]*‧[^‧]*‧[^‧]*$"))
}
GROUP BY ?lexeme

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?hyphenation") v2("?lexeme"):::projected v4("?text"):::projected a1((" ")) c3(["wd:Q188"]):::iri f0[["regex(?hyphenation,'^#91;^‧#93;*‧#91;^‧#93;*‧#91;^‧#93;*$')"]] f0 --> v1 v2 --"dct:language"--> c3 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v2 --"wikibase:lemma"--> v4 v2 --"wdt:P5279"--> v1 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; a1 --"ontolex:representation"--> v4 a1 --"wdt:P5279"--> v1 v2 --"ontolex:lexicalForm"--> a1 end union0r <== or ==> union0l end bind2[/"?text"/] v4 --o bind2 bind2 --as--o v4