SchemaWeb Directory
SchemaWeb Data Center
Home | Browse | Search | Query | Web Services | Submit a Schema | Contact | Login
SchemaWeb SOAP Web Service
Service Details
Service Name:
SchemaWeb SOAP Web Service
Technical Contact:victor@schemaweb.info
SOAP Endpoint URL:http://www.schemaweb.info/webservices/soap/SchemaWebSoap.asmx
WSDL URL:http://www.schemaweb.info/webservices/soap/SchemaWebSoap.asmx?WSDL
HTTP header:
POST /webservices/soap/SchemaWebSoap.asmx HTTP/1.1
Host: www.schemaweb.info
Content-Type: text/xml; charset="utf-8"
Content-Length: <length of HTTP request>
SOAPAction: "<SOAP Action for method>"
Methods:
GetRDF
GetRDFTriples
GetRDFNTriples
GetSchemaLocation
GetSubjects
GetObjects
GetSubClasses
GetSuperClasses
GetSubProperties
GetSuperProperties
GetDomains
GetDomainProperties
GetRanges
GetRangeProperties 
GetRDF
Description:
Returns the raw RDF/XML schema for a namespace.
If the SchemaWeb directory does not contain the schema for the requested namespace, the <rdf/> element in the SOAP response will contain "".
Request Parameters:
namespaceThe namespace of the schema.
Response:The RDF/XML schema.
SOAP Action:"http://www.schemaweb.info/webservices/methods/GetRDF"
Sample SOAP Request:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <soap:Body>
          <m:GetRDF xmlns:m="http://www.schemaweb.info/webservices/methods/">
               <t:namespace xmlns:t="http://www.schemaweb.info/2003/types/">http://purl.org/vocab/bio/0.1/</t:namespace>
          </m:GetRDF>
     </soap:Body>
</soap:Envelope>
Sample SOAP Response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <soap:Body>
          <m:GetRDFResponse xmlns:m="http://www.schemaweb.info/webservices/methods/">
               <t:rdf xmlns:t="http://www.schemaweb.info/2003/types/">
                    <!-- The RDF/XML as a string -->
               </t:rdf>
          </m:GetRDFResponse>
     </soap:Body>
</soap:Envelope>
 
GetRDFTriples
Description:
Returns the RDF triples of a schema for a namespace in XML format.
If the SchemaWeb directory does not contain the schema for the requested namespace, the <statements/> element in the SOAP response will contain "".
Request Parameters:
namespaceThe namespace of the schema.
Response:An array of triples.
SOAP Action:"http://www.schemaweb.info/webservices/methods/GetRDFTriples"
Sample SOAP Request:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <soap:Body>
          <m:GetRDFTriples xmlns:m="http://www.schemaweb.info/webservices/methods/">
               <t:namespace xmlns:t="http://www.schemaweb.info/2003/types/">http://purl.org/vocab/bio/0.1/</t:namespace>
          </m:GetRDFTriples>
     </soap:Body>
</soap:Envelope>
Sample SOAP Response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <soap:Body>
          <m:GetRDFTriplesResponse xmlns:m="http://www.schemaweb.info/webservices/methods/">
               <t:statements xmlns:t="http://www.schemaweb.info/2003/types/">
                    <t:statement>
                         <t:subject type="uri">http://purl.org/vocab/bio/0.1/</t:subject>
                         <t:predicate>http://www.w3.org/1999/02/22-rdf-syntax-ns#type</t:predicate>
                         <t:object type="uri">http://www.w3.org/2002/07/owl#Ontology</t:object>
                    </t:statement>
                    <t:statement>
                         <t:subject type="uri">http://purl.org/vocab/bio/0.1/</t:subject>
                         <t:predicate>http://purl.org/dc/elements/1.1/title</t:predicate>
                         <t:object type="literal">Biographical information vocabulary</t:object>
                    </t:statement>
               </t:statements>
          </m:GetRDFTriplesResponse>
     </soap:Body>
</soap:Envelope>
 
GetRDFNTriples
Description:
Returns the RDF triples of a schema for a namespace in N-Triples format.
If the SchemaWeb directory does not contain the schema for the requested namespace, the <n-triples/> element in the SOAP response will contain "".
Request Parameters:
namespaceThe namespace of the schema.
Response:The N-Triples.
SOAP Action:"http://www.schemaweb.info/webservices/methods/GetRDFNTriples"
Sample SOAP Request:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <soap:Body>
          <m:GetRDFNTriples xmlns:m="http://www.schemaweb.info/webservices/methods/">
               <t:namespace xmlns:t="http://www.schemaweb.info/2003/types/">http://purl.org/vocab/bio/0.1/</t:namespace>
          </m:GetRDFNTriples>
     </soap:Body>
</soap:Envelope>
Sample SOAP Response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <soap:Body>
          <m:GetRDFNTriplesResponse xmlns:m="http://www.schemaweb.info/webservices/methods/">
               <t:n-triples xmlns:t="http://www.schemaweb.info/2003/types/">
                    <!-- The N-Triples as a string -->
               </t:n-triples>
          </m:GetRDFNTriplesResponse>
     </soap:Body>
</soap:Envelope>
 
GetSchemaLocation
Description:
Returns physical URL of a schema.
If the SchemaWeb directory does not contain the schema for the requested namespace, the <location/> element in the SOAP response will contain "".
Request Parameters:
namespaceThe namespace of the schema.
Response:The location of the schema.
SOAP Action:"http://www.schemaweb.info/webservices/methods/GetSchemaLocation"
Sample SOAP Request:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <soap:Body>
          <m:GetSchemaLocation xmlns:m="http://www.schemaweb.info/webservices/methods/">
               <t:namespace xmlns:t="http://www.schemaweb.info/2003/types/">http://psi.ontopia.net/rdf/#</t:namespace>
          </m:GetSchemaLocation>
     </soap:Body>
</soap:Envelope>
Sample SOAP Response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <soap:Body>
          <m:GetSchemaLocation xmlns:m="http://www.schemaweb.info/webservices/methods/">
               <t:location xmlns:t="http://www.schemaweb.info/2003/types/">http://psi.ontopia.net/rdf/schema.rdf</t:location>
          </m:GetSchemaLocation>
     </soap:Body>
</soap:Envelope>
 
GetSubjects
Description:
Returns the subjects for a predicate and an object.
Request Parameters:
predicateThe predicate of an RDF triple.
objectThe object of an RDF triple.
Response:An array of subjects.
SOAP Action:"http://www.schemaweb.info/webservices/methods/GetSubjects"
Sample SOAP Request:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <soap:Body>
          <m:GetSubjects xmlns:m="http://www.schemaweb.info/webservices/methods/">
               <t:predicate xmlns:t="http://www.schemaweb.info/2003/types/">http://www.w3.org/2000/01/rdf-schema#domain</t:predicate>
               <t:object xmlns:t="http://www.schemaweb.info/2003/types/">http://xmlns.com/foaf/0.1/Person</t:object>
          </m:GetSubjects>
     </soap:Body>
</soap:Envelope>
Sample SOAP Response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <soap:Body>
          <m:GetSubjectsResponse xmlns:m="http://www.schemaweb.info/webservices/methods/">
               <t:subjects xmlns:t="http://www.schemaweb.info/2003/types/">
                    <t:subject type="uri">http://xmlns.com/foaf/0.1/geekcode</t:subject>
                    <t:subject type="uri">http://xmlns.com/foaf/0.1/firstName</t:subject>
               </t:subjects>
          </m:GetSubjectsResponse>
     </soap:Body>
</soap:Envelope>
 
GetObjects
Description:
Returns the objects for a subject and a predicate.
Request Parameters:
subjectThe subject of an RDF triple.
predicateThe predicate of an RDF triple.
Response:An array of objects.
SOAP Action:"http://www.schemaweb.info/webservices/methods/GetObjects"
Sample SOAP Request:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <soap:Body>
          <m:GetObjects xmlns:m="http://www.schemaweb.info/webservices/methods/">
               <t:subject xmlns:t="http://www.schemaweb.info/2003/types/">http://xmlns.com/foaf/0.1/Person</t:subject>
               <t:predicate xmlns:t="http://www.schemaweb.info/2003/types/">http://www.w3.org/2000/01/rdf-schema#subClassOf</t:predicate>
          </m:GetObjects>
     </soap:Body>
</soap:Envelope>
Sample SOAP Response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <soap:Body>
          <m:GetObjectsResponse xmlns:m="http://www.schemaweb.info/webservices/methods/">
               <t:objects xmlns:t="http://www.schemaweb.info/2003/types/">
                    <t:object type="uri">http://xmlns.com/wordnet/1.6/Person</t:object>
                    <t:object type="uri">http://xmlns.com/foaf/0.1/Agent</t:object>
                    <t:object type="uri">http://www.w3.org/2000/10/swap/pim/contact#Person</t:object>
               </t:objects>
          </m:GetObjectsResponse>
     </soap:Body>
</soap:Envelope>
 
GetSubClasses
Description:
Returns the sub-classes of a class.
Request Parameters:
classA class name.
Response:An array of classes.
SOAP Action:"http://www.schemaweb.info/webservices/methods/GetSubClasses"
Sample SOAP Request:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <soap:Body>
          <m:GetSubClasses xmlns:m="http://www.schemaweb.info/webservices/methods/">
               <t:class xmlns:t="http://www.schemaweb.info/2003/types/">http://xmlns.com/foaf/0.1/Agent</t:class>
          </m:GetSubClasses>
     </soap:Body>
</soap:Envelope>
Sample SOAP Response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <soap:Body>
          <m:GetSubClassesResponse xmlns:m="http://www.schemaweb.info/webservices/methods/">
               <t:classes xmlns:t="http://www.schemaweb.info/2003/types/">
                    <t:class type="uri">http://xmlns.com/foaf/0.1/Person</t:class>
                    <t:class type="uri">http://xmlns.com/foaf/0.1/Organization</t:class>
                    <t:class type="uri">http://xmlns.com/foaf/0.1/Group</t:class>
               </t:classes>
          </m:GetSubClassesResponse>
     </soap:Body>
</soap:Envelope>
 
GetSuperClasses
Description:
Returns the super-classes of a class.
Request Parameters:
classA class name.
Response:An array of classes.
SOAP Action:"http://www.schemaweb.info/webservices/methods/GetSuperClasses"
Sample SOAP Request:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <soap:Body>
          <m:GetSuperClasses xmlns:m="http://www.schemaweb.info/webservices/methods/">
               <t:class xmlns:t="http://www.schemaweb.info/2003/types/">http://www.mindswap.org/2003/vegetarian.owl#Vegan</t:class>
          </m:GetSuperClasses>
     </soap:Body>
</soap:Envelope>
Sample SOAP Response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <soap:Body>
          <m:GetSuperClassesResponse xmlns:m="http://www.schemaweb.info/webservices/methods/">
               <t:classes xmlns:t="http://www.schemaweb.info/2003/types/">
                    <t:class type="uri">http://www.mindswap.org/2003/vegetarian.owl#Vegetarian</t:class>
               </t:classes>
          </m:GetSuperClassesResponse>
     </soap:Body>
</soap:Envelope>
 
GetSubProperties
Description:
Returns the sub-properties of a property.
Request Parameters:
propertyA property name.
Response:An array of properties.
SOAP Action:"http://www.schemaweb.info/webservices/methods/GetSubProperties"
Sample SOAP Request:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <soap:Body>
          <m:GetSubProperties xmlns:m="http://www.schemaweb.info/webservices/methods/">
               <t:property xmlns:t="http://www.schemaweb.info/2003/types/">http://xmlns.com/foaf/0.1/knows</t:property>
          </m:GetSubProperties>
     </soap:Body>
</soap:Envelope>
Sample SOAP Response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <soap:Body>
          <m:GetSubPropertiesResponse xmlns:m="http://www.schemaweb.info/webservices/methods/">
               <t:properties xmlns:t="http://www.schemaweb.info/2003/types/">
                    <t:property type="uri">http://www.perceive.net/schemas/20021119/relationship#acquaintanceOf</t:property>
                    <t:property type="uri">http://www.perceive.net/schemas/20021119/relationship#parentOf</t:property>
               </t:properties>
          </m:GetSubPropertiesResponse>
     </soap:Body>
</soap:Envelope>
 
GetSuperProperties
Description:
Returns the super-properties of a property.
Request Parameters:
propertyA property name.
Response:An array of properties.
SOAP Action:"http://www.schemaweb.info/webservices/methods/GetSuperProperties"
Sample SOAP Request:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <soap:Body>
          <m:GetSuperProperties xmlns:m="http://www.schemaweb.info/webservices/methods/">
               <t:property xmlns:t="http://www.schemaweb.info/2003/types/">http://purl.org/net/inkel/rdf/schemas/lang/1.1#speaks</t:property>
          </m:GetSuperProperties>
     </soap:Body>
</soap:Envelope>
Sample SOAP Response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <soap:Body>
          <m:GetSuperPropertiesResponse xmlns:m="http://www.schemaweb.info/webservices/methods/">
               <t:properties xmlns:t="http://www.schemaweb.info/2003/types/">
                    <t:property type="uri">http://purl.org/dc/elements/1.1/language</t:property>
               </t:properties>
          </m:GetSuperPropertiesResponse>
     </soap:Body>
</soap:Envelope>
 
GetDomains
Description:
Returns the classes which are the domain of a property.
Request Parameters:
propertyA property name.
Response:An array of classes.
SOAP Action:"http://www.schemaweb.info/webservices/methods/GetDomains"
Sample SOAP Request:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <soap:Body>
          <m:GetDomains xmlns:m="http://www.schemaweb.info/webservices/methods/">
               <t:property xmlns:t="http://www.schemaweb.info/2003/types/">http://xmlns.com/foaf/0.1/knows</t:property>
          </m:GetDomains>
     </soap:Body>
</soap:Envelope>
Sample SOAP Response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <soap:Body>
          <m:GetDomainsResponse xmlns:m="http://www.schemaweb.info/webservices/methods/">
               <t:classes xmlns:t="http://www.schemaweb.info/2003/types/">
                    <t:class type="uri">http://xmlns.com/foaf/0.1/Person</t:class>
               </t:classes>
          </m:GetDomainsResponse>
     </soap:Body>
</soap:Envelope>
 
GetDomainProperties
Description:
For a given class, returns the properties which declare the class as a domain.
Request Parameters:
classA class name.
Response:An array of properties.
SOAP Action:"http://www.schemaweb.info/webservices/methods/GetDomainProperties"
Sample SOAP Request:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <soap:Body>
          <m:GetDomainProperties xmlns:m="http://www.schemaweb.info/webservices/methods/">
               <t:class xmlns:t="http://www.schemaweb.info/2003/types/">http://www.w3.org/2000/01/rdf-schema#Resource</t:class>
          </m:GetDomainProperties>
     </soap:Body>
</soap:Envelope>
Sample SOAP Response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <soap:Body>
          <m:GetDomainPropertiesResponse xmlns:m="http://www.schemaweb.info/webservices/methods/">
               <t:properties xmlns:t="http://www.schemaweb.info/2003/types/">
                    <t:property type="uri">http://www.w3.org/1999/02/22-rdf-syntax-ns#type</t:class>
                    <t:property type="uri">http://www.w3.org/2000/01/rdf-schema#comment</t:class>
                    <t:property type="uri">http://www.w3.org/2000/01/rdf-schema#label</t:class>
               </t:properties>
          </m:GetDomainPropertiesResponse>
     </soap:Body>
</soap:Envelope>
 
GetRanges
Description:
Returns the classes which are the range of a property.
Request Parameters:
propertyA property name.
Response:An array of classes.
SOAP Action:"http://www.schemaweb.info/webservices/methods/GetRanges"
Sample SOAP Request:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <soap:Body>
          <m:GetRanges xmlns:m="http://www.schemaweb.info/webservices/methods/">
               <t:property xmlns:t="http://www.schemaweb.info/2003/types/">http://xmlns.com/foaf/0.1/interest</t:property>
          </m:GetRanges>
     </soap:Body>
</soap:Envelope>
Sample SOAP Response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <soap:Body>
          <m:GetRangesResponse xmlns:m="http://www.schemaweb.info/webservices/methods/">
               <t:classes xmlns:t="http://www.schemaweb.info/2003/types/">
                    <t:class type="uri">http://xmlns.com/foaf/0.1/Document</t:class>
               </t:classes>
          </m:GetRangesResponse>
     </soap:Body>
</soap:Envelope>
 
GetRangeProperties
Description:
For a given class, returns the properties which declare the class as a range.
Request Parameters:
classA class name.
Response:An array of properties.
SOAP Action:"http://www.schemaweb.info/webservices/methods/GetRangeProperties"
Sample SOAP Request:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <soap:Body>
          <m:GetRangeProperties xmlns:m="http://www.schemaweb.info/webservices/methods/">
               <t:class xmlns:t="http://www.schemaweb.info/2003/types/">http://www.semanticworld.org/model/fundamental/money_0.5.owl#Currency</t:class>
          </m:GetRangeProperties>
     </soap:Body>
</soap:Envelope>
Sample SOAP Response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <soap:Body>
          <m:GetRangePropertiesResponse xmlns:m="http://www.schemaweb.info/webservices/methods/">
               <t:properties xmlns:t="http://www.schemaweb.info/2003/types/">
                    <t:property type="uri">http://www.semanticworld.org/model/fundamental/money_0.5.owl#targetCurrency</t:class>
                    <t:property type="uri">http://www.semanticworld.org/model/fundamental/money_0.5.owl#sourceCurrency</t:class>
               </t:properties>
          </m:GetRangePropertiesResponse>
     </soap:Body>
</soap:Envelope>