sparql endpoint

15 views
Skip to first unread message

Soheila Dehghanzadeh

unread,
Mar 12, 2012, 9:23:15 AM3/12/12
to sindice-dev
Hi All,

I run this query last week at http://sparql.sindice.com/ and get 5000 results:

PREFIX an: <http://vocab.sindice.net/analytics#>
PREFIX any23: <http://vocab.sindice.net/dataset#>
SELECT DISTINCT ?node
WHERE {
    ?node any23:domain_uri ?domain .
    ?node an:source ?edge.
}
and now when i run it again, i get no result :-/
Does anyone know what is the problem ?

-Soheila D.

Szymon Danielczyk

unread,
Mar 12, 2012, 10:29:46 AM3/12/12
to sindi...@googlegroups.com
Hi Soheila D

We are currently reloading the analytics graph to have the fresh data
about all datasets
I will let you know when the process is done
Then your query should work fine again

Sorry for inconvenience
Szymon

> --
> You received this message because you are subscribed to the Google
> Groups "Sindice Developers" group.
> To post to this group, send email to sindi...@googlegroups.com
> To unsubscribe from this group, send email to
> sindice-dev...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/sindice-dev?hl=en
>
> http://sindice.com http://sig.ma http://www.deri.ie

szydan

unread,
Mar 13, 2012, 7:29:22 AM3/13/12
to Sindice Developers
Hi Soheila D

The analytics graph was reloaded
but I think your initial query war slightly wrong
I rewrote it a little
SELECT ?node
FROM <http://sindice.com/analytics>
WHERE {
?node any23:domain_uri ?Source_domain .
?edge an:source ?node
}
LIMIT 10

1) the any23 namespace was wrong
2) the distinct is no needed as nodes in analytics graph are unique
3) it is good practice to put the limit at the end

Hope this helps

Cheers
Szymon




On Mar 12, 2:29 pm, Szymon Danielczyk <danielczyk.szy...@gmail.com>
wrote:
> Hi Soheila D
>
> We are currently reloading the analytics graph to have the fresh data
> about all datasets
> I will let you know when the process is done
> Then your query should work fine again
>
> Sorry for inconvenience
> Szymon
>
> On 12 March 2012 13:23, Soheila Dehghanzadeh <sally...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hi All,
>
> > I run this query last week athttp://sparql.sindice.com/and get 5000

Soheila Dehghanzadeh

unread,
Mar 13, 2012, 12:22:01 PM3/13/12
to sindi...@googlegroups.com
Hi Szydan,
thanks for correction but I run ur query and the 3 first nodes are the same :-/

Soheila Dehghanzadeh

unread,
Mar 13, 2012, 12:23:44 PM3/13/12
to sindi...@googlegroups.com
and the other 7 are also the same :-/

Soheila Dehghanzadeh

unread,
Mar 13, 2012, 12:25:00 PM3/13/12
to sindi...@googlegroups.com
and when i add the DISTINCT keyword i get the different nodes :-/

Stéphane Campinas

unread,
Mar 13, 2012, 2:17:00 PM3/13/12
to sindi...@googlegroups.com
Hi Soheila,

you get the same nodes because you are querying for the edges, and one node possibly has multiple edges: the node foaf:Person has several properties, e.g., name, age, .... Therefore, you will have mutiple rows with that same node name.

Look at this querySELECT  ?node ?predicate ?target

FROM <http://sindice.com/analytics>
WHERE {
    ?node any23:domain_uri ?Source_domain .
    ?edge an:source ?node .
    ?edge an:label ?predicate .
    ?edge an:target ?target
}
LIMIT 10

> > For more options, visit this group at
> >http://groups.google.com/group/sindice-dev?hl=en
>
> >http://sindice.comhttp://sig.mahttp://www.deri.ie

--
You received this message because you are subscribed to the Google
Groups "Sindice Developers" group.
To post to this group, send email to sindi...@googlegroups.com
To unsubscribe from this group, send email to

szydan

unread,
Mar 13, 2012, 5:50:08 PM3/13/12
to Sindice Developers
Stephane

Thank you for clarifying this

Szymon

On Mar 13, 6:17 pm, Stéphane Campinas <stephane.campi...@gmail.com>
wrote:
> Hi Soheila,
>
> you get the same nodes because you are querying for the edges, and one node
> possibly has multiple edges: the node foaf:Person has several properties,
> e.g., name, age, .... Therefore, you will have mutiple rows with that same
> node name.
>
> Look at this query
>
> PREFIX an: <http://vocab.sindice.net/analytics#>
> PREFIX any23: <http://vocab.sindice.net/>
> SELECT  ?node ?predicate ?target
> FROM <http://sindice.com/analytics>
> WHERE {
>     ?node any23:domain_uri ?Source_domain .
>     ?edge an:source ?node .
>     ?edge an:label ?predicate .
>     ?edge an:target ?target}
>
> LIMIT 10
>
>
>
>
>
>
>
> On Tuesday, 13 March 2012 16:25:00 UTC, sally wrote:
>
> > and when i add the DISTINCT keyword i get the different nodes :-/
>
> > On Tue, Mar 13, 2012 at 4:23 PM, Soheila Dehghanzadeh <sally...@gmail.com>wrote:
>
> >> and the other 7 are also the same :-/
>
> >> On Tue, Mar 13, 2012 at 4:22 PM, Soheila Dehghanzadeh <sally...@gmail.com
> >> > wrote:
>
> >>> Hi Szydan,
> >>> thanks for correction but I run ur query and the 3 first nodes are the
> >>> same :-/
>
> >>>> > > I run this query last week athttp://sparql.sindice.com/andget 5000
> >>>> > > results:
>
> >>>> > > PREFIX an: <http://vocab.sindice.net/analytics#>
> >>>> > > PREFIX any23: <http://vocab.sindice.net/dataset#>
> >>>> > > SELECT DISTINCT ?node
> >>>> > > WHERE {
> >>>> > >     ?node any23:domain_uri ?domain .
> >>>> > >     ?node an:source ?edge.
> >>>> > > }
> >>>> > > and now when i run it again, i get no result :-/
> >>>> > > Does anyone know what is the problem ?
>
> >>>> > > -Soheila D.
>
> >>>> > > --
> >>>> > > You received this message because you are subscribed to the Google
> >>>> > > Groups "Sindice Developers" group.
> >>>> > > To post to this group, send email to sindi...@googlegroups.com
> >>>> > > To unsubscribe from this group, send email to
> >>>> > > sindice-dev...@googlegroups.com
> >>>> > > For more options, visit this group at
> >>>> > >http://groups.google.com/group/sindice-dev?hl=en
>
> >>>> > >http://sindice.comhttp://sig.mahttp://www.deri.ie
>
> >>>> --
> >>>> You received this message because you are subscribed to the Google
> >>>> Groups "Sindice Developers" group.
> >>>> To post to this group, send email to sindi...@googlegroups.com
> >>>> To unsubscribe from this group, send email to
> >>>> sindice-dev...@googlegroups.com

Soheila Dehghanzadeh

unread,
Mar 13, 2012, 7:04:10 PM3/13/12
to sindi...@googlegroups.com
Hi Stephane ,
thank you :-)

Reply all
Reply to author
Forward
0 new messages