From c1a8857db0af441a05944ba5ce03c8627de15cfe Mon Sep 17 00:00:00 2001 From: Sven Hertling Date: Thu, 25 Jul 2019 10:48:49 +0200 Subject: [PATCH] extract labels and types from disambiguation pages --- .../extraction/mappings/ArticleTemplatesClassExtractor.scala | 4 ++-- .../org/dbpedia/extraction/mappings/LabelExtractor.scala | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/scala/org/dbpedia/extraction/mappings/ArticleTemplatesClassExtractor.scala b/core/src/main/scala/org/dbpedia/extraction/mappings/ArticleTemplatesClassExtractor.scala index e0e2a5f3d8..2e4fb5ed0b 100644 --- a/core/src/main/scala/org/dbpedia/extraction/mappings/ArticleTemplatesClassExtractor.scala +++ b/core/src/main/scala/org/dbpedia/extraction/mappings/ArticleTemplatesClassExtractor.scala @@ -36,8 +36,8 @@ class ArticleTemplatesClassExtractor( //Only extract for pages from the Main namespace if(node.title.namespace != Namespace.Main) return Seq.empty - //Don't extract from redirect and disambiguation pages - if(node.isRedirect || node.isDisambiguation) return Seq.empty + //Don't extract from redirect + if(node.isRedirect) return Seq.empty var quads = new ArrayBuffer[Quad]() var hasType = false diff --git a/core/src/main/scala/org/dbpedia/extraction/mappings/LabelExtractor.scala b/core/src/main/scala/org/dbpedia/extraction/mappings/LabelExtractor.scala index ae3662e9f3..4e9a9efd3d 100644 --- a/core/src/main/scala/org/dbpedia/extraction/mappings/LabelExtractor.scala +++ b/core/src/main/scala/org/dbpedia/extraction/mappings/LabelExtractor.scala @@ -43,7 +43,7 @@ extends WikiPageExtractor quads += new Quad(context.language, DBpediaDatasets.Labels, subjectUri, altLabelProperty, label, page.sourceIri, context.ontology.datatypes("rdf:langString")) - if(!page.isRedirect && !page.isDisambiguation) + if(!page.isRedirect) quads += new Quad(context.language, DBpediaDatasets.Labels, subjectUri, labelProperty, label, page.sourceIri, context.ontology.datatypes("rdf:langString")) quads