- From: Jonathan Marsh via cvs-syncmail <cvsmail@w3.org>
- Date: Sat, 18 Nov 2006 11:39:09 +0000
- To: public-ws-desc-eds@w3.org
Update of /sources/public/2002/ws/desc/test-suite/documents/good/SparqlQuerySimplified-1G In directory hutz:/tmp/cvs-serv2949/test-suite/documents/good/SparqlQuerySimplified-1G Added Files: rdf.xsd sparql-protocol-query.filename TestMetadata.xml result2.xsd sparql-protocol-query.wsdl Log Message: Added SparqlQuerySimplified-1G --- NEW FILE: sparql-protocol-query.filename --- <filename>SparqlQuerySimplified-1G/sparql-protocol-query.wsdl</filename> --- NEW FILE: sparql-protocol-query.wsdl --- <?xml version="1.0" encoding="utf-8"?> <!-- $Id: sparql-protocol-query.wsdl,v 1.1 2006/11/18 11:39:07 jonathanMarsh Exp $ --> <description xmlns="http://www.w3.org/2006/01/wsdl" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:whttp="http://www.w3.org/2006/01/wsdl/http" xmlns:st="http://www.w3.org/2005/09/sparql-protocol-types/#" xmlns:wsoap="http://www.w3.org/2006/01/wsdl/soap" xmlns:wsdlx="http://www.w3.org/2006/01/wsdl-extensions" xmlns:tns="http://www.w3.org/2005/08/sparql-protocol-query/#" targetNamespace="http://www.w3.org/2005/08/sparql-protocol-query/#"> <documentation> This document describes the SPARQL Protocol for RDF as a web service with one interface, SparqlQuery, containing one operation, query; as welll as HTTP and SOAP bindings of that interface. See http://www.w3.org/2001/sw/DataAccess/proto-wd/ for the SPARQL Protocol for RDF specification. </documentation> <!-- type imports --> <types> <!-- the SPARQL XML Results Format namespace --> <xs:import namespace="http://www.w3.org/2005/sparql-results#" schemaLocation="result2.xsd" /> <xs:schema version="$Id: sparql-protocol-query.wsdl,v 1.1 2006/11/18 11:39:07 jonathanMarsh Exp $" targetNamespace="http://www.w3.org/2005/09/sparql-protocol-types/#" xmlns:st="http://www.w3.org/2005/09/sparql-protocol-types/#" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:vbr="http://www.w3.org/2005/sparql-results#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <xs:import namespace="http://www.w3.org/2005/sparql-results#" schemaLocation="result2.xsd" /> <xs:import namespace="http://www.w3.org/1999/02/22-rdf-syntax-ns#" schemaLocation="rdf.xsd" /> <xs:element name="query-request"> <xs:complexType> <xs:sequence> <xs:element minOccurs="1" maxOccurs="1" name="query" type="xs:string"> <xs:annotation> <xs:documentation> query is an xs:string constrained by the language definition, http://www.w3.org/TR/rdf-sparql-query/#grammar, as "a sequence of characters in the language defined by the [SPARQL] grammar, starting with the Query production" </xs:documentation> </xs:annotation> </xs:element> <xs:element minOccurs="0" maxOccurs="unbounded" name="default-graph-uri" type="xs:anyURI" /> <xs:element minOccurs="0" maxOccurs="unbounded" name="named-graph-uri" type="xs:anyURI" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="query-result"> <xs:annotation> <xs:documentation> The type for serializing query results, either as XML or RDF/XML. </xs:documentation> </xs:annotation> <xs:complexType> <xs:choice> <xs:element maxOccurs="1" ref="vbr:sparql" /> <xs:element maxOccurs="1" ref="rdf:RDF" /> </xs:choice> </xs:complexType> </xs:element> <xs:element type="xs:string" name="fault-details"> <xs:annotation> <xs:documentation> This element contains human-readable information about the fault returned by the SPARQL query processing service. </xs:documentation> </xs:annotation> </xs:element> <xs:element name="malformed-query"> <xs:complexType> <xs:all> <xs:element minOccurs="0" maxOccurs="1" ref="st:fault-details" /> </xs:all> </xs:complexType> </xs:element> <xs:element name="query-request-refused"> <xs:complexType> <xs:all> <xs:element minOccurs="0" maxOccurs="1" ref="st:fault-details" /> </xs:all> </xs:complexType> </xs:element> </xs:schema> </types> <!-- Abstract SparqlQuery Interface --> <interface name="SparqlQuery" styleDefault="http://www.w3.org/2006/01/wsdl/style/iri"> <!-- the Interface Faults --> <fault name="MalformedQuery" element="st:malformed-query" /> <fault name="QueryRequestRefused" element="st:query-request-refused" /> <!-- the Interface Operation --> <operation name="query" pattern="http://www.w3.org/2006/01/wsdl/in-out"> <documentation> The operation is used to convey queries and their results from clients to services and back again. </documentation> <input messageLabel="In" element="st:query-request" /> <output messageLabel="Out" element="st:query-result" /> <!-- the interface faults are out faults --> <outfault ref="tns:MalformedQuery" messageLabel="Out" /> <outfault ref="tns:QueryRequestRefused" messageLabel="Out" /> </operation> </interface> <!-- the HTTP GET binding for query operation --> <binding name="queryHttpGet" interface="tns:SparqlQuery" type="http://www.w3.org/2006/01/wsdl/http" whttp:version="1.1"> <fault ref="tns:MalformedQuery" whttp:code="400" /> <fault ref="tns:QueryRequestRefused" whttp:code="500" /> <operation ref="tns:query" whttp:method="GET" whttp:faultSerialization="*/*" whttp:inputSerialization="application/x-www-form-urlencoded" whttp:outputSerialization="application/sparql-results+xml, application/rdf+xml, */*" /> </binding> <!-- the HTTP POST binding for query operation --> <binding name="queryHttpPost" interface="tns:SparqlQuery" type="http://www.w3.org/2006/01/wsdl/http" whttp:version="1.1"> <fault ref="tns:MalformedQuery" whttp:code="400" /> <fault ref="tns:QueryRequestRefused" whttp:code="500" /> <operation ref="tns:query" whttp:method="POST" whttp:faultSerialization="*/*" whttp:inputSerialization="application/x-www-form-urlencoded, application/xml" whttp:outputSerialization="application/sparql-results+xml, application/rdf+xml, */*" /> </binding> <!-- the SOAP 1.2 binding (HTTP is underlying protocol; POST is the method.) --> <binding name="querySoap" interface="tns:SparqlQuery" type="http://www.w3.org/2006/01/wsdl/soap" wsoap:version="1.2" wsoap:protocol="http://www.w3.org/2003/05/soap/bindings/HTTP/"> <fault ref="tns:MalformedQuery" wsoap:code="soap:Sender" /> <fault ref="tns:QueryRequestRefused" wsoap:code="soap:Sender" /> <operation ref="tns:query" wsoap:mep="http://www.w3.org/2003/05/soap/mep/request-response" /> </binding> </description> --- NEW FILE: rdf.xsd --- <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.w3.org/1999/02/22-rdf-syntax-ns#" version="$Id: rdf.xsd,v 1.1 2006/11/18 11:39:06 jonathanMarsh Exp $"> <!-- http://www.w3.org/TR/rdf-syntax-grammar/ --> <!-- "Define" rdf:RDF --> <xs:element name="RDF" type="xs:anyType"> <xs:annotation> <xs:documentation xml:lang="en"> The content of the root RDF element must be valid RDF/XML as defined in the RDF/XML Syntax Specification (Revised): http://www.w3.org/TR/rdf-syntax-grammar/ </xs:documentation> </xs:annotation> </xs:element> </xs:schema> --- NEW FILE: TestMetadata.xml --- <?xml version="1.0"?> <TestMetadata xmlns="http://www.w3.org/2006/02/wsdl/TestMetadata"> <Identifier> http://dev.w3.org/cvsweb/2002/ws/desc/test-suite/documents/good/SparqlQuerySimplified-1G </Identifier> <Title>Good Document SparqlQuerySimplified-1G</Title> <Purpose></Purpose> <Description> This WSDL collapses the import of sparql-protocol-types.xsd in SparqlQuery-1G to enable generation of a baseline file that can be used both by this testcase, and SparqlQuery-1G. </Description> <Status>accepted</Status> <SpecRef></SpecRef> <Preconditions>none</Preconditions> <Inputs> <Input role="root">sparql-protocol-query.wsdl</Input> </Inputs> <ExpectedResults> <Successful>true</Successful> </ExpectedResults> <Version>1.0</Version> <Contributor> <Name>RDF Data Access Working Group</Name> <Affiliation>W3C</Affiliation> <EMail>public-rdf-dawg-comments@w3.org</EMail> </Contributor> <Rights> http://www.w3.org/Consortium/Legal/2002/copyright-documents-20021231 </Rights> <Grouping>/documents/good</Grouping> <SeeAlso> <Reference>http://www.w3.org/TR/wsdl20</Reference> <Reference>http://www.w3.org/TR/rdf-sparql-protocol</Reference> </SeeAlso> </TestMetadata> --- NEW FILE: result2.xsd --- <?xml version="1.0" encoding="UTF-8"?> <!-- RELAX NG Schema for SPARQL Query Results XML Format This XML schema is normative. $Id: result2.xsd,v 1.1 2006/11/18 11:39:07 jonathanMarsh Exp $ --> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.w3.org/2005/sparql-results#" xmlns:res="http://www.w3.org/2005/sparql-results#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd" /> <xs:attributeGroup name="xmlLang"> <xs:attribute ref="xml:lang" use="required" /> </xs:attributeGroup> <!-- Using xsi namespaced terms such as xsi:schemaLocation is tricky. as Relax requires them to be given when used. However, WXS has this knowledge built in and validators complain when they are explicitly listed without a schemaLocation (which is forbidden by the WXS spec).. --> <xs:element name="sparql"> <xs:complexType> <xs:sequence> <xs:element ref="res:head" /> <xs:choice> <xs:element ref="res:results" /> <xs:element ref="res:boolean" /> </xs:choice> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="head"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" ref="res:variable" /> <xs:element minOccurs="0" maxOccurs="unbounded" ref="res:link" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="variable"> <xs:complexType> <xs:attributeGroup ref="res:nameAttr" /> </xs:complexType> </xs:element> <xs:attributeGroup name="nameAttr"> <xs:attribute name="name" use="required" type="xs:NMTOKEN" /> </xs:attributeGroup> <xs:attributeGroup name="hrefAttr"> <xs:attribute name="href" use="required" type="res:URI-reference" /> </xs:attributeGroup> <xs:element name="link"> <xs:complexType> <xs:attributeGroup ref="res:hrefAttr" /> </xs:complexType> </xs:element> <xs:attributeGroup name="ordered"> <xs:attribute name="ordered" use="required" type="xs:boolean" /> </xs:attributeGroup> <xs:attributeGroup name="distinct"> <xs:attribute name="distinct" use="required" type="xs:boolean" /> </xs:attributeGroup> <xs:element name="results"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" ref="res:result" /> </xs:sequence> <xs:attributeGroup ref="res:ordered" /> <xs:attributeGroup ref="res:distinct" /> </xs:complexType> </xs:element> <!-- ASK --> <xs:element name="boolean" type="xs:boolean" /> <!-- SELECT solution, single match or row --> <xs:element name="result"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" ref="res:binding" /> </xs:sequence> <xs:attribute name="index" type="xs:positiveInteger" /> </xs:complexType> </xs:element> <!-- SELECT binding in a solution --> <xs:element name="binding"> <xs:complexType> <xs:choice> <xs:element ref="res:uri" /> <xs:element ref="res:bnode" /> <xs:element ref="res:literal" /> </xs:choice> <xs:attributeGroup ref="res:nameAttr" /> </xs:complexType> </xs:element> <xs:element name="uri" type="xs:string" /> <xs:element name="bnode" type="xs:string" /> <xs:element name="literal"> <xs:complexType mixed="true"> <xs:attribute name="datatype" type="res:URI-reference" /> <xs:attribute ref="xml:lang" /> </xs:complexType> </xs:element> <xs:attributeGroup name="indexAttr"> <xs:attribute name="index" use="required" type="xs:positiveInteger" /> </xs:attributeGroup> <xs:attributeGroup name="datatypeAttr"> <xs:attribute name="datatype" use="required" type="res:URI-reference" /> </xs:attributeGroup> <xs:simpleType name="URI-reference"> <xs:restriction base="xs:anyURI" /> </xs:simpleType> </xs:schema>
Received on Saturday, 18 November 2006 11:39:17 UTC