W3C home > Mailing lists > Public > public-esw-thes@w3.org > April 2010

Re: SKOS extension representation for agrovoc webservices

From: Alistair Miles <alimanfoo@googlemail.com>
Date: Mon, 19 Apr 2010 15:10:43 +0100
To: "Morshed, Ahsan (OEKC)" <Ahsan.Morshed@fao.org>
Cc: public-esw-thes@w3.org
Message-ID: <20100419141042.GA15679@skiathos>
Hi Ahsan,

Will this solve your problem (based on the example at [1])...

--- begin example, Turtle syntax ---

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix skosxl: <http://www.w3.org/2008/05skos-xl#> .
@prefix ex: <http://example.org/skos-schema-extension/> .
@prefix my: <http://example.org/my-vocab/> .

# the concept of FAO
my:C1 a skos:Concept ;
  skosxl:prefLabel my:L1 ;
  skosxl:altLabel my:L2 .

# the label "FAO"
my:L1 a skosxl:Label ;
  skosxl:literalForm "FAO"@en .

# the label "Food and Agriculture Organization"
my:L2 a skosxl:Label ;
  skosxl:literalForm "Food and Agriculture Organization"@en .

# define a label relation for acronyms
ex:acronym rdfs:subPropertyOf skosxl:labelRelation .

# state the acronym relation between "FAO" and "Food and Agriculture Organization"
my:L2 ex:acronym my:L1 .

--- end example, Turtle syntax ---

...or translated into RDF/XML using [2] ...

--- begin example, RDF/XML syntax ---

<?xml version="1.0"?>
<rdf:RDF xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:skosxl="http://www.w3.org/2008/05skos-xl#" xmlns:my="http://example.org/my-vocab/" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ex="http://example.org/skos-schema-extension/">
  <skos:Concept rdf:about="http://example.org/my-vocab/C1">
    <skosxl:prefLabel>
      <skosxl:Label rdf:about="http://example.org/my-vocab/L1">
        <skosxl:literalForm xml:lang="en">FAO</skosxl:literalForm>
      </skosxl:Label>
    </skosxl:prefLabel>
    <skosxl:altLabel>
      <skosxl:Label rdf:about="http://example.org/my-vocab/L2">
        <skosxl:literalForm xml:lang="en">Food and Agriculture Organization</skosxl:literalForm>
        <ex:acronym rdf:resource="http://example.org/my-vocab/L1" />
      </skosxl:Label>
    </skosxl:altLabel>
  </skos:Concept>
  <rdf:Description rdf:about="http://example.org/skos-schema-extension/acronym">
    <rdfs:subPropertyOf rdf:resource="http://www.w3.org/2008/05skos-xl#labelRelation" />
  </rdf:Description>
</rdf:RDF>

--- end example, RDF/XML syntax

...?

Cheers

Alistair

[1] http://www.w3.org/TR/skos-reference/#L1195
[2] http://www.rdfabout.com/demo/validator/

On Wed, Apr 14, 2010 at 09:26:31PM +0200, Morshed, Ahsan (OEKC) wrote:
> Dear Alistair,
> 
> Thanks for your reply. It was just a snap short for proposing solutions.  I
> want to express  
> 
>        1. a concept (descriptor) with different languages
>        2. each alternative concept (non-descriptors of that perticular
> concept) with uri  for different language label.
> 
> At the moment, we put a concept (descriptor) with URI and lexical label in
> the PrefLabel (different languages), but we put all other
> concepts(non-descriptor) in the altLabel. It is  difficult to understand that
> which PrefLabel correspond to  alterLabel.
> 
> Please let me know if you do not understand the problem.
> 
> Best Regards,
> Ahsan
> 
> 
> -----Original Message-----
> From:	Alistair Miles [mailto:alimanfoo@googlemail.com]
> Sent:	Wed 4/14/2010 5:43 PM
> To:	Morshed, Ahsan (OEKC)
> Cc:	public-esw-thes@w3.org
> Subject:	Re: SKOS extension representation  for agrovoc webservices
> 
> Hi Ahsan,
> 
> It's a bit difficult to see what you want to do, because it looks like
> there are a few syntax errors in your proposed solution. Maybe you
> could run your solution through an RDF syntax checker, e.g. [1], and
> re-post it?
> 
> One thing to note, each instance of skosxl:Label should have exactly one
> skosxl:literalForm [2]. So something like..
> 
> <skosxl:Label rdf:about="foo">
>   <skosxl:literalForm xml:lang="en">foo</skosxl:literalForm>
>   <skosxl:literalForm xml:lang="fr">bar</skosxl:literalForm>
> </skosxl:Label>
> 
> ...is not consistent.
> 
> Hth,
> 
> Alistair
> 
> [1] http://www.rdfabout.com/demo/validator/
> [2] http://www.w3.org/TR/skos-reference/#S52
> 
> On Fri, Apr 09, 2010 at 10:37:28AM +0200, Morshed, Ahsan (OEKC) wrote:
> > Dear All,
> > 
> > At the moment,  we are getting results from our agrovoc webservices in the
> > SKOS format  where  alternative labels are  not clearly distinguishable.
> > 
> > Ref:
> >
> http://lprapp14.fao.org:8080/agrovoc_ws/agrovoc_ws/sample_ag_ws_proxy/testcli
> > ent.jsp?method=113&input=1
> > 
> > Or you can see the result in the attachment file.
> > 
> > 
> > But, we want to represent it in the proposed way so that we can see the
> > labels more clearly.  I have seen this SKOS extension at 
> > 
> > Ref:  http://www.w3.org/TR/skos-reference/skos-xl.html
> > 
> > 
> > Could you  please have a look at it, and what do you think about this
> > solution whether it is fit for SKOS standard or not?.  
> > 
> > 
> > 
> > 
> > Solution:
> > 
> > <skos:Concept rdf:about="http://www.fao.org/aims/aos/agrovoc/c_4043">
> >        <skosxl:prefLabel rdf:about="i_4043"/>
> >        <skosxl:altLabel rdf:about="i_11895"/>
> >        <skosxl:altLabel rdf:about="i_11896"/>
> >        <skosxl:altLabel rdf:about="i_11897"/>
> >       // Put more labels if needed ....
> > </skos:Concept> 
> > 
> > # define the extensions to skosxl:labelRelation
> > <ag:acronym>
> >      <rdfs:subPropertyOf rdf:resource="skosxl:labelRelation" />
> > </ag:acronym>
> > <ag:synonym>
> >      <rdfs:subPropertyOf rdf:resource="skosxl:labelRelation" />
> > </ag:synonym>
> > 
> > 
> > !----------------------labels
> > relations--------------------------------------------------
> >        <skosxl:Label rdf:about="i_4043"><ag:synonym>< skosxl:Label
> > rdf:about="i_11895">
> >        < skosxl:Label rdf:about="i_11895"><ag:synonym>< skosxl:Label
> > rdf:about="i_11896">
> >        < skosxl:Label rdf:about="i_11896">"><ag:synonym>< skosxl:Label
> > rdf:about="i_11897">
> >        < skosxl:Label rdf:about="i_11897"><ag:synonym>< skosxl:Label
> > rdf:about="i_4043">  (needed this one?????) 
> > (needed also the other possibilities? E.g. 11895 - 11897, and the other
> > combinations????)
> > 
> > !----------------------labels
> > definitions--------------------------------------------------
> > < skosxl:Label rdf:about="i_4043">
> > 	<skosxl:literalForm xml:lang="EN">Java</ skosxl:literalForm >
> > <skosxl:literalForm xml:lang="CS">jáva</ skosxl:literalForm >
> > // Put more languages ...
> > </ skosxl:Label >
> > 
> > < skosxl:Label rdf:about="i_11895">
> > 	<skosxl:literalForm xml:lang="EN">Java apple</ skosxl:literalForm >
> > <skosxl:literalForm xml:lang="CS">Java manzana</ skosxl:literalForm >
> > // Put more languages ...
> > </ skosxl:Label >
> > 
> > < skosxl:Label rdf:about ="i _11896">
> > < skosxl: prefLabel xml:lang="EN">Java plum</ skosxl:literalForm >
> > <skosxl:prefLabel xml:lang="CS "> Java ciruela</ skosxl:literalForm >
> > // Put more languages ...
> > </ skosxl:Concept> 
> > 
> > < skosxl:Label rdf:about ="i_11897">
> > < skosxl:literalForm xml:lang="EN">Javanese long pepper</
> skosxl:literalForm
> > >
> > < skosxl:literalForm xml:lang="CS "> pimienta larga de Java </
> > skosxl:literalForm >
> > // Put more languages ...
> > </ skosxl:Concept> 
> > 
> > 
> > Best Regards,
> > Ahsan
> >  <<oldresult.docx>> 
> 
> 
> 
> -- 
> Alistair Miles
> Centre for Genomics and Global Health <http://cggh.org>
> The Wellcome Trust Centre for Human Genetics
> Roosevelt Drive
> Oxford
> OX3 7BN
> United Kingdom
> Web: http://purl.org/net/aliman
> Email: alimanfoo@gmail.com
> Tel: +44 (0)1865 287669
> 
> 
> 

-- 
Alistair Miles
Centre for Genomics and Global Health <http://cggh.org>
The Wellcome Trust Centre for Human Genetics
Roosevelt Drive
Oxford
OX3 7BN
United Kingdom
Web: http://purl.org/net/aliman
Email: alimanfoo@gmail.com
Tel: +44 (0)1865 287669
Received on Monday, 19 April 2010 14:11:15 UTC

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