You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by manoj deshpande <ma...@gmail.com> on 2020/04/26 23:10:02 UTC
regd: geosparql query
Hello all,
Jena Fuseki shows successful storage of values with
datatype GEO["wktLiteral"] in screenshot1 , But when using it in sparql
endpoint shows different format. Please suggest me regarding this.
Stores in right format : <x:> <http://www.opengis.net/ont/geosparql#asWKT
>
"POLYGON(())"^^<
http://www.opengis.net/ont/geosparql#wktLiteral> .
When I execute query :
*SELECT ?s ?p ?oFROM <http://project/base/default1
<http://project/base/default1>>WHERE { ?s ?p ?o}*
It produces results as shown below.
s
p
o
1
<x:>
geo:asWKT <http://www.opengis.net/ont/geosparql#asWKT>
"POLYGON(())"^^
Thank you,
Manoj
Re: regd: geosparql query
Posted by Lorenz Buehmann <bu...@informatik.uni-leipzig.de>.
Not sure what exactly you're asking here. Maybe that's the point where
you should start with your whole use-case and workflow?
Otherwise, starting Fuseki with GeoSPARQL support is documented in the
first part of the docs:
https://jena.apache.org/documentation/geosparql/geosparql-fuseki
So why can't you start Fuseki from command line like explained there and
then use SPARQL HTTP protocol from within your Python code?
On 03.05.20 17:47, manoj deshpande wrote:
> Hello, Thank you for the clarification.
>
> I have another query, may be it is very simple question. I am sorry for
> asking this. To run fuseki as an embedded server, is it only possible by
> Java application ?? I am using python , so how that can be done?
>
> as in the documentation they have addressed it as
>
> "Run within a Java application to provide GeoSPARQL support over HTTP to
> other applications:"
>
> Thanks in advance,
>
> Manoj
>
> On Sat, May 2, 2020 at 12:46 PM Greg Albiston <ga...@mail.com> wrote:
>
>> Using GeoSPARQL with Fuseki requires using GeoSPARQL Fuseki module,
>> which runs Fuseki as an embedded server and has no GUI support. Please
>> see documentation at:
>> https://jena.apache.org/documentation/geosparql/geosparql-fuseki
>>
>> I don't think the mailing list supports images so it's unclear what you
>> issue might be.
>>
>> On 28/04/2020 14:47, manoj deshpande wrote:
>>> Thank you for the response. I am happy that literals are getting
>>> stored with datatype. Now I am trying to check the spatial
>>> relations and I get empty results for "geo:sfEquals" filter function
>>> for two simple literals. ["LINESTRING (0 0, 0 10)" and "LINESTRING (0
>>> 0, 0 5, 0 10)" which are spatially equal ] . Attached are the
>>> screenshots for the same issue. Please suggest me regarding this.
>>>
>>> Thanks,
>>> Manoj
>>>
>>> On Tue, Apr 28, 2020 at 2:04 PM Andy Seaborne <andy@apache.org
>>> <ma...@apache.org>> wrote:
>>>
>>> The raw response shows the datatype is there. It is just the display
>>> not putting it on the screen.
>>>
>>> On 27/04/2020 00:10, manoj deshpande wrote:
>>> > Hello all,
>>> >
>>> > Jena Fuseki shows successful storage of values with
>>> > datatype GEO["wktLiteral"] in screenshot1 , But when using it in
>>> sparql
>>> > endpoint shows different format. Please suggest me regarding this.
>>> >
>>> > Stores in right format : <x:>
>>> > <http://www.opengis.net/ont/geosparql#asWKT>
>>> >
>>> > "POLYGON(())"^^<http://www.opengis.net/ont/geosparql#wktLiteral> .
>>> >
>>> > When I execute query :
>>> > *SELECT ?s ?p ?o
>>> > FROM <http://project/base/default1>
>>> > WHERE {
>>> > ?s ?p ?o
>>> > }
>>> > *
>>> >
>>> > It produces results as shown below.
>>> >
>>> > s
>>> > p
>>> > o
>>> > 1
>>> > <x:>
>>> >
>>> > geo:asWKT <http://www.opengis.net/ont/geosparql#asWKT>
>>> >
>>> > "POLYGON(())"^^
>>> >
>>> >
>>> > Thank you,
>>> > Manoj
>>>
Re: regd: geosparql query
Posted by manoj deshpande <ma...@gmail.com>.
Hello, Thank you for the clarification.
I have another query, may be it is very simple question. I am sorry for
asking this. To run fuseki as an embedded server, is it only possible by
Java application ?? I am using python , so how that can be done?
as in the documentation they have addressed it as
"Run within a Java application to provide GeoSPARQL support over HTTP to
other applications:"
Thanks in advance,
Manoj
On Sat, May 2, 2020 at 12:46 PM Greg Albiston <ga...@mail.com> wrote:
> Using GeoSPARQL with Fuseki requires using GeoSPARQL Fuseki module,
> which runs Fuseki as an embedded server and has no GUI support. Please
> see documentation at:
> https://jena.apache.org/documentation/geosparql/geosparql-fuseki
>
> I don't think the mailing list supports images so it's unclear what you
> issue might be.
>
> On 28/04/2020 14:47, manoj deshpande wrote:
> > Thank you for the response. I am happy that literals are getting
> > stored with datatype. Now I am trying to check the spatial
> > relations and I get empty results for "geo:sfEquals" filter function
> > for two simple literals. ["LINESTRING (0 0, 0 10)" and "LINESTRING (0
> > 0, 0 5, 0 10)" which are spatially equal ] . Attached are the
> > screenshots for the same issue. Please suggest me regarding this.
> >
> > Thanks,
> > Manoj
> >
> > On Tue, Apr 28, 2020 at 2:04 PM Andy Seaborne <andy@apache.org
> > <ma...@apache.org>> wrote:
> >
> > The raw response shows the datatype is there. It is just the display
> > not putting it on the screen.
> >
> > On 27/04/2020 00:10, manoj deshpande wrote:
> > > Hello all,
> > >
> > > Jena Fuseki shows successful storage of values with
> > > datatype GEO["wktLiteral"] in screenshot1 , But when using it in
> > sparql
> > > endpoint shows different format. Please suggest me regarding this.
> > >
> > > Stores in right format : <x:>
> > > <http://www.opengis.net/ont/geosparql#asWKT>
> > >
> > > "POLYGON(())"^^<http://www.opengis.net/ont/geosparql#wktLiteral> .
> > >
> > > When I execute query :
> > > *SELECT ?s ?p ?o
> > > FROM <http://project/base/default1>
> > > WHERE {
> > > ?s ?p ?o
> > > }
> > > *
> > >
> > > It produces results as shown below.
> > >
> > > s
> > > p
> > > o
> > > 1
> > > <x:>
> > >
> > > geo:asWKT <http://www.opengis.net/ont/geosparql#asWKT>
> > >
> > > "POLYGON(())"^^
> > >
> > >
> > > Thank you,
> > > Manoj
> >
>
Re: regd: geosparql query
Posted by Greg Albiston <ga...@mail.com>.
Using GeoSPARQL with Fuseki requires using GeoSPARQL Fuseki module,
which runs Fuseki as an embedded server and has no GUI support. Please
see documentation at:
https://jena.apache.org/documentation/geosparql/geosparql-fuseki
I don't think the mailing list supports images so it's unclear what you
issue might be.
On 28/04/2020 14:47, manoj deshpande wrote:
> Thank you for the response. I am happy that literals are getting
> stored with datatype. Now I am trying to check the spatial
> relations and I get empty results for "geo:sfEquals" filter function
> for two simple literals. ["LINESTRING (0 0, 0 10)" and "LINESTRING (0
> 0, 0 5, 0 10)" which are spatially equal ] . Attached are the
> screenshots for the same issue. Please suggest me regarding this.
>
> Thanks,
> Manoj
>
> On Tue, Apr 28, 2020 at 2:04 PM Andy Seaborne <andy@apache.org
> <ma...@apache.org>> wrote:
>
> The raw response shows the datatype is there. It is just the display
> not putting it on the screen.
>
> On 27/04/2020 00:10, manoj deshpande wrote:
> > Hello all,
> >
> > Jena Fuseki shows successful storage of values with
> > datatype GEO["wktLiteral"] in screenshot1 , But when using it in
> sparql
> > endpoint shows different format. Please suggest me regarding this.
> >
> > Stores in right format : <x:>
> > <http://www.opengis.net/ont/geosparql#asWKT>
> >
> > "POLYGON(())"^^<http://www.opengis.net/ont/geosparql#wktLiteral> .
> >
> > When I execute query :
> > *SELECT ?s ?p ?o
> > FROM <http://project/base/default1>
> > WHERE {
> > ?s ?p ?o
> > }
> > *
> >
> > It produces results as shown below.
> >
> > s
> > p
> > o
> > 1
> > <x:>
> >
> > geo:asWKT <http://www.opengis.net/ont/geosparql#asWKT>
> >
> > "POLYGON(())"^^
> >
> >
> > Thank you,
> > Manoj
>
Re: regd: geosparql query
Posted by manoj deshpande <ma...@gmail.com>.
Thank you for the response. I am happy that literals are getting stored
with datatype. Now I am trying to check the spatial relations and I get
empty results for "geo:sfEquals" filter function for two simple literals.
["LINESTRING (0 0, 0 10)" and "LINESTRING (0 0, 0 5, 0 10)" which are
spatially equal ] . Attached are the screenshots for the same issue. Please
suggest me regarding this.
Thanks,
Manoj
On Tue, Apr 28, 2020 at 2:04 PM Andy Seaborne <an...@apache.org> wrote:
> The raw response shows the datatype is there. It is just the display
> not putting it on the screen.
>
> On 27/04/2020 00:10, manoj deshpande wrote:
> > Hello all,
> >
> > Jena Fuseki shows successful storage of values with
> > datatype GEO["wktLiteral"] in screenshot1 , But when using it in sparql
> > endpoint shows different format. Please suggest me regarding this.
> >
> > Stores in right format : <x:>
> > <http://www.opengis.net/ont/geosparql#asWKT>
> >
> > "POLYGON(())"^^<http://www.opengis.net/ont/geosparql#wktLiteral> .
> >
> > When I execute query :
> > *SELECT ?s ?p ?o
> > FROM <http://project/base/default1>
> > WHERE {
> > ?s ?p ?o
> > }
> > *
> >
> > It produces results as shown below.
> >
> > s
> > p
> > o
> > 1
> > <x:>
> >
> > geo:asWKT <http://www.opengis.net/ont/geosparql#asWKT>
> >
> > "POLYGON(())"^^
> >
> >
> > Thank you,
> > Manoj
>
Re: regd: geosparql query
Posted by Andy Seaborne <an...@apache.org>.
The raw response shows the datatype is there. It is just the display
not putting it on the screen.
On 27/04/2020 00:10, manoj deshpande wrote:
> Hello all,
>
> Jena Fuseki shows successful storage of values with
> datatype GEO["wktLiteral"] in screenshot1 , But when using it in sparql
> endpoint shows different format. Please suggest me regarding this.
>
> Stores in right format : <x:>
> <http://www.opengis.net/ont/geosparql#asWKT>
>
> "POLYGON(())"^^<http://www.opengis.net/ont/geosparql#wktLiteral> .
>
> When I execute query :
> *SELECT ?s ?p ?o
> FROM <http://project/base/default1>
> WHERE {
> ?s ?p ?o
> }
> *
>
> It produces results as shown below.
>
> s
> p
> o
> 1
> <x:>
>
> geo:asWKT <http://www.opengis.net/ont/geosparql#asWKT>
>
> "POLYGON(())"^^
>
>
> Thank you,
> Manoj