From: Rob V. <rv...@do...> - 2013-02-05 17:49:43
|
Your query appears to use several non-standard SPARQL features that I have never encountered before. Setting the syntax to Extended only enables syntax extensions we have implemented not arbitrary extensions. RULEBASE is not a standard feature and a quick Google search didn't tell me where it comes from? Also what is the following supposed to be? <ReadTagList>( ?oref1, ?oref1ts, ?o1, ?o1Status) It looks like some sort of extended syntax (again I don't know where from) which would also be rejected? What tools/product do your SPARQL queries originate from? We implement SPARQL 1.0 and SPARQL 1.1 per the standards (and are 100% compliant with those), the extras in the extended syntax are primarily leftovers from the transitional period when the features of SPARQL 1.1 were still under development and will most likely be removed in the long term. Rob From: Madhanmohan Savadamuthu <erm...@gm...> Reply-To: dotNetRDF User Help and Support <dot...@li...> Date: Sunday, February 3, 2013 12:59 PM To: <dot...@li...> Subject: [dotNetRDF-Support] RULEBASE support in Sparql Parser > Folks, > > I have written a small program to parse SPARQL query. I want to make sure that > SPARQL syntax is correct and also want to parse out all variables. Below is > the code I used. > > SparqlQueryParser > parser = new SparqlQueryParser(); > > parser.SyntaxMode = > SparqlQuerySyntax.Extended; > > SparqlQuery q = parser.ParseFromString(txtBoxSparql.Text.Trim()); > When I pass below SPARQL query, I am getting error that 'Rulebase' is not > valid. Below is my SPARQL query. Can some one help me? > > PREFIX rdf: <http://www.w3.org/2000/01/rdf-schema#> > RULEBASE <DefaultDataBindingRules> > SELECT <http://www.abc.com/on/sam#Le> ?acLabel ?o ?oLabel ?o1 ?o1Status > ?oref1 ?oref1Label ?oref1ts FROM <DataBinding> > WHERE { > OPTIONAL {<http://www.abc.com/on/sam#Le> rdf:label ?acLabel.} > <http://www.abc.com/on/sam#Le> <http://www.abc.com/on#cc.dd> ?o. > ?o rdf:label ?oLabel. > ?o <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ?oType. > FILTER(?oType=<http://www.abc.com/on#PP_WW>). > OPTIONAL {?o <http://www.abc.com/on#ww.gg.rr> ?oref1 } > <ReadTagList>( ?oref1, ?oref1ts, ?o1, ?o1Status). > } > order by asc( ?o1) > > > > > -- > Thanks and Regards, > Madhanmohan S > ------------------------------------------------------------------------------ > Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before > the end March 2013 and get the hardware for free! Learn more. > http://p.sf.net/sfu/sophos-d2d-feb____________________________________________ > ___ dotNetRDF-Support mailing list dot...@li... > https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support |