incubator-clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hasan (JIRA)" <>
Subject [jira] Created: (CLEREZZA-15) Sparql query serialization error
Date Thu, 10 Dec 2009 18:08:18 GMT
Sparql query serialization error

                 Key: CLEREZZA-15
             Project: Clerezza
          Issue Type: Bug
            Reporter: Hasan

The following query after being parsed generates an error when serialized

PREFIX owl: <> 
PREFIX rdfs: <> 
PREFIX skos: <> 
CONSTRUCT {?concept a skos:Concept; skos:prefLabel ?prefLabel; rdfs:comment ?comment; owl:sameAs
?sameConcept .} 
WHERE { ?concept skos:inScheme <http://localhost:8080/concept-scheme/default>; skos:prefLabel
?prefLabel . 
OPTIONAL { ?concept skos:altLabel ?altLabel; rdfs:comment ?comment; owl:sameAs ?sameConcept
. } 
FILTER (STR(?prefLabel) = 'Linux' || STR(?altLabel) = 'Linux')}

=> error generated:

java.lang.ClassCastException: org.apache.clerezza.rdf.core.sparql.query.impl.SimpleBasicGraphPattern
cannot be cast to org.apache.clerezza.rdf.core.sparql.query.GroupGraphPattern
	at org.apache.clerezza.rdf.core.sparql.query.impl.SimpleStringQuerySerializer.appendQueryPattern(
	at org.apache.clerezza.rdf.core.sparql.query.impl.SimpleStringQuerySerializer.appendWhere(
	at org.apache.clerezza.rdf.core.sparql.query.impl.SimpleStringQuerySerializer.serialize(

affected bundle: org.apache.clerezza.rdf.core

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message