Get a complete overview of all senses for a Danish word in a single call.
Replaces the common pattern of calling get_word_synsets → get_synset_info
per result → get_word_synonyms, collapsing 5-15 HTTP round-trips into one
SPARQL query.
Only returns synsets where the word is a primary lexical member (i.e. the
word itself has a direct sense in the synset), excluding multi-word
expressions that merely contain the word as a component.
Args:
word: The Danish word to look up
Returns:
List of dicts, one per synset, each containing:
- synset_id: Clean synset identifier (e.g. "synset-3047")
- label: Human-readable synset label
- definition: Synset definition (may be truncated with "…")
- ontological_types: List of dnc: type URIs
- synonyms: List of co-member lemmas (true synonyms only)
- hypernym: Dict with synset_id and label of the immediate broader concept, or null
- lexfile: WordNet lexicographer file name (e.g. "noun.animal"), or null if absent
Example:
overview = get_word_overview("hund")
# Returns list of 4 synsets, the first being:
# {"synset_id": "synset-3047",
# "label": "{hund_1§1; køter_§1; vovhund_§1; vovse_§1}",
# "definition": "pattedyr som har god lugtesans ...",
# "ontological_types": ["dnc:Animal", "dnc:Object"],
# "synonyms": ["køter", "vovhund", "vovse"],
# "lexfile": "noun.animal"}
# Pass synset_id to get_synset_info() for full JSON-LD data on any result:
# full_data = get_synset_info(overview[0]["synset_id"])