Hi All, I am developing a linked data web application. I have stored my data in virtuoso repository and accessing this data through Jena (a virtuoso provider). I am able to run the query (sparql 1.1) below on my data through virtuoso sparql endpoint but when I run this query through Jena, Jena query parser generates parsing error. Query is here:
PREFIX csiro:<http://au.csiro.browser#> PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#> PREFIX owl:<http://www.w3.org/2002/07/owl#> PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#> SELECT ?property ?propLabel ?range ?rangeLabel WHERE {{{<http://xmlns.com/foaf/0.1/Agent> rdfs:subClassOf+ ?res. ?res owl:onProperty ?property.} UNION {{<http://xmlns.com/foaf/0.1/Agent> rdfs:subClassOf+ ?class. ?property rdfs:domain ?class.} UNION {?property rdfs:domain <http://xmlns.com/foaf/0.1/Agent>}} } {{?res ?resProp ?range.FILTER ((?resProp = owl:allValuesFrom) || (?resProp = owl:someValuesFrom) )} UNION {?property rdfs:range ?range.}} OPTIONAL {?property rdfs:label ?propLabel.} Optional {?range rdfs:label ?rangeLabel.}} Can anyone help me finding the solution. -- Best Regards; Anila Sahar Butt
