/usr/bin/java -cp . inkling.app.DifferentSyntaxes syntaxes test Converting to different syntaxes - see Eric Prud'hommeaux's work at http://www.w3.org/2001/11/13-RDF-Query-Rules/ URL file:queries/nt/ericp.nt trying to read queries/nt/ericp.nt QUERY _:service . _:service _:port . _:port _:binding . _:binding _:bindingName . ALGAE Can you have more than one graph? what does it look like? As it stands cannot pick variables, have shortened namespaces, as well as not handling optional variables, constraints etc etc. ALGAE version: (ask '(file:rdf/19-annotated-RDF-WSDL.rdf (http://www.w3.org/1999/02/22-rdf-syntax-ns#type ?service http://schemas.xmlsoap.org/wsdl/service (http://schemas.xmlsoap.org/wsdl/hasPort ?service ?port) (http://schemas.xmlsoap.org/wsdl/binding ?port ?binding) (http://schemas.xmlsoap.org/wsdl/name ?binding ?bindingName)) collect '(?service ?port ?binding ?bindingName)) saving to ericp.algae N3: This conversion does not do shortened namespaces or picking out the variables you want. I don't know if you can have source graph(s) in N3. N3 version: @prefix agg: . this log:forAll :service, :port, :binding, :bindingName . { :service http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://schemas.xmlsoap.org/wsdl/service . :service http://schemas.xmlsoap.org/wsdl/hasPort :port . :port http://schemas.xmlsoap.org/wsdl/binding :binding . :binding http://schemas.xmlsoap.org/wsdl/name :bindingName . } log:implies { :service a agg:QlAnswer . . :port a agg:QlAnswer . . :binding a agg:QlAnswer . . :bindingName a agg:QlAnswer . } . saving to ericp.n3 Inkling: This conversion does not do shortened namespaces or picking out the variables you want. INKLING version: SELECT ?service, ?port, ?binding, ?bindingName FROM file:rdf/19-annotated-RDF-WSDL.rdf WHERE (http://www.w3.org/1999/02/22-rdf-syntax-ns#type ?service http://schemas.xmlsoap.org/wsdl/service (http://schemas.xmlsoap.org/wsdl/hasPort ?service ?port) (http://schemas.xmlsoap.org/wsdl/binding ?port ?binding) (http://schemas.xmlsoap.org/wsdl/name ?binding ?bindingName) saving to ericp.squish RuleML: This conversion does not do shortened namespaces or picking out the variables you want. Talking to Harold Boley, the syntax, while acceptable, can be done better. RuleML version: <_body> <_opr><_opr> service <_opr><_opr> service port <_opr><_opr> port binding <_opr><_opr> binding bindingName saving to ericp.ruleml DQL: Uses more up to date version of the syntax: http://www.ksl.stanford.edu/projects/dql/syntax.shtml (from sandro). http://www.daml.org/2002/08/dql/dql - can omit premise. Not sure: if we can have more than one KB; if can do xxx, xox, xoo, oox. DQL: Uses more up to date version of the syntax: http://www.ksl.stanford.edu/projects/dql/syntax.shtml (from sandro). http://www.daml.org/2002/08/dql/dql - can omit premise. Not sure: if we can have more than one KB; if can do xxx, xox, xoo, oox. DQL version: saving to ericp.dql