[
https://issues.apache.org/jira/browse/RYA-83?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15799648#comment-15799648
]
ASF GitHub Bot commented on RYA-83:
-----------------------------------
GitHub user johns0806 opened a pull request:
https://github.com/apache/incubator-rya/pull/136
RYA-83-select-all-spo-query-support added capability to perform SELE…
…CT * { s? p? o? } queries.
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
## Description
Added NullRowTriplePatternStrategy.java to support queries in which the ?s
?p ?o are all null (unbound)
Also added this Strategy to RyaTripleContext default triple pattern
strategies, so that it is used.
### Tests
Performed an integration test, before the patch I wasn't able to perform
SELECT * { s? p? o? } queries, after the patch I can.
### Links
[Jira](https://issues.apache.org/jira/browse/RYA-83)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/johns0806/incubator-rya
RYA-83-select-all-spo-query-support
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-rya/pull/136.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #136
----
commit 0421e1fe0ac969200c96f17339e761166abe259f
Author: John Smith <[email protected]>
Date: 2017-01-04T22:10:14Z
RYA-83-select-all-spo-query-support added capability to perform SELECT * {
s? p? o? } queries.
----
> select * where { s? p? o? } query crashed
> -----------------------------------------
>
> Key: RYA-83
> URL: https://issues.apache.org/jira/browse/RYA-83
> Project: Rya
> Issue Type: Bug
> Environment: Accumulo 1.6.5 installed on EMR 4.6.0 (Hadoop 2.6.0)
> Reporter: Kiet Ly
> Assignee: David W. Lotts
>
> I ran this query using REST
> http://10.162.96.61:8000/web.rya/queryrdf?query=select * where { ?s ?p ?o }
> and it crashed. I just want to see the triples that I had inserted. I ran the
> query against the RYA I built from develop branch with accumulo 1.6.5.
> The error indicate this query is not supported, "select * where { ?s ?p ?o
> }".
> {code}
> java.lang.IllegalArgumentException: TriplePattern[RyaStatement{subject=null,
> predicate=null, object=null, context=null, qualifier=null,
> columnVisibility=null, value=null, timestamp=1465307441120}] not supported
>
> mvm.rya.accumulo.query.AccumuloRyaQueryEngine.queryWithBindingSet(AccumuloRyaQueryEngine.java:142)
>
> mvm.rya.accumulo.query.AccumuloRyaQueryEngine.queryWithBindingSet(AccumuloRyaQueryEngine.java:81)
> mvm.rya.api.persist.utils.RyaDAOHelper.query(RyaDAOHelper.java:122)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)