W3C home > Mailing lists > Public > semantic-web@w3.org > January 2015

Re: How do you explore a SPARQL Endpoint?

From: Thomas Francart <thomas.francart@sparna.fr>
Date: Thu, 22 Jan 2015 15:28:54 +0100
Message-ID: <CAPugn7UXgACeE=41XGhFjy21oJ7E7sNJdkG_+RyhbU-B+S=yJA@mail.gmail.com>
To: Juan Sequeda <juanfederico@gmail.com>
Cc: Semantic Web <semantic-web@w3.org>, public-lod public <public-lod@w3.org>
SELECT DISTINCT ?type
WHERE {   ?x rdf:type ?type . }

SELECT DISTINCT ?p
WHERE {   ?s ?p ?o . }

then

SELECT ?s
WHERE {
  ?s a <http://uri_of_a_type>
} LIMIT 100

and then

DESCRIBE <http://uri_of_an_instance>

or

SELECT ?p ?o
WHERE {
  <http://uri_of_an_instance> ?p ?o .
}

Having some statistics on the types may help too :

SELECT ?type (COUNT(?instance) AS ?count)
WHERE {
    ?instance a ?type .
} GROUP BY ?type


2015-01-22 15:19 GMT+01:00 Luca Matteis <lmatteis@gmail.com>:

> "Give me all your types" seems the most sensible thing to do.
> Otherwise full text search.
>
> On Thu, Jan 22, 2015 at 3:09 PM, Juan Sequeda <juanfederico@gmail.com>
> wrote:
> > Assume you are given a URL for a SPARQL endpoint. You have no idea what
> data
> > is being exposed.
> >
> > What do you do to explore that endpoint? What queries do you write?
> >
> > Juan Sequeda
> > +1-575-SEQ-UEDA
> > www.juansequeda.com
>
>


-- 

*Thomas Francart* - Sparna
Consultant Indépendant
Data, Sémantique, Contenus, Connaissances
web : http://sparna.fr, blog : http://blog.sparna.fr
Tel :  +33 (0)6.71.11.25.97
Fax : +33 (0)9.58.16.17.14
Skype : francartthomas
Received on Thursday, 22 January 2015 14:29:43 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 07:42:57 UTC