Skip to content

Commit

Permalink
skos narrower integrated
Browse files Browse the repository at this point in the history
  • Loading branch information
LasseMempel committed Feb 17, 2025
1 parent 253a7e6 commit 84ce7de
Show file tree
Hide file tree
Showing 3 changed files with 15,138 additions and 11,122 deletions.
2 changes: 2 additions & 0 deletions skosifyCSV/skosLib.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ def row2Triple(i, g, concept, pred, obj, isLang, baseLanguageLabel, thesaurusAdd
if pred in [SKOS.broader, SKOS.narrower, SKOS.related]:
if i != "top":
g.add ((concept, pred, URIRef(thesaurusAddendum + i)))
if pred == SKOS.broader:
g.add ((URIRef(thesaurusAddendum + i), SKOS.narrower, concept))
else:
g.add ((concept, pred, URIRef(urllib.parse.quote(i))))
else:
Expand Down
Loading

0 comments on commit 84ce7de

Please sign in to comment.