ordia
ordia copied to clipboard
Service for various language mining
Service for various language mining, e.g., persons with a surname that matches the past participle form of a Danish verb:
SELECT
(COUNT(?person) AS ?count)
?lexeme ?lemma ?surname
(SAMPLE(?person) AS ?example_person)
(GROUP_CONCAT(?person_labels; separator=", ") AS ?names)
WHERE {
hint:Query hint:optimizer "None".
?lexeme dct:language wd:Q9035 .
?lexeme ontolex:lexicalForm ?form .
?form wikibase:grammaticalFeature wd:Q52434448 .
?lexeme wikibase:lemma ?lemma .
?form ontolex:representation ?word .
BIND(STRLANG(CONCAT(UCASE(SUBSTR(STR(?word), 1, 1)), SUBSTR(STR(?word), 2)), "en") AS ?surname)
?surname_item rdfs:label ?surname .
?person wdt:P734 ?surname_item .
?person rdfs:label ?person_labels . FILTER(LANG(?person_labels) = "en")
}
GROUP BY ?lexeme ?lemma ?surname
ORDER BY DESC(?count)
LIMIT 100