You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stanbol.apache.org by Dileepa Jayakody <di...@gmail.com> on 2015/07/22 07:49:52 UTC
Some questions about ldpath queries on entityhub
Hi All,
I've been recently working on LDPath retrieval of entities from entityhub
to retrieve entities with a defined set of attributes.
I came across this issue where no response is given to direct ldpath query
on entityhub/ldpath endpoint.
eg:
curl -X POST -d
"context=http://dbpedia.org/resource/Paris&ldpath=name%20%3D%20rdfs%3Alabel%5B%40en%5D%3B"
http://localhost:8080/entityhub/ldpath
Above request gives an empty result.
But when I send the same request to
http://localhost:8080/entityhub/site/dbpedia/ldpath endpoint it gives
the desired result :
{
"@id": "http://dbpedia.org/resource/Paris",
"name": {
"@language": "en",
"@value": "Paris"
}
Is this an expected behavior with entityhub ldpath? Do we always need
to give the site?
Thanks,
Dileepa
Re: Some questions about ldpath queries on entityhub
Posted by Dileepa Jayakody <di...@gmail.com>.
Thanks Rupert for the clarification.
On Tue, Jul 28, 2015 at 5:03 PM, Rupert Westenthaler <
rupert.westenthaler@gmail.com> wrote:
> Hi,
>
>
> "http://localhost:8080/entityhub/ldpath" is the entityhub. The
> entityhub endpoint is NOT an union over all sites. If you want to send
> an LDPath to all sites you need to send it to
> "http://localhost:8080/entityhub/sites/ldpath"
>
> on a side note:
>
> If you retrieve LDPath results as RDF it is recommended to use full
> URIs as some RDF parsers do not like relative URIs. Because of that
> LDPath programs like
>
> name = rdfs:label[@en];
>
> can be problematic. Better to use full URIs instead e.g.
>
>
> schema:name = rdfs:label[@en];
>
>
> best
> Rupert
>
>
> On Wed, Jul 22, 2015 at 7:49 AM, Dileepa Jayakody
> <di...@gmail.com> wrote:
> > Hi All,
> >
> > I've been recently working on LDPath retrieval of entities from entityhub
> > to retrieve entities with a defined set of attributes.
> > I came across this issue where no response is given to direct ldpath
> query
> > on entityhub/ldpath endpoint.
> >
> > eg:
> >
> > curl -X POST -d
> > "context=
> http://dbpedia.org/resource/Paris&ldpath=name%20%3D%20rdfs%3Alabel%5B%40en%5D%3B
> "
> > http://localhost:8080/entityhub/ldpath
> >
> > Above request gives an empty result.
> >
> > But when I send the same request to
> > http://localhost:8080/entityhub/site/dbpedia/ldpath endpoint it gives
> > the desired result :
> >
> > {
> > "@id": "http://dbpedia.org/resource/Paris",
> > "name": {
> > "@language": "en",
> > "@value": "Paris"
> > }
> >
> > Is this an expected behavior with entityhub ldpath? Do we always need
> > to give the site?
> >
> > Thanks,
> > Dileepa
>
>
>
> --
> | Rupert Westenthaler rupert.westenthaler@gmail.com
> | Bodenlehenstraße 11 ++43-699-11108907
> | A-5500 Bischofshofen
> | REDLINK.CO
> ..........................................................................
> | http://redlink.co/
>
Re: Some questions about ldpath queries on entityhub
Posted by Rupert Westenthaler <ru...@gmail.com>.
Hi,
"http://localhost:8080/entityhub/ldpath" is the entityhub. The
entityhub endpoint is NOT an union over all sites. If you want to send
an LDPath to all sites you need to send it to
"http://localhost:8080/entityhub/sites/ldpath"
on a side note:
If you retrieve LDPath results as RDF it is recommended to use full
URIs as some RDF parsers do not like relative URIs. Because of that
LDPath programs like
name = rdfs:label[@en];
can be problematic. Better to use full URIs instead e.g.
schema:name = rdfs:label[@en];
best
Rupert
On Wed, Jul 22, 2015 at 7:49 AM, Dileepa Jayakody
<di...@gmail.com> wrote:
> Hi All,
>
> I've been recently working on LDPath retrieval of entities from entityhub
> to retrieve entities with a defined set of attributes.
> I came across this issue where no response is given to direct ldpath query
> on entityhub/ldpath endpoint.
>
> eg:
>
> curl -X POST -d
> "context=http://dbpedia.org/resource/Paris&ldpath=name%20%3D%20rdfs%3Alabel%5B%40en%5D%3B"
> http://localhost:8080/entityhub/ldpath
>
> Above request gives an empty result.
>
> But when I send the same request to
> http://localhost:8080/entityhub/site/dbpedia/ldpath endpoint it gives
> the desired result :
>
> {
> "@id": "http://dbpedia.org/resource/Paris",
> "name": {
> "@language": "en",
> "@value": "Paris"
> }
>
> Is this an expected behavior with entityhub ldpath? Do we always need
> to give the site?
>
> Thanks,
> Dileepa
--
| Rupert Westenthaler rupert.westenthaler@gmail.com
| Bodenlehenstraße 11 ++43-699-11108907
| A-5500 Bischofshofen
| REDLINK.CO ..........................................................................
| http://redlink.co/