extraction-framework
extraction-framework copied to clipboard
replace skos:related with dbo:wikiPageWikiLink
What is skos:related between categories? I don't think it's explained anywhere. There are 40286 on dbpedia.org:
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
select count(*) {?x skos:related ?y}
Also, as #385 shows, some of the target ?y are not skos:Concept
- Removed
dbo:related subPropertyOf skos:related, see http://mappings.dbpedia.org/index.php/OntologyProperty_talk:Related - replaced skos:related with dbo:related at http://mappings.dbpedia.org/index.php/Mapping_nl:Infobox_persoon http://mappings.dbpedia.org/index.php/Mapping_nl:Infobox_medicus
- the code is in SkosCategotiesExtractor.scala, there is a nice comment
// TODO: comment: What's going on here? What does it mean if text starts with ":"?
case TextNode(text, _) :: Nil if text.startsWith(":") => skosRelatedProperty
case _ => skosBroaderProperty
Well, you can see a lot of examples at https://en.wikipedia.org/w/index.php?title=Category:Application_software&action=edit, corresponding to
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
select * {<http://dbpedia.org/resource/Category:Application_software> skos:related ?y}
A link starting with colon (eg [[:Category:Lists of software]]) means the source cat has a link to the target cat, as opposed to being a subcat thereof (represented with skosBroaderProperty). This mostly fits the semantics of skos:related, but I think it should be replaced with wikiPageWikiLink for the following reasons:
- skos:related is symmetric but links of course are not
- skos:related is disjoint with skos:broader but in fact most of the links in sec "Guide to Application software subcategories" of the above page are subcats of it (i.e. have skos:broader to it). (These links are redundant, as they can be found in the automatically generated cat list below, but the "Guide" presents them in a more easily understandable manner)