schema2owl¶
Allows output of HedSchema objects as .xml format
Functions
|
Sanitizes a string to be a valid IRIREF in Turtle, based on the SPARQL grammar. |
- sanitize_for_turtle(name)[source]¶
Sanitizes a string to be a valid IRIREF in Turtle, based on the SPARQL grammar.
- Excludes: control characters, space, <, >, double quote, {, }, |, ^, backtick, and backslash.
Replacing them with underscores
- Parameters:
name (str) – The string to sanitize.
- Returns:
A sanitized string suitable for use as an IRIREF in Turtle.
- Return type:
str
Classes
|