W3C home > Mailing lists > Public > public-esw-thes@w3.org > September 2013

Re: skos:hasTopConcept mandatory?

From: Thomas Francart <thomas.francart@sparna.fr>
Date: Tue, 3 Sep 2013 19:55:29 +0200
Message-ID: <CAPugn7VmgpE1N8h3xmHMUpGKyOPGC3m5chzMvx2fzTOz0TZngA@mail.gmail.com>
To: Antoine Isaac <aisaac@few.vu.nl>
Cc: SKOS <public-esw-thes@w3.org>
> Your issue is that the tools you've used are rather accustomed to
> hierarchical vocabularies. They can't tell from the data whether it's a
> flat list or a hierarchical thesaurus, where one would have expected to
> find top concepts.
>
>
In such a case, and as a first approximation, this simple SPARQL query can
tell you whether a given ConceptScheme contains hierarchical information or
not :

PREFIX skos:<http://www.w3.org/2004/02/skos/core#>
ASK {
  ?concept skos:broader|skos:narrower ?another .
  ?concept skos:inScheme <http://www.exemple.com/myConceptScheme> .
}

If this query returns false, a tool could tell that a ConceptScheme
contains a flat list and not a hierarchical taxonomy.

Thomas

-- 
*
*
*Thomas Francart* - Sparna
Consultant Indépendant
Data, Sémantique, Contenus, Connaissances
web : http://sparna.fr, blog : http://francart.fr
Tel :  +33 (0)6.71.11.25.97
Fax : +33 (0)9.58.16.17.14
Skype : francartthomas
Received on Tuesday, 3 September 2013 17:56:17 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:46:26 UTC