D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] SPARCQL

 

On 13/09/2021 16:14, Martin Gautier wrote:
> Hi
>
> Hands up anyone that knows how to drive SPARQL via a HTTP URI.
>
> I need to be able to pull a list of organisations from
> https://edmo.seadatanet.org/ but they don't make it easy.
>
> TIA
>
They really don't make it easy, do they?

Is this what you were looking for?

PREFIX skos:<http://www.w3.org/2004/02/skos/core#>
PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>

SELECT DISTINCT ?s ?p WHERE {?s rdf:type
<http://www.w3.org/ns/org#Organization>. ?s skos:prefLabel ?p} ORDER By ?p


Shamelessly stolen from Github,
https://github.com/adamml/seadatanet-sparql-queries/blob/master/getAllEDMOs.rq

I am not a SPARQL expert either.

Cheers,

Pete


-- 
The Mailing List for the Devon & Cornwall LUG
https://mailman.dcglug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq