bkbit.utils.serialize_to_ttl module
Module that converts JSON-LD data to Turtle (TTL) format.
- bkbit.utils.serialize_to_ttl.convert_jsonld_to_ttl(jsonld_data)[source]
Converts JSON-LD data to Turtle (TTL) format.
- Parameters:
jsonld_data (str) – A string containing JSON-LD formatted data.
- Returns:
The converted data in Turtle format if successful, otherwise None.
- Return type:
str
- Raises:
Prints an error message if parsing or conversion fails due to ParserError, ValueError, or SyntaxError. –