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


GeoSparql example?

2023-12-01 Thread Claude Warren
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