W3C home > Mailing lists > Public > public-dwbp-wg@w3.org > March 2016

Re: Provide Access to Subsets - 2 real examples

From: Annette Greiner <amgreiner@lbl.gov>
Date: Fri, 25 Mar 2016 11:26:39 -0700
To: Laufer <laufer@globo.com>
Cc: public-dwbp-wg@w3.org
Message-ID: <56F582DF.3030805@lbl.gov>
Yes, I see that the queries are made through URIs. It is still an API, 
just a RESTful one, which is nice.
-Annette

On 3/25/16 10:53 AM, Laufer wrote:
>
> Annette,
> For the users, in the second example that I gave, they see a list of URLs.
> It is completely different from studying the format of a message to be 
> submitted to an API or, in this case, submit the SPARQL query. It is 
> an URI Template. In concrete terms, for them, they ask the 
> subsets through URLs.
> The fact that this is translated to a SPARQL query is transparent to 
> the consumers.
> Again, I hope these examples could help.
> Laufer
> ---
>
> .  .  .  .. .  .
> .        .   . ..
> .     ..       .
>
> Em 25/03/2016 14:40, Annette Greiner escreveu:
>
>> Newton, Bernadette, and I had a discussion about this the other day. 
>> We agreed that these sorts of examples are in fact APIs, just built 
>> on SPARQL. The BP already mentions APIs. We decided to revise the BP 
>> to cover the case of subsetting via separate file downloads as well.
>> -Annette
>>
>> On 3/25/16 6:19 AM, Laufer wrote:
>>>
>>> Hi All,
>>>
>>> I have collected two examples of distributing subsets that I think 
>>> could be taken into account as possible implementation approaches of 
>>> the BP related to subsets.
>>>
>>> IMHO, I still think that the text and the discussion are too much 
>>> focused in APIs, and gives, to me, the feeling that it is related to 
>>> domains such as scientific data or real-time data.
>>>
>>> I hope these examples can be useful.
>>>
>>> Thank you.
>>>
>>> Best regards, Laufer
>>>
>>> --------------------------------------------------
>>> Example 1 - http://education.data.gov.uk/
>>> --------------------------------------------------
>>>
>>> URL access to all schools
>>> http://education.data.gov.uk/doc/school
>>>
>>> URL access to a particular school (by it´s reference number) 
>>> - (Herne Hill School)
>>> http://education.data.gov.uk/doc/school/100866
>>>
>>> The results can be provided in different formats such csv, json, 
>>> ttl, etc.
>>> http://education.data.gov.uk/doc/school.csv
>>>
>>> URL access to subsets: primary schools or secondary schools
>>> http://education.data.gov.uk/doc/school/phase/primary
>>> http://education.data.gov.uk/doc/school/phase/secondary
>>>
>>> URL access to a particular school, using the query part of the URI
>>> http://education.data.gov.uk/doc/school?uniqueReferenceNumber=100866
>>> http://education.data.gov.uk/doc/school?label=Herne%20Hill%20School
>>>
>>> URL access to groups of schools with a particular characteristic, 
>>> using the query part of the URI
>>> http://education.data.gov.uk/doc/school.html?districtAdministrative.label=Southwark
>>> http://education.data.gov.uk/doc/school.html?typeOfEstablishment.label=Community%20School
>>> http://education.data.gov.uk/doc/school.html?districtAdministrative.label=Southwark&typeOfEstablishment.label=Community%20School
>>>
>>> Using a SPARQL endpoint
>>> Leigh Dodds blog post describing how to make SPARQL queries into the 
>>> Edubase linked data.
>>> https://data.gov.uk/blog/using-sparql-our-education-datasets
>>>
>>> ----------------------------------------------------------------------
>>> Example 2 - http://dados.gov.br/dataset/orcamento-federal
>>> ----------------------------------------------------------------------
>>>
>>> CKAN entry
>>> http://dados.gov.br/dataset/orcamento-federal/resource/03df3200-7c7a-460e-b1f2-0eba73d09cad
>>>
>>> URL access to data for a specific year (zip file)
>>> https://www1.siop.planejamento.gov.br/downloads/rdf/loa{year}.zip
>>>
>>> URL access to particular subsets of data for a specific year grouped 
>>> by particular properties (Acao, Atividade, etc.)
>>> http://orcamento.dados.gov.br/doc/{year}/Acao/{code}
>>> http://orcamento.dados.gov.br/doc/{year}/Atividade/{code}
>>> http://orcamento.dados.gov.br/doc/{year}/CategoriaEconomica/{code}
>>> http://orcamento.dados.gov.br/doc/{year}/ElementoDespesa/{code}
>>> http://orcamento.dados.gov.br/doc/{year}/Esfera/{code}
>>> http://orcamento.dados.gov.br/doc/{year}/Exercicio/{identifier}
>>> http://orcamento.dados.gov.br/doc/{year}/FonteRecursos/{code}
>>> http://orcamento.dados.gov.br/doc/{year}/Funcao/{code}
>>> http://orcamento.dados.gov.br/doc/{year}/GrupoNatDespesa/{code}
>>> http://orcamento.dados.gov.br/doc/{year}/IdentificadorUso/{code}
>>> http://orcamento.dados.gov.br/doc/{year}/ItemDespesa/{code}
>>> http://orcamento.dados.gov.br/doc/{year}/ModalidadeAplicacao/{code}
>>> http://orcamento.dados.gov.br/doc/{year}/OperacaoEspecial/{code}
>>> http://orcamento.dados.gov.br/doc/{year}/Orgao/{code}
>>> http://orcamento.dados.gov.br/doc/{year}/PlanoOrcamentario/{code}
>>> http://orcamento.dados.gov.br/doc/{year}/Programa/{code}
>>> http://orcamento.dados.gov.br/doc/{year}/Projeto/{code}
>>> http://orcamento.dados.gov.br/doc/{year}/ResultadoPrimario/{code}
>>> http://orcamento.dados.gov.br/doc/{year}/Subfuncao/{code}
>>> http://orcamento.dados.gov.br/doc/{year}/Subtitulo/{code}
>>> http://orcamento.dados.gov.br/doc/{year}/UnidadeOrcamentaria/{code}
>>>
>>> -- 
>>>
>>> .  .  .  .. .  .
>>> .        .   . ..
>>> .     ..       .
>>>
>>
>> -- 
>> Annette Greiner
>> NERSC Data and Analytics Services
>> Lawrence Berkeley National Laboratory
>>

-- 
Annette Greiner
NERSC Data and Analytics Services
Lawrence Berkeley National Laboratory
Received on Friday, 25 March 2016 18:27:03 UTC

This archive was generated by hypermail 2.3.1 : Friday, 25 March 2016 18:27:04 UTC