[
https://issues.apache.org/jira/browse/MARMOTTA-617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14908025#comment-14908025
]
Dietmar Glachs commented on MARMOTTA-617:
-----------------------------------------
with version 3.4.0-SNAPSHOT the query works in both modes (native & memory).
However, the query result is slightly different:
in "native" mode, result of the above
{code:xml}
{
"head" : {
"vars" : [ "uri", "title", "children" ]
},
"results" : {
"bindings" : [ {
"uri" : {
"type" : "uri",
"value" : "http://host/resource/vocabulary/SKOSVocabulary"
},
"children" : {
"type" : "literal",
"value" : "TRUE"
}
} ]
}
}
{code}
while in "memory" mode, the result is properly reported
{code:xml}
{
"head" : {
"vars" : [ "uri", "title", "children" ]
},
"results" : {
"bindings" : [ {
"uri" : {
"type" : "uri",
"value" :
"http://www.eagle-learning.eu/resource/vocabulary/ProcessMapGermany"
},
"children" : {
"datatype" : "http://www.w3.org/2001/XMLSchema#boolean",
"type" : "literal",
"value" : "true"
}
} ]
}
}
{code}
Cause: In SQLBuilder, the method
{code:java}
protected ValueType getProjectionType(ValueExpr expr)
{code}
does not check the Exists node type! added the check to SQLBuilder!
> SPARQL-command with "native" sparql.strategy setting fails
> ----------------------------------------------------------
>
> Key: MARMOTTA-617
> URL: https://issues.apache.org/jira/browse/MARMOTTA-617
> Project: Marmotta
> Issue Type: Bug
> Components: KiWi Triple Store
> Affects Versions: 3.3.0
> Reporter: Dietmar Glachs
>
> The following SPARQL-Command fails when using the configuration setting
> {{native}} for {{sparql.strategy}}:
> {code}
> SELECT DISTINCT ?uri ?title ?children {
> GRAPH <http://host/context/graph> {
> ?uri a <http://www.w3.org/2004/02/skos/core#ConceptScheme> .
> OPTIONAL {
> ?uri <http://www.w3.org/2000/01/rdf-schema#label> ?title .
> FILTER (lang(?title) = 'en')
> }
> BIND ( EXISTS { ?uri <http://www.w3.org/2004/02/skos/core#hasTopConcept>
> ?_top } AS ?children )
> }
> }
> {code}
> when using {{sparql.strategy=memory}} the query works!
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)