From e6ca09d7387832577f0a2d950d9f124c7001acf6 Mon Sep 17 00:00:00 2001 From: Philipp Schneider <schneider.philipp@uni-muenster.de> Date: Wed, 10 Aug 2022 12:58:41 +0200 Subject: [PATCH] Add: filter all entries that cannot be used for RDF transformation --- src/rdf-mappings/map-tblBranch.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rdf-mappings/map-tblBranch.py b/src/rdf-mappings/map-tblBranch.py index ab77ffd..2258a5c 100644 --- a/src/rdf-mappings/map-tblBranch.py +++ b/src/rdf-mappings/map-tblBranch.py @@ -382,6 +382,9 @@ if mapping_config['create_research_dataset'] == False: df_tblBranch = df_tblBranch[(df_tblBranch['checked_for_publication'] == "true") | (df_tblBranch['checked_for_publication'] == 'secondary-description')] df_tblBranch = df_tblBranch[pd.isnull(df_tblBranch['published_as_rdf'])] +# Filter all entries that cannot yet be used for RDF transformation and must therefore be skipped +df_tblBranch = df_tblBranch[(df_tblBranch['checkBlasonIndividually'] == "true")] + print(df_tblBranch) # Initialize rdflib graph object -- GitLab