Skip to content

Commit

Permalink
Update ttl_to_rst.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jsimonclark authored May 6, 2024
1 parent 09f6048 commit d9b0b1a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sphinx/ttl_to_rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ def entities_to_rst(entities: list[dict]) -> str:
rst = ""

for item in entities:
# Check if '#' is in the IRI
if '#' not in item['IRI']:
print(f"Skipping IRI without '#': {item['IRI']}")
continue # Skip this entity if no hash is present

iri_prefix, iri_suffix = item['IRI'].split("#")

Expand Down

0 comments on commit d9b0b1a

Please sign in to comment.