Skip to content

Commit

Permalink
extract labels and types from disambiguation pages
Browse files Browse the repository at this point in the history
  • Loading branch information
sven-h committed Jul 25, 2019
1 parent 6ec9abe commit c1a8857
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c1a8857

Please sign in to comment.