Search Engine, Semantic Web, RDF, Resource Description Framework, Semantic Web Search, RDF Search, RSS, FOAF, RDFS, OWL, RSS Search, FOAF Search

Semantic Web Search A Search Engine for the Semantic Web (BETA) Powered by Intellidimension RDF Gateway

Web Service Documentation

Your intelligent software agents interact with Semantic Web Search via a simple web service that is based on the HTTP protocol. Our service is comprised of several methods each one associated with its own URL. Your agents call a method by sending a HTTP GET request to the method's URL with its arguments (if any) encoded as URL query string parameters.

Our service will process the request by executing the method on one of our servers and return the result of the method in the HTTP response. The HTTP status code of the response will indicate the success or failure of the method. A HTTP status code of 200 indicates the method call was successful and the return value (if any) is in the response body. A HTTP status code of 400 indicates the method call failed and the response body contains detailed error information. All information in the response body is described using RDF and by default is encoded using RDF/XML.

The table below lists the web service methods currently supported by Semantic Web Search.

MethodDescription
Query Queries our Semantic Web Index for the documents on the Internet that contain the information described by the query condition.
Submit Submits a URL of a RDF document to be added to our Semantic Web Index.

SWS Library

If you are developing a Semantic Web agent using RDF Gateway then you can make use of the object-oriented interface in the SWS Library to access our service.

 

Query Method: http://www.semanticwebsearch.com/webapi/query

This method is called by your software agents to locate documents on the Internet that contain information you need. This method will query our Semantic Web Index for documents that contain information described by a specified query condition. The URLs, along with some additional metadata, for any documents matching the query condition are returned to your agents. You can also obtain the concise bounded description of any resources within the documents matching the query (see parameter: match).

Click here to access the human user interface to this method.

Note, any resource descriptions are returned from our cache and may differ from the resource descriptions currently available at their original source. We are not affiliated with the authors of the cached resource description nor responsible for their content.

Parameters

Parameter:q
Usage:Required (single value)
Description: A condition expressed in RDFQL, the language of RDF Gateway, that must be met for each document included in the results. Refer to the Query Condition Reference for details on writing query conditions.
Example:{[rdf:type] ?i [rss:item]} and {[rss:description] ?i ?d} and ?d like 'google microsoft yahoo'
Parameter:match
Usage:Optional (single value)
Description: This parameter is used to obtain the concise bounded descriptions of the resources matched by the query. This parameter can be used in one of two ways. The value of this parameter can be set to the name of the subject variable from the query condition. In this usage, the concise bounded descriptions for all the resources with a URI matching the bound value of that variable when the query is executed on the document are returned.

The value ?i is specified for the query condition {[rdf:type] ?i [rss:item]} and like 'microsoft' to return the concise bounded descriptions for all matching resources.

Alternatively, this parameter can be set to the URI of the specific resource that you want a concise bounded description of. The URI must be enclosed in sqaure braces ([http://www.semanticwebsearch.com/]).

In either case, the concise bounded descriptions are returned as an XML literal value in the app:matches property of the app:Document resource in the response.

Parameter:domain
Usage:Optional (multiple values)
Description:Document must come from the domain(s) specified to be included in the result. If not specified, all domains are allowed in the result.
Example:www.example.org
Parameter:doc
Usage:Optional (single values)
Description: Restricts the query to the specified document.
Example:http://kwark.org/XML/foaf-famous.rdf
 
Parameter:format
Usage:Optional (multiple values)
Description:Document must be of the format(s) specified to be included in the result. If not specified, all formats are allowed in the result.

Valid values:
  • http://www.intellidimension.com/namespaces/rdffind/Format_RDFXML
  • http://www.intellidimension.com/namespaces/rdffind/Format_N3
  • http://www.intellidimension.com/namespaces/rdffind/Format_NTriples
  • http://www.intellidimension.com/namespaces/rdffind/Format_HTML
Example:http://www.intellidimension.com/namespaces/rdffind/Format_RDFXML
 
Parameter:maxdate
Usage:Optional (single value)
Description:Document must have last change date before the specified date to be included in the result. If not specified, there is no maximum date. The date must be specified in W3C date format.
Example:2003-12-1T12:00:00Z
 
Parameter:mindate
Usage:Optional (single value)
Description:Document must have last change date after the specified date to be included in the result. If not specified, there is no minimum date. The date must be specified in W3C date format.
Example:2003-12-1T12:00:00Z
 
Parameter:rf
Usage:Optional (single value)
Description:The format in which results will be returned (including error results).

Valid values:
  • RDFXML (default)
  • N3
  • NTriples
 
Parameter:ps
Usage:Optional (single value)
Description:The number of results returned per page. The default is 10.
Example:50
 
Parameter:continue
Usage:Optional (single value)
Description: Specifies a page token that can be used to retrieve result pages beyond the first. If a query matches more documents than are allowed in single result page (see Parameter: ps) then a page token is returned as part of the result. On the next call to this method, all other parameters are set to the same values and this parameter is set to the page token to get next page of documents that the query matched.

Return

A successful call with return zero or more resources of type http://www.intellidimension.com/namespaces/rdffind/Document. The URI of each resource is the URL of the document that contains the information that was specified in the query. The following table details the metadata that is returned for each document.

Property *Description
cacheDateThe date the document last changed in the cache.
formatThe format of the source document.

Possible values include:
  • http://www.intellidimension.com/namespaces/rdffind/Format_RDFXML
  • http://www.intellidimension.com/namespaces/rdffind/Format_N3
  • http://www.intellidimension.com/namespaces/rdffind/Format_NTriples
rankThe rank of the document - the higher the number the higher the rank (i.e. the more documents that reference it in some manner).
sizeThe size in bytes of the document.
tripleCountThe number of triples in the document.
matches The concise bounded description for a resource in the document that was matched in the query. Each resource description is specified as a separate property value that is encoded as a XML Literal (rdf:parseType="Literal").
*All properties in namespace: http://www.intellidimension.com/namespaces/rdffind/

If the query matches more documents than specified by page size parameter (see Parameter: ps) then no more than that number of documents are returned in the response. In this case an additional resource http://www.intellidimension.com/namespaces/rdffind/Cookie is included in the response. The value of its http://www.intellidimension.com/namespaces/rdffind/continue property is a page token. An agent can call this method again using all the same parameter values along with the page token (see Parameter: continue) to get the next page of documents matched by the query.

Sample Return <?xml version="1.0"?> <rdf:RDF xmlns:app="http://www.intellidimension.com/namespaces/rdffind/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="http://www.w3.org/1999/02/22-rdf-syntax-ns"> <app:cacheDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2004-01-25T02:33:05Z</app:cacheDate> <app:format rdf:resource="http://www.intellidimension.com/namespaces/rdffind/Format_RDFXML"/> <app:matches rdf:parseType="Literal"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"> <rdf:Description rdf:about="http://www.w3.org/1999/02/22-rdf-syntax-ns#subject"> <rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/> <rdfs:comment>Identifies the resource that a statement is describing when representing the statement in reified form</rdfs:comment> <rdfs:domain rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement"/> </rdf:Description> </rdf:RDF> </app:matches> <app:rank rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">105776</app:rank> <app:size rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1568</app:size> <app:tripleCount rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">23</app:tripleCount> </rdf:Description> </rdf:RDF>
 

Submit Method: http://www.semanticwebsearch.com/webapi/submit

Software agents can call this method to submit the URL of a RDF document to our service. The URL will be added to our regular crawling of the Internet and all of the information in the document will be added to our Semantic Web Index. The URLs of any referenced documents will also be crawled and indexed. Once a URL is crawled the information in the document can be located by calling the Query method. The Submit URL page offers a human user interface to this method.

Parameters

Parameter:url
Usage: Required (single value)
Description: The URL of a RDF document to be submitted to Semantic Web Search.
Example: http://www.semanticwebsearch.com/news/news.rdf
 

Errors

The HTTP status code of the response will indicate the success or failure of a method. If a method call fails then the HTTP status code of the response is set to 400 and a structured error is returned in the response body using RDF. By default the response body if formatted using RDF/XML. The structured error is a single resource of type http://www.intellidimension.com/namespaces/rdffind/Error with properties http://www.intellidimension.com/namespaces/rdffind/number and http://www.intellidimension.com/namespaces/rdffind/description (see example below).

Sample Error <?xml version="1.0"?> <rdf:RDF xmlns:app="http://www.intellidimension.com/namespaces/rdffind/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description> <app:description>Malformed query</app:description> <app:number rdf:datatype="http://www.w3.org/2000/10/XMLSchema#nonNegativeInteger">50004</app:number> <rdf:type rdf:resource="http://www.intellidimension.com/namespaces/rdffind/Error"/> </rdf:Description> </rdf:RDF>
The following table describes the errors codes for Semantic Web Search.
Error NumberDescription
50000No Results.
50001Invalid Parameter.
50002Required parameter not supplied.
50003Too many parameter values supplied.
50004Malformed query.
50005Query is too unconstrained.
50006Request Failed.
Copyright 2004-2007 Intellidimension  -  Report a Problem  -  Terms of Service