Skip to content

Commit

Permalink
new skos.properties
Browse files Browse the repository at this point in the history
  • Loading branch information
LasseMempel committed Jun 27, 2024
1 parent c14cc6d commit 0528afd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions skosifyCSV/skosLib.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@
if not pd.isnull(row['related']):
related = URIRef(thesaurusAddendum + row['related'])
g.add ((concept, SKOS.related, related))
if not pd.isnull(row['example']):
example = URIRef(thesaurusAddendum + row['example'])
g.add ((concept, SKOS.example, example))
if not pd.isnull(row['relatedMatch']):
relatedMatch = URIRef(thesaurusAddendum + row['relatedMatch'])
g.add ((concept, SKOS.relatedMatch, relatedMatch))
if not pd.isnull(row['closeMatch']):
closeMatch = URIRef(thesaurusAddendum + row['closeMatch'])
g.add ((concept, SKOS.closeMatch, closeMatch))
g.add ((concept, SKOS.inScheme, thesaurus))
if row["parent"] == "top":
g.add ((thesaurus, SKOS.hasTopConcept, concept))
Expand Down

0 comments on commit 0528afd

Please sign in to comment.