Skip to content

Commit

Permalink
exclude current type for inferred
Browse files Browse the repository at this point in the history
  • Loading branch information
jimkont committed Apr 24, 2015
1 parent 93b50e3 commit 704fb3c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ class WikidataR2RExtractor(
// Generate inferred types
context.ontology.classes.get(q.value.replace("http://dbpedia.org/ontology/", "")) match {
case Some(clazz) =>
for (cls <- clazz.relatedClasses)
for (cls <- clazz.relatedClasses.filter(_ != clazz))
adjustedGraph += new Quad(context.language, DBpediaDatasets.OntologyTypesTransitive, subjectUri, rdfType, cls.uri, page.wikiPage.sourceUri)
case None =>
}
Expand Down

0 comments on commit 704fb3c

Please sign in to comment.