Hi Kasun,

yes you can only use skos:broader property to detect child-parent
relationships.
If the extraction framework cannot get any parent for one category (e.g.
http://dbpedia.org/resource/Category:1612_establishments_in_Mexico) then
this category will be noted as a skos:Concept but no skos:broader
relationships will be added in the triples file.
This is correct and seems to be working ok.

Maybe the problem you want to highlight is different:
there are categories in Wikipedia which appear to have parents (again, in
Wikipedia), but do not compare as subjects in any skos:broader
relationships in the skos_categories file?

This is true (it is true for
http://dbpedia.org/resource/Category:1612_establishments_in_Mexico) but I
think this is because the current SkosCategoriesExtractor does not take
into account category links which are added by templates (as in
http://en.wikipedia.org/wiki/Category:1612_establishments_in_Mexico).

In my opinion, you could maybe check which are the main templates used for
this and add support in the extraction framework.
So that all of us can benefit from yout work.

Hope this is clear.

Cheers
Andrea



2013/7/5 kasun perera <[email protected]>

>
> Hi Andrea
>
> I'm bit confused.
>
> In a previous mail on this thread you mentioned that
> dbp:A skos:broader dbp:B means that A is a sub-category of B; so I can these
> relations to build a directed graph (e.g. B -> A) and then find leaves.
>
> So what I separated the triples having "skos:broader" and filter out all
> other triples (this is mentioned here[1]); because I can only use  "
> skos:broader" relationship to detect child-parent relationship right?
>
> $ bzgrep "1612_establishments_in_Mexico" skos_categories_en.ttl.bz2
>> <http://dbpedia.org/resource/Category:1612_establishments_in_Mexico> <
>> http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <
>> http://www.w3.org/2004/02/skos/core#Concept> .
>> <http://dbpedia.org/resource/Category:1612_establishments_in_Mexico> <
>> http://www.w3.org/2004/02/skos/core#prefLabel> "1612 establishments in
>> Mexico"@en .
>>
>> So the category referred to in the issue seems to be there in the file.
>>
>
> Yes this is there in the file but it's not a type of "skos:broader",
> which I can get the parent-child relationship.
> So first tell me using only the triples with "skos:broader" is wrong?
> (Then we will come back to my claim "categories that don't have a broader
> category are not included in dump 2")
>
> [1] https://github.com/dbpedia/dbpedia-links/issues/16
>
>
> --
> Regards
>
> Kasun Perera
>
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Dbpedia-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-developers

Reply via email to