Re: GeoSparql example?

2023-12-29 Thread Claude Warren
I ended up using a different form of the query.  I might have to revisit
the question to see if I can make it more performant, but I did get a
working solution.

On Sat, Dec 2, 2023 at 3:20 PM Marco Neumann 
wrote:

> Did that spatial SPARQL query work for you Claude?
>
> Marco
>
> On Fri, Dec 1, 2023 at 8:08 PM Claude Warren  wrote:
>
> > can you give me an example of a query?
> >
> > On Fri, Dec 1, 2023, 19:14 Marco Neumann 
> wrote:
> >
> > > just go ahead you are almost there
> > >
> > >  wkt:asWKT "Polygon (( -5.5 -5.5, -4.5 -5.5, -4.5 -4.5, -5.5 -4.5, -5.5
> > > -5.5  ))"^^wkt:wktLiteral
> > >
> > > same with the LINESTRING
> > >
> > > Marco
> > >
> > > On Fri, Dec 1, 2023 at 6:03 PM Claude Warren  wrote:
> > >
> > > > I am playing with GeoSparql for the fist time and I am trying to find
> > an
> > > > example of how to format the data.
> > > >
> > > > I have a polygon:
> > > > POLYGON ((-5.5 -5.5, -4.5 -5.5, -4.5 -4.5, -5.5 -4.5, -5.5 -5.5))
> > > >
> > > > and a linestring:
> > > > LINESTRING (-1 -3, -1 -2)
> > > >
> > > > Using the jena-geosparql module what is the SPARQL insert statement
> to
> > > > place the polygon into a model or dataset?
> > > >
> > > > Once the polygon is in, what is the query that will do the equivalent
> > of
> > > > the jst Geometry.iswithinDistance between  the Linestring and the
> > > Polygon?
> > > >
> > > > Thanks,
> > > > Claude
> > > >
> > > > --
> > > > LinkedIn: http://www.linkedin.com/in/claudewarren
> > > >
> > >
> > >
> > > --
> > >
> > >
> > > ---
> > > Marco Neumann
> > >
> >
>
>
> --
>
>
> ---
> Marco Neumann
>


-- 
LinkedIn: http://www.linkedin.com/in/claudewarren


Re: GeoSparql example?

2023-12-02 Thread Marco Neumann
Did that spatial SPARQL query work for you Claude?

Marco

On Fri, Dec 1, 2023 at 8:08 PM Claude Warren  wrote:

> can you give me an example of a query?
>
> On Fri, Dec 1, 2023, 19:14 Marco Neumann  wrote:
>
> > just go ahead you are almost there
> >
> >  wkt:asWKT "Polygon (( -5.5 -5.5, -4.5 -5.5, -4.5 -4.5, -5.5 -4.5, -5.5
> > -5.5  ))"^^wkt:wktLiteral
> >
> > same with the LINESTRING
> >
> > Marco
> >
> > On Fri, Dec 1, 2023 at 6:03 PM Claude Warren  wrote:
> >
> > > I am playing with GeoSparql for the fist time and I am trying to find
> an
> > > example of how to format the data.
> > >
> > > I have a polygon:
> > > POLYGON ((-5.5 -5.5, -4.5 -5.5, -4.5 -4.5, -5.5 -4.5, -5.5 -5.5))
> > >
> > > and a linestring:
> > > LINESTRING (-1 -3, -1 -2)
> > >
> > > Using the jena-geosparql module what is the SPARQL insert statement to
> > > place the polygon into a model or dataset?
> > >
> > > Once the polygon is in, what is the query that will do the equivalent
> of
> > > the jst Geometry.iswithinDistance between  the Linestring and the
> > Polygon?
> > >
> > > Thanks,
> > > Claude
> > >
> > > --
> > > LinkedIn: http://www.linkedin.com/in/claudewarren
> > >
> >
> >
> > --
> >
> >
> > ---
> > Marco Neumann
> >
>


-- 


---
Marco Neumann


Re: GeoSparql example?

2023-12-02 Thread Marco Neumann
Discreet Global Grid System?

Let's discuss this separately to see if we can get Apache Jena GeoSPARQL up
to GeoSPARQL 1.1 conformance in the near future. Maybe there are already
some contributions in the community that could be integrated into the
Apache project.

Marco

On Sat, Dec 2, 2023 at 12:55 PM Nicholas Car  wrote:

> Well no other system that we know of offers GeoSPARQL 1.1 support either
> as the new version really is very new!
>
> Most of the examples in that documentation are fine for GeoSPARQL 1.0 as
> part of the update was just to make better documentation.
>
> I don’t think it will be hard for Jena to support the majority of
> GeoSPARQL 1.1. The hard bit is DGGS and that is called out as a separate
> conformance class for that reason. Most of the additions are minor: things
> like ensuring full Simple Features spatial relations calculations work.
>
> Nick
>
> On Sat, Dec 2, 2023 at 6:58 pm, Marco Neumann <[marco.neum...@gmail.com
> ](mailto:On Sat, Dec 2, 2023 at 6:58 pm, Marco Neumann < wrote:
>
> > Nick, we only support GeoSPARQL 1.0 at this point in time in the Jena
> > project with some extensions that predate the OGC effort.
> >
> > Marco
> >
> > On Sat, Dec 2, 2023 at 4:36 AM Nicholas Car  wrote:
> >
> >> GeoSPARQL 1.1 is now approved by the OGC and its specification document
> >> contains many more examples than GeoSPARQL 1.0:
> >>
> >> https://opengeospatial.github.io/ogc-geosparql/geosparql11/spec.html
> >>
> >> Nick
> >>
> >>
> >>
> >> On Saturday, 2 December 2023 at 6:39 AM, Marco Neumann <
> >> marco.neum...@gmail.com> wrote:
> >>
> >>
> >> > PREFIX spatial:http://jena.apache.org/spatial#
> >> >
> >> > PREFIX units: http://www.opengis.net/def/uom/OGC/1.0/
> >> >
> >> >
> >> > SELECT *
> >> > WHERE{
> >> > ?object spatial:nearby(5 5 10 units:kilometer).
> >> > }
> >> >
> >> > On Fri, Dec 1, 2023 at 8:08 PM Claude Warren cla...@xenei.com wrote:
> >> >
> >> > > can you give me an example of a query?
> >> > >
> >> > > On Fri, Dec 1, 2023, 19:14 Marco Neumann marco.neum...@gmail.com
> >> wrote:
> >> > >
> >> > > > just go ahead you are almost there
> >> > > >
> >> > > > wkt:asWKT "Polygon (( -5.5 -5.5, -4.5 -5.5, -4.5 -4.5, -5.5 -4.5,
> >> -5.5
> >> > > > -5.5 ))"^^wkt:wktLiteral
> >> > > >
> >> > > > same with the LINESTRING
> >> > > >
> >> > > > Marco
> >> > > >
> >> > > > On Fri, Dec 1, 2023 at 6:03 PM Claude Warren cla...@xenei.com
> wrote:
> >> > > >
> >> > > > > I am playing with GeoSparql for the fist time and I am trying to
> >> find
> >> > > > > an
> >> > > > > example of how to format the data.
> >> > > > >
> >> > > > > I have a polygon:
> >> > > > > POLYGON ((-5.5 -5.5, -4.5 -5.5, -4.5 -4.5, -5.5 -4.5, -5.5
> -5.5))
> >> > > > >
> >> > > > > and a linestring:
> >> > > > > LINESTRING (-1 -3, -1 -2)
> >> > > > >
> >> > > > > Using the jena-geosparql module what is the SPARQL insert
> >> statement to
> >> > > > > place the polygon into a model or dataset?
> >> > > > >
> >> > > > > Once the polygon is in, what is the query that will do the
> >> equivalent
> >> > > > > of
> >> > > > > the jst Geometry.iswithinDistance between the Linestring and the
> >> > > > > Polygon?
> >> > > > >
> >> > > > > Thanks,
> >> > > > > Claude
> >> > > > >
> >> > > > > --
> >> > > > > LinkedIn: http://www.linkedin.com/in/claudewarren
> >> > > >
> >> > > > --
> >> > > >
> >> > > > ---
> >> > > > Marco Neumann
> >> >
> >> >
> >> >
> >> > --
> >> >
> >> >
> >> > ---
> >> > Marco Neumann
> >>
> >
> > --
> >
> > ---
> > Marco Neumann



-- 


---
Marco Neumann


Re: GeoSparql example?

2023-12-02 Thread Nicholas Car
Well no other system that we know of offers GeoSPARQL 1.1 support either as the 
new version really is very new!

Most of the examples in that documentation are fine for GeoSPARQL 1.0 as part 
of the update was just to make better documentation.

I don’t think it will be hard for Jena to support the majority of GeoSPARQL 
1.1. The hard bit is DGGS and that is called out as a separate conformance 
class for that reason. Most of the additions are minor: things like ensuring 
full Simple Features spatial relations calculations work.

Nick

On Sat, Dec 2, 2023 at 6:58 pm, Marco Neumann 
<[marco.neum...@gmail.com](mailto:On Sat, Dec 2, 2023 at 6:58 pm, Marco Neumann 
< wrote:

> Nick, we only support GeoSPARQL 1.0 at this point in time in the Jena
> project with some extensions that predate the OGC effort.
>
> Marco
>
> On Sat, Dec 2, 2023 at 4:36 AM Nicholas Car  wrote:
>
>> GeoSPARQL 1.1 is now approved by the OGC and its specification document
>> contains many more examples than GeoSPARQL 1.0:
>>
>> https://opengeospatial.github.io/ogc-geosparql/geosparql11/spec.html
>>
>> Nick
>>
>>
>>
>> On Saturday, 2 December 2023 at 6:39 AM, Marco Neumann <
>> marco.neum...@gmail.com> wrote:
>>
>>
>> > PREFIX spatial:http://jena.apache.org/spatial#
>> >
>> > PREFIX units: http://www.opengis.net/def/uom/OGC/1.0/
>> >
>> >
>> > SELECT *
>> > WHERE{
>> > ?object spatial:nearby(5 5 10 units:kilometer).
>> > }
>> >
>> > On Fri, Dec 1, 2023 at 8:08 PM Claude Warren cla...@xenei.com wrote:
>> >
>> > > can you give me an example of a query?
>> > >
>> > > On Fri, Dec 1, 2023, 19:14 Marco Neumann marco.neum...@gmail.com
>> wrote:
>> > >
>> > > > just go ahead you are almost there
>> > > >
>> > > > wkt:asWKT "Polygon (( -5.5 -5.5, -4.5 -5.5, -4.5 -4.5, -5.5 -4.5,
>> -5.5
>> > > > -5.5 ))"^^wkt:wktLiteral
>> > > >
>> > > > same with the LINESTRING
>> > > >
>> > > > Marco
>> > > >
>> > > > On Fri, Dec 1, 2023 at 6:03 PM Claude Warren cla...@xenei.com wrote:
>> > > >
>> > > > > I am playing with GeoSparql for the fist time and I am trying to
>> find
>> > > > > an
>> > > > > example of how to format the data.
>> > > > >
>> > > > > I have a polygon:
>> > > > > POLYGON ((-5.5 -5.5, -4.5 -5.5, -4.5 -4.5, -5.5 -4.5, -5.5 -5.5))
>> > > > >
>> > > > > and a linestring:
>> > > > > LINESTRING (-1 -3, -1 -2)
>> > > > >
>> > > > > Using the jena-geosparql module what is the SPARQL insert
>> statement to
>> > > > > place the polygon into a model or dataset?
>> > > > >
>> > > > > Once the polygon is in, what is the query that will do the
>> equivalent
>> > > > > of
>> > > > > the jst Geometry.iswithinDistance between the Linestring and the
>> > > > > Polygon?
>> > > > >
>> > > > > Thanks,
>> > > > > Claude
>> > > > >
>> > > > > --
>> > > > > LinkedIn: http://www.linkedin.com/in/claudewarren
>> > > >
>> > > > --
>> > > >
>> > > > ---
>> > > > Marco Neumann
>> >
>> >
>> >
>> > --
>> >
>> >
>> > ---
>> > Marco Neumann
>>
>
> --
>
> ---
> Marco Neumann

Re: GeoSparql example?

2023-12-02 Thread Marco Neumann
Nick, we only support GeoSPARQL 1.0 at this point in time in the Jena
project with some extensions that predate the OGC effort.

Marco



On Sat, Dec 2, 2023 at 4:36 AM Nicholas Car  wrote:

> GeoSPARQL 1.1 is now approved by the OGC and its specification document
> contains many more examples than GeoSPARQL 1.0:
>
> https://opengeospatial.github.io/ogc-geosparql/geosparql11/spec.html
>
> Nick
>
>
>
> On Saturday, 2 December 2023 at 6:39 AM, Marco Neumann <
> marco.neum...@gmail.com> wrote:
>
>
> > PREFIX spatial:http://jena.apache.org/spatial#
> >
> > PREFIX units: http://www.opengis.net/def/uom/OGC/1.0/
> >
> >
> > SELECT *
> > WHERE{
> > ?object spatial:nearby(5 5 10 units:kilometer).
> > }
> >
> > On Fri, Dec 1, 2023 at 8:08 PM Claude Warren cla...@xenei.com wrote:
> >
> > > can you give me an example of a query?
> > >
> > > On Fri, Dec 1, 2023, 19:14 Marco Neumann marco.neum...@gmail.com
> wrote:
> > >
> > > > just go ahead you are almost there
> > > >
> > > > wkt:asWKT "Polygon (( -5.5 -5.5, -4.5 -5.5, -4.5 -4.5, -5.5 -4.5,
> -5.5
> > > > -5.5 ))"^^wkt:wktLiteral
> > > >
> > > > same with the LINESTRING
> > > >
> > > > Marco
> > > >
> > > > On Fri, Dec 1, 2023 at 6:03 PM Claude Warren cla...@xenei.com wrote:
> > > >
> > > > > I am playing with GeoSparql for the fist time and I am trying to
> find
> > > > > an
> > > > > example of how to format the data.
> > > > >
> > > > > I have a polygon:
> > > > > POLYGON ((-5.5 -5.5, -4.5 -5.5, -4.5 -4.5, -5.5 -4.5, -5.5 -5.5))
> > > > >
> > > > > and a linestring:
> > > > > LINESTRING (-1 -3, -1 -2)
> > > > >
> > > > > Using the jena-geosparql module what is the SPARQL insert
> statement to
> > > > > place the polygon into a model or dataset?
> > > > >
> > > > > Once the polygon is in, what is the query that will do the
> equivalent
> > > > > of
> > > > > the jst Geometry.iswithinDistance between the Linestring and the
> > > > > Polygon?
> > > > >
> > > > > Thanks,
> > > > > Claude
> > > > >
> > > > > --
> > > > > LinkedIn: http://www.linkedin.com/in/claudewarren
> > > >
> > > > --
> > > >
> > > > ---
> > > > Marco Neumann
> >
> >
> >
> > --
> >
> >
> > ---
> > Marco Neumann
>


-- 


---
Marco Neumann


Re: GeoSparql example?

2023-12-01 Thread Nicholas Car
GeoSPARQL 1.1 is now approved by the OGC and its specification document 
contains many more examples than GeoSPARQL 1.0:

https://opengeospatial.github.io/ogc-geosparql/geosparql11/spec.html

Nick



On Saturday, 2 December 2023 at 6:39 AM, Marco Neumann 
 wrote:


> PREFIX spatial:http://jena.apache.org/spatial#
> 
> PREFIX units: http://www.opengis.net/def/uom/OGC/1.0/
> 
> 
> SELECT *
> WHERE{
> ?object spatial:nearby(5 5 10 units:kilometer).
> }
> 
> On Fri, Dec 1, 2023 at 8:08 PM Claude Warren cla...@xenei.com wrote:
> 
> > can you give me an example of a query?
> > 
> > On Fri, Dec 1, 2023, 19:14 Marco Neumann marco.neum...@gmail.com wrote:
> > 
> > > just go ahead you are almost there
> > > 
> > > wkt:asWKT "Polygon (( -5.5 -5.5, -4.5 -5.5, -4.5 -4.5, -5.5 -4.5, -5.5
> > > -5.5 ))"^^wkt:wktLiteral
> > > 
> > > same with the LINESTRING
> > > 
> > > Marco
> > > 
> > > On Fri, Dec 1, 2023 at 6:03 PM Claude Warren cla...@xenei.com wrote:
> > > 
> > > > I am playing with GeoSparql for the fist time and I am trying to find
> > > > an
> > > > example of how to format the data.
> > > > 
> > > > I have a polygon:
> > > > POLYGON ((-5.5 -5.5, -4.5 -5.5, -4.5 -4.5, -5.5 -4.5, -5.5 -5.5))
> > > > 
> > > > and a linestring:
> > > > LINESTRING (-1 -3, -1 -2)
> > > > 
> > > > Using the jena-geosparql module what is the SPARQL insert statement to
> > > > place the polygon into a model or dataset?
> > > > 
> > > > Once the polygon is in, what is the query that will do the equivalent
> > > > of
> > > > the jst Geometry.iswithinDistance between the Linestring and the
> > > > Polygon?
> > > > 
> > > > Thanks,
> > > > Claude
> > > > 
> > > > --
> > > > LinkedIn: http://www.linkedin.com/in/claudewarren
> > > 
> > > --
> > > 
> > > ---
> > > Marco Neumann
> 
> 
> 
> --
> 
> 
> ---
> Marco Neumann


Re: GeoSparql example?

2023-12-01 Thread Marco Neumann
PREFIX spatial:
PREFIX units: 

SELECT *
WHERE{
 ?object spatial:nearby(5 5 10 units:kilometer).
}

On Fri, Dec 1, 2023 at 8:08 PM Claude Warren  wrote:

> can you give me an example of a query?
>
> On Fri, Dec 1, 2023, 19:14 Marco Neumann  wrote:
>
> > just go ahead you are almost there
> >
> >  wkt:asWKT "Polygon (( -5.5 -5.5, -4.5 -5.5, -4.5 -4.5, -5.5 -4.5, -5.5
> > -5.5  ))"^^wkt:wktLiteral
> >
> > same with the LINESTRING
> >
> > Marco
> >
> > On Fri, Dec 1, 2023 at 6:03 PM Claude Warren  wrote:
> >
> > > I am playing with GeoSparql for the fist time and I am trying to find
> an
> > > example of how to format the data.
> > >
> > > I have a polygon:
> > > POLYGON ((-5.5 -5.5, -4.5 -5.5, -4.5 -4.5, -5.5 -4.5, -5.5 -5.5))
> > >
> > > and a linestring:
> > > LINESTRING (-1 -3, -1 -2)
> > >
> > > Using the jena-geosparql module what is the SPARQL insert statement to
> > > place the polygon into a model or dataset?
> > >
> > > Once the polygon is in, what is the query that will do the equivalent
> of
> > > the jst Geometry.iswithinDistance between  the Linestring and the
> > Polygon?
> > >
> > > Thanks,
> > > Claude
> > >
> > > --
> > > LinkedIn: http://www.linkedin.com/in/claudewarren
> > >
> >
> >
> > --
> >
> >
> > ---
> > Marco Neumann
> >
>


-- 


---
Marco Neumann


Re: GeoSparql example?

2023-12-01 Thread Claude Warren
can you give me an example of a query?

On Fri, Dec 1, 2023, 19:14 Marco Neumann  wrote:

> just go ahead you are almost there
>
>  wkt:asWKT "Polygon (( -5.5 -5.5, -4.5 -5.5, -4.5 -4.5, -5.5 -4.5, -5.5
> -5.5  ))"^^wkt:wktLiteral
>
> same with the LINESTRING
>
> Marco
>
> On Fri, Dec 1, 2023 at 6:03 PM Claude Warren  wrote:
>
> > I am playing with GeoSparql for the fist time and I am trying to find an
> > example of how to format the data.
> >
> > I have a polygon:
> > POLYGON ((-5.5 -5.5, -4.5 -5.5, -4.5 -4.5, -5.5 -4.5, -5.5 -5.5))
> >
> > and a linestring:
> > LINESTRING (-1 -3, -1 -2)
> >
> > Using the jena-geosparql module what is the SPARQL insert statement to
> > place the polygon into a model or dataset?
> >
> > Once the polygon is in, what is the query that will do the equivalent of
> > the jst Geometry.iswithinDistance between  the Linestring and the
> Polygon?
> >
> > Thanks,
> > Claude
> >
> > --
> > LinkedIn: http://www.linkedin.com/in/claudewarren
> >
>
>
> --
>
>
> ---
> Marco Neumann
>


Re: GeoSparql example?

2023-12-01 Thread Marco Neumann
just go ahead you are almost there

 wkt:asWKT "Polygon (( -5.5 -5.5, -4.5 -5.5, -4.5 -4.5, -5.5 -4.5, -5.5
-5.5  ))"^^wkt:wktLiteral

same with the LINESTRING

Marco

On Fri, Dec 1, 2023 at 6:03 PM Claude Warren  wrote:

> I am playing with GeoSparql for the fist time and I am trying to find an
> example of how to format the data.
>
> I have a polygon:
> POLYGON ((-5.5 -5.5, -4.5 -5.5, -4.5 -4.5, -5.5 -4.5, -5.5 -5.5))
>
> and a linestring:
> LINESTRING (-1 -3, -1 -2)
>
> Using the jena-geosparql module what is the SPARQL insert statement to
> place the polygon into a model or dataset?
>
> Once the polygon is in, what is the query that will do the equivalent of
> the jst Geometry.iswithinDistance between  the Linestring and the Polygon?
>
> Thanks,
> Claude
>
> --
> LinkedIn: http://www.linkedin.com/in/claudewarren
>


-- 


---
Marco Neumann