Get comprehensive RDF data for any entity in the DanNet database.
Supports both DanNet entities and external vocabulary entities loaded
into the triplestore from various schemas and datasets.
UNDERSTANDING THE DATA MODEL:
The DanNet database contains entities from multiple sources:
- DanNet entities (namespace="dn"): synsets, words, senses, and other resources
- External entities (other namespaces): OntoLex vocabulary, Inter-Lingual Index, etc.
All entities follow RDF patterns with namespace prefixes for properties and relationships.
NAVIGATION TIPS:
- DanNet synsets have rich semantic relationships (wn:hypernym, wn:hyponym, etc.)
- External entities provide vocabulary definitions and cross-references
- Use parse_resource_id() on URI references to get clean IDs
- Check @type to understand what kind of entity you're working with
Args:
identifier: Entity identifier (e.g., "synset-3047", "word-11021628", "LexicalConcept", "i76470")
namespace: Namespace for the entity (default: "dn" for DanNet entities)
- "dn": DanNet entities via /dannet/data/ endpoint
- Other values: External entities via /dannet/external/{namespace}/ endpoint
- Common external namespaces: "ontolex", "ili", "wn", "lexinfo", etc.
Returns:
Dict containing JSON-LD format with:
- @context → namespace mappings (if applicable)
- @id → entity identifier
- @type → entity type
- All RDF properties with namespace prefixes (e.g., wn:hypernym, ontolex:evokes)
- For DanNet synsets: dns:ontologicalType and dns:sentiment (if applicable)
- Entity-specific convenience fields (synset_id, resource_id, etc.)
Examples:
# DanNet entities
get_entity_info("synset-3047") # DanNet synset
get_entity_info("word-11021628") # DanNet word
get_entity_info("sense-21033604") # DanNet sense
# External vocabulary entities
get_entity_info("LexicalConcept", namespace="ontolex") # OntoLex class definition
get_entity_info("i76470", namespace="ili") # Inter-Lingual Index entry
get_entity_info("noun", namespace="lexinfo") # Lexinfo part-of-speech
Connector