Re: How do you explore a SPARQL Endpoint?

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