Skip to content

Commit

Permalink
Remove unused notations and fix base ns #41
Browse files Browse the repository at this point in the history
  • Loading branch information
Petra Maier committed Sep 11, 2024
1 parent e8bc231 commit 1044b6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
5 changes: 3 additions & 2 deletions create_faechersystematik_ttl.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def add_pref_labels_lang(level_dict_list, current_pref_labels_dict):
df_3rd_level = pd.read_csv(url_3rd_level, encoding="ISO-8859-1", sep=';', quotechar='"', header=None, engine ='python', dtype=str, usecols=[0, 2, 3], names=["notation", "label", "broader"])

# remove duplicate, unused notation 10 from top level
df_1st_level = df_1st_level[df_1st_level.notation !="10"]
# remove unused notations 15 & 20
df_1st_level = df_1st_level[~df_1st_level["notation"].isin(["10", "15", "20"])]

# remove of "10" subordinate notations from 2nd and 3rd level
df_2nd_level = df_2nd_level[df_2nd_level.broader !="10"]
Expand All @@ -74,7 +75,7 @@ def add_pref_labels_lang(level_dict_list, current_pref_labels_dict):
g = Graph()

# namespaces
base = Namespace('https://w3id.org/kim/hochschulfaechersystematik/')
base = 'https://w3id.org/kim/hochschulfaechersystematik/'
vann = Namespace('http://purl.org/vocab/vann/')
dct = Namespace('http://purl.org/dc/terms/')
owl = Namespace('http://www.w3.org/2002/07/owl#')
Expand Down
11 changes: 1 addition & 10 deletions hochschulfaechersystematik.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
vann:preferredNamespaceUri "https://w3id.org/kim/hochschulfaechersystematik/" ;
skos:hasTopConcept <n0>,
<n1>,
<n15>,
<n2>,
<n20>,
<n3>,
<n4>,
<n5>,
Expand Down Expand Up @@ -200,10 +198,6 @@
"Cultural Studies in the narrower sense"@en,
"Культурологія у вужчому розумінні"@uk .

<n15> a skos:Concept ;
skos:prefLabel "Zentrale Einrichtungen (ohne klinikspezifische Einrichtungen)"@de ;
skos:topConceptOf <scheme> .

<n18> a skos:Concept ;
skos:broader <n1> ;
skos:inScheme <scheme> ;
Expand All @@ -220,10 +214,6 @@
"Media Science"@en,
"Медіазнавство"@uk .

<n20> a skos:Concept ;
skos:prefLabel "Zentrale Einrichtungen der Hochschulkliniken (nur Humanmedizin)"@de ;
skos:topConceptOf <scheme> .

<n22> a skos:Concept ;
skos:broader <n2> ;
skos:inScheme <scheme> ;
Expand Down Expand Up @@ -2771,3 +2761,4 @@
skos:prefLabel "Ur- und Frühgeschichte"@de,
"Prehistory and Early History"@en,
"Історія первісного суспільства"@uk .

0 comments on commit 1044b6e

Please sign in to comment.