Re: [GSoC 2013] jena-spatial

2013-07-29 Thread Andy Seaborne

On 27/07/13 14:40, Ying Jiang wrote:

Hi,

The default distance units measurement is miles.  I've just committed a
major change of the codes, including the following updates:

1) Support spatial indexing of WKT literal, including Point, Polygon or any
other kinds of shapes.
2) New property functions of withinCirle, withinBox, intersectsBox,
north, south, east, west
3) Support different distance units for nearby, such as miles,
kilometers, degrees, meters and so on.
4) Examples are updated [1]. You can play with the new features of
jena-spatial.

It's almost half-way of the GSoC project. In the upcoming second half, I'll
bring more visibility of code progress to the community, at least
one report per week. Thanks to Andy for pointing it out!

[1]
https://jena-spatial.googlecode.com/svn/trunk/src/main/java/examples/JenaSpatialExample1.java


On Tue, Jul 23, 2013 at 9:37 PM, Andy Seaborne a...@apache.org wrote:


In the example query there is:

 ?s spatial:nearby (51.3000 -2.71000 100)

What units are the 100?
Can the application provide different units?

 Andy





Things are looking very good.

How does this fit with the original plan in terms of functionality 
available?



As we enter the second part of the GSoC, we need to be thinking about

* A release

That does not mean it's complete and a release needn't be a major cost 
in time. Having even one or two people try it out really helps in 
understanding what people might do with spatial indexing.


It can be a message to the users Jena mailing list announcing status of 
the project and assuming interested people will grab the source and 
compile a jar for themselves.


But, if you want to, we can do something more packaged - anything up to 
and including migrating the code to Jena SVN and putting in a Jenkins 
job to build it into Jena's snapshot maven repository that's doable.


A couple of things go with that:

* Testing

src/java/test is a bit empty :-)

* User documentation

Enough that someone can setup and use the project - short, to the point 
and now is better than long and detailed and later.  (The final 
phase of GSoC is write-up - that's needs to cover the next developers to 
come along.)


What do you think about this?

Andy



Re: [GSoC 2013] jena-spatial

2013-07-29 Thread Marco Neumann
I also would like to see a file based index while you are at it and not
just the in memory spatial lucene engine example.



On Mon, Jul 29, 2013 at 10:44 AM, Andy Seaborne a...@apache.org wrote:

 On 27/07/13 14:40, Ying Jiang wrote:

 Hi,

 The default distance units measurement is miles.  I've just committed a
 major change of the codes, including the following updates:

 1) Support spatial indexing of WKT literal, including Point, Polygon or
 any
 other kinds of shapes.
 2) New property functions of withinCirle, withinBox, intersectsBox,
 north, south, east, west
 3) Support different distance units for nearby, such as miles,
 kilometers, degrees, meters and so on.
 4) Examples are updated [1]. You can play with the new features of
 jena-spatial.

 It's almost half-way of the GSoC project. In the upcoming second half,
 I'll
 bring more visibility of code progress to the community, at least
 one report per week. Thanks to Andy for pointing it out!

 [1]
 https://jena-spatial.**googlecode.com/svn/trunk/src/**main/java/examples/
 **JenaSpatialExample1.javahttps://jena-spatial.googlecode.com/svn/trunk/src/main/java/examples/JenaSpatialExample1.java


 On Tue, Jul 23, 2013 at 9:37 PM, Andy Seaborne a...@apache.org wrote:

  In the example query there is:

  ?s spatial:nearby (51.3000 -2.71000 100)

 What units are the 100?
 Can the application provide different units?

  Andy



 Things are looking very good.

 How does this fit with the original plan in terms of functionality
 available?


 As we enter the second part of the GSoC, we need to be thinking about

 * A release

 That does not mean it's complete and a release needn't be a major cost in
 time. Having even one or two people try it out really helps in
 understanding what people might do with spatial indexing.

 It can be a message to the users Jena mailing list announcing status of
 the project and assuming interested people will grab the source and compile
 a jar for themselves.

 But, if you want to, we can do something more packaged - anything up to
 and including migrating the code to Jena SVN and putting in a Jenkins job
 to build it into Jena's snapshot maven repository that's doable.

 A couple of things go with that:

 * Testing

 src/java/test is a bit empty :-)

 * User documentation

 Enough that someone can setup and use the project - short, to the point
 and now is better than long and detailed and later.  (The final phase
 of GSoC is write-up - that's needs to cover the next developers to come
 along.)

 What do you think about this?

 Andy




-- 


---
Marco Neumann
KONA


Query regarding Jena's indexes

2013-07-29 Thread Rose Beck
Hi

I read the classic paper Efficient RDF Storage and Retrieval in Jena2.
However, from the paper I am unable to understand how GSPO, GOSP, etc
(employed within Jena TDB) indexes are stored.

Can you please give me pointers from where I can understand more about
these indexes in Jena TDB. I'll be highly thankful to you for the same.


With warm regards,
Rose


[jira] [Updated] (JENA-495) Regression in evaluation of aggregates with trailing VALUES

2013-07-29 Thread Mark Buquor (JIRA)

 [ 
https://issues.apache.org/jira/browse/JENA-495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Buquor updated JENA-495:
-

Description: 
The following query returns \{\{x, 1},{x, 2}} with 2.7.1 and 2.10.1 as expected:
 PREFIX xsd: http://www.w3.org/2001/XMLSchema#
 SELECT *
 WHERE {  }
 VALUES ?x { 1 2 }

The following query returns \{\{sum,3}} with 2.7.1. With 2.10.1, it returns no 
results.
 PREFIX xsd: http://www.w3.org/2001/XMLSchema#
 SELECT (SUM(?x) AS ?sum)
 WHERE {  }
 VALUES ?x { 1 2 }

The following query returns \{\{count,2}} with 2.7.1. With 2.10.1, it returns 
\{\{count,0},{count,0}}.
 PREFIX xsd: http://www.w3.org/2001/XMLSchema#
 SELECT (COUNT(?x) AS ?count)
 WHERE {  }
 VALUES ?x { 1 2 }

The queries work as expected with 2.10.1 if the VALUES is moved into the WHERE. 
e.g.
 PREFIX xsd: http://www.w3.org/2001/XMLSchema#
 SELECT (COUNT(?x) AS ?count)
 WHERE { VALUES ?x { 1 2 } }

  was:
The following query returns {{x, 1},{x, 2}} with 2.7.1 and 2.10.1 as expected:
 PREFIX xsd: http://www.w3.org/2001/XMLSchema#
 SELECT *
 WHERE {  }
 VALUES ?x { 1 2 }

The following query returns {{sum,3}} with 2.7.1. With 2.10.1, it returns no 
results.
 PREFIX xsd: http://www.w3.org/2001/XMLSchema#
 SELECT (SUM(?x) AS ?sum)
 WHERE {  }
 VALUES ?x { 1 2 }

The following query returns {{count,2}} with 2.7.1. With 2.10.1, it returns 
{{count,0},{count,0}}.
 PREFIX xsd: http://www.w3.org/2001/XMLSchema#
 SELECT (COUNT(?x) AS ?count)
 WHERE {  }
 VALUES ?x { 1 2 }

The queries work as expected with 2.10.1 if the VALUES is moved into the WHERE. 
e.g.
 PREFIX xsd: http://www.w3.org/2001/XMLSchema#
 SELECT (COUNT(?x) AS ?count)
 WHERE { VALUES ?x { 1 2 } }


 Regression in evaluation of aggregates with trailing VALUES
 ---

 Key: JENA-495
 URL: https://issues.apache.org/jira/browse/JENA-495
 Project: Apache Jena
  Issue Type: Bug
  Components: ARQ, Jena
Affects Versions: Jena 2.10.1
Reporter: Mark Buquor

 The following query returns \{\{x, 1},{x, 2}} with 2.7.1 and 2.10.1 as 
 expected:
  PREFIX xsd: http://www.w3.org/2001/XMLSchema#
  SELECT *
  WHERE {  }
  VALUES ?x { 1 2 }
 The following query returns \{\{sum,3}} with 2.7.1. With 2.10.1, it returns 
 no results.
  PREFIX xsd: http://www.w3.org/2001/XMLSchema#
  SELECT (SUM(?x) AS ?sum)
  WHERE {  }
  VALUES ?x { 1 2 }
 The following query returns \{\{count,2}} with 2.7.1. With 2.10.1, it returns 
 \{\{count,0},{count,0}}.
  PREFIX xsd: http://www.w3.org/2001/XMLSchema#
  SELECT (COUNT(?x) AS ?count)
  WHERE {  }
  VALUES ?x { 1 2 }
 The queries work as expected with 2.10.1 if the VALUES is moved into the 
 WHERE. e.g.
  PREFIX xsd: http://www.w3.org/2001/XMLSchema#
  SELECT (COUNT(?x) AS ?count)
  WHERE { VALUES ?x { 1 2 } }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Created] (JENA-495) Regression in evaluation of aggregates with trailing VALUES

2013-07-29 Thread Mark Buquor (JIRA)
Mark Buquor created JENA-495:


 Summary: Regression in evaluation of aggregates with trailing 
VALUES
 Key: JENA-495
 URL: https://issues.apache.org/jira/browse/JENA-495
 Project: Apache Jena
  Issue Type: Bug
  Components: ARQ, Jena
Affects Versions: Jena 2.10.1
Reporter: Mark Buquor


The following query returns {{x, 1},{x, 2}} with 2.7.1 and 2.10.1 as expected:
 PREFIX xsd: http://www.w3.org/2001/XMLSchema#
 SELECT *
 WHERE {  }
 VALUES ?x { 1 2 }

The following query returns {{sum,3}} with 2.7.1. With 2.10.1, it returns no 
results.
 PREFIX xsd: http://www.w3.org/2001/XMLSchema#
 SELECT (SUM(?x) AS ?sum)
 WHERE {  }
 VALUES ?x { 1 2 }

The following query returns {{count,2}} with 2.7.1. With 2.10.1, it returns 
{{count,0},{count,0}}.
 PREFIX xsd: http://www.w3.org/2001/XMLSchema#
 SELECT (COUNT(?x) AS ?count)
 WHERE {  }
 VALUES ?x { 1 2 }

The queries work as expected with 2.10.1 if the VALUES is moved into the WHERE. 
e.g.
 PREFIX xsd: http://www.w3.org/2001/XMLSchema#
 SELECT (COUNT(?x) AS ?count)
 WHERE { VALUES ?x { 1 2 } }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (JENA-495) Regression in evaluation of aggregates with trailing VALUES

2013-07-29 Thread Mark Buquor (JIRA)

 [ 
https://issues.apache.org/jira/browse/JENA-495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Buquor updated JENA-495:
-

Description: 
The following query returns {quote}{{x, 1},{x, 2}}{quote} with 2.7.1 and 2.10.1 
as expected:
{quote} PREFIX xsd: http://www.w3.org/2001/XMLSchema#
 SELECT *
 WHERE {  }
 VALUES ?x { 1 2 }{quote}

The following query returns {{sum,3}} with 2.7.1. With 2.10.1, it returns no 
results.
 PREFIX xsd: http://www.w3.org/2001/XMLSchema#
 SELECT (SUM(?x) AS ?sum)
 WHERE {  }
 VALUES ?x { 1 2 }

The following query returns {{count,2}} with 2.7.1. With 2.10.1, it returns 
{{count,0},{count,0}}.
 PREFIX xsd: http://www.w3.org/2001/XMLSchema#
 SELECT (COUNT(?x) AS ?count)
 WHERE {  }
 VALUES ?x { 1 2 }

The queries work as expected with 2.10.1 if the VALUES is moved into the WHERE. 
e.g.
 PREFIX xsd: http://www.w3.org/2001/XMLSchema#
 SELECT (COUNT(?x) AS ?count)
 WHERE { VALUES ?x { 1 2 } }

  was:
The following query returns \{\{x, 1},{x, 2}} with 2.7.1 and 2.10.1 as expected:
 PREFIX xsd: http://www.w3.org/2001/XMLSchema#
 SELECT *
 WHERE {  }
 VALUES ?x { 1 2 }

The following query returns \{\{sum,3}} with 2.7.1. With 2.10.1, it returns no 
results.
 PREFIX xsd: http://www.w3.org/2001/XMLSchema#
 SELECT (SUM(?x) AS ?sum)
 WHERE {  }
 VALUES ?x { 1 2 }

The following query returns \{\{count,2}} with 2.7.1. With 2.10.1, it returns 
\{\{count,0},{count,0}}.
 PREFIX xsd: http://www.w3.org/2001/XMLSchema#
 SELECT (COUNT(?x) AS ?count)
 WHERE {  }
 VALUES ?x { 1 2 }

The queries work as expected with 2.10.1 if the VALUES is moved into the WHERE. 
e.g.
 PREFIX xsd: http://www.w3.org/2001/XMLSchema#
 SELECT (COUNT(?x) AS ?count)
 WHERE { VALUES ?x { 1 2 } }


 Regression in evaluation of aggregates with trailing VALUES
 ---

 Key: JENA-495
 URL: https://issues.apache.org/jira/browse/JENA-495
 Project: Apache Jena
  Issue Type: Bug
  Components: ARQ, Jena
Affects Versions: Jena 2.10.1
Reporter: Mark Buquor

 The following query returns {quote}{{x, 1},{x, 2}}{quote} with 2.7.1 and 
 2.10.1 as expected:
 {quote} PREFIX xsd: http://www.w3.org/2001/XMLSchema#
  SELECT *
  WHERE {  }
  VALUES ?x { 1 2 }{quote}
 The following query returns {{sum,3}} with 2.7.1. With 2.10.1, it returns no 
 results.
  PREFIX xsd: http://www.w3.org/2001/XMLSchema#
  SELECT (SUM(?x) AS ?sum)
  WHERE {  }
  VALUES ?x { 1 2 }
 The following query returns {{count,2}} with 2.7.1. With 2.10.1, it returns 
 {{count,0},{count,0}}.
  PREFIX xsd: http://www.w3.org/2001/XMLSchema#
  SELECT (COUNT(?x) AS ?count)
  WHERE {  }
  VALUES ?x { 1 2 }
 The queries work as expected with 2.10.1 if the VALUES is moved into the 
 WHERE. e.g.
  PREFIX xsd: http://www.w3.org/2001/XMLSchema#
  SELECT (COUNT(?x) AS ?count)
  WHERE { VALUES ?x { 1 2 } }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (JENA-495) Regression in evaluation of aggregates with trailing VALUES

2013-07-29 Thread Mark Buquor (JIRA)

 [ 
https://issues.apache.org/jira/browse/JENA-495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Buquor updated JENA-495:
-

Description: 
{noformat}
The following query returns {{x, 1},{x, 2}} with 2.7.1 and 2.10.1 as expected:
 PREFIX xsd: http://www.w3.org/2001/XMLSchema#
 SELECT *
 WHERE {  }
 VALUES ?x { 1 2 }

The following query returns {{sum,3}} with 2.7.1. With 2.10.1, it returns no 
results.
 PREFIX xsd: http://www.w3.org/2001/XMLSchema#
 SELECT (SUM(?x) AS ?sum)
 WHERE {  }
 VALUES ?x { 1 2 }

The following query returns {{count,2}} with 2.7.1. With 2.10.1, it returns 
{{count,0},{count,0}}.
 PREFIX xsd: http://www.w3.org/2001/XMLSchema#
 SELECT (COUNT(?x) AS ?count)
 WHERE {  }
 VALUES ?x { 1 2 }

The queries work as expected with 2.10.1 if the VALUES is moved into the WHERE. 
e.g.
 PREFIX xsd: http://www.w3.org/2001/XMLSchema#
 SELECT (COUNT(?x) AS ?count)
 WHERE { VALUES ?x { 1 2 } }
{noformat}

  was:
The following query returns {quote}{{x, 1},{x, 2}}{quote} with 2.7.1 and 2.10.1 
as expected:
{quote} PREFIX xsd: http://www.w3.org/2001/XMLSchema#
 SELECT *
 WHERE {  }
 VALUES ?x { 1 2 }{quote}

The following query returns {{sum,3}} with 2.7.1. With 2.10.1, it returns no 
results.
 PREFIX xsd: http://www.w3.org/2001/XMLSchema#
 SELECT (SUM(?x) AS ?sum)
 WHERE {  }
 VALUES ?x { 1 2 }

The following query returns {{count,2}} with 2.7.1. With 2.10.1, it returns 
{{count,0},{count,0}}.
 PREFIX xsd: http://www.w3.org/2001/XMLSchema#
 SELECT (COUNT(?x) AS ?count)
 WHERE {  }
 VALUES ?x { 1 2 }

The queries work as expected with 2.10.1 if the VALUES is moved into the WHERE. 
e.g.
 PREFIX xsd: http://www.w3.org/2001/XMLSchema#
 SELECT (COUNT(?x) AS ?count)
 WHERE { VALUES ?x { 1 2 } }


 Regression in evaluation of aggregates with trailing VALUES
 ---

 Key: JENA-495
 URL: https://issues.apache.org/jira/browse/JENA-495
 Project: Apache Jena
  Issue Type: Bug
  Components: ARQ, Jena
Affects Versions: Jena 2.10.1
Reporter: Mark Buquor

 {noformat}
 The following query returns {{x, 1},{x, 2}} with 2.7.1 and 2.10.1 as expected:
  PREFIX xsd: http://www.w3.org/2001/XMLSchema#
  SELECT *
  WHERE {  }
  VALUES ?x { 1 2 }
 The following query returns {{sum,3}} with 2.7.1. With 2.10.1, it returns no 
 results.
  PREFIX xsd: http://www.w3.org/2001/XMLSchema#
  SELECT (SUM(?x) AS ?sum)
  WHERE {  }
  VALUES ?x { 1 2 }
 The following query returns {{count,2}} with 2.7.1. With 2.10.1, it returns 
 {{count,0},{count,0}}.
  PREFIX xsd: http://www.w3.org/2001/XMLSchema#
  SELECT (COUNT(?x) AS ?count)
  WHERE {  }
  VALUES ?x { 1 2 }
 The queries work as expected with 2.10.1 if the VALUES is moved into the 
 WHERE. e.g.
  PREFIX xsd: http://www.w3.org/2001/XMLSchema#
  SELECT (COUNT(?x) AS ?count)
  WHERE { VALUES ?x { 1 2 } }
 {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (JENA-495) Regression in evaluation of aggregates with trailing VALUES

2013-07-29 Thread Mark Buquor (JIRA)

[ 
https://issues.apache.org/jira/browse/JENA-495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13722866#comment-13722866
 ] 

Mark Buquor commented on JENA-495:
--

Thanks for the clarification.

 Regression in evaluation of aggregates with trailing VALUES
 ---

 Key: JENA-495
 URL: https://issues.apache.org/jira/browse/JENA-495
 Project: Apache Jena
  Issue Type: Bug
  Components: ARQ, Jena
Affects Versions: Jena 2.10.1
Reporter: Mark Buquor
Assignee: Rob Vesse

 {noformat}
 The following query returns {{x, 1},{x, 2}} with 2.7.1 and 2.10.1 as expected:
  PREFIX xsd: http://www.w3.org/2001/XMLSchema#
  SELECT *
  WHERE {  }
  VALUES ?x { 1 2 }
 The following query returns {{sum,3}} with 2.7.1. With 2.10.1, it returns no 
 results.
  PREFIX xsd: http://www.w3.org/2001/XMLSchema#
  SELECT (SUM(?x) AS ?sum)
  WHERE {  }
  VALUES ?x { 1 2 }
 The following query returns {{count,2}} with 2.7.1. With 2.10.1, it returns 
 {{count,0},{count,0}}.
  PREFIX xsd: http://www.w3.org/2001/XMLSchema#
  SELECT (COUNT(?x) AS ?count)
  WHERE {  }
  VALUES ?x { 1 2 }
 The queries work as expected with 2.10.1 if the VALUES is moved into the 
 WHERE. e.g.
  PREFIX xsd: http://www.w3.org/2001/XMLSchema#
  SELECT (COUNT(?x) AS ?count)
  WHERE { VALUES ?x { 1 2 } }
 {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira