- Home
- OSF
- conStruct
- structWSF
- Download
- Installation Guide
- Overview
- Global structWSF Statistics
- Architecture
- Datasets & Access
- Endpoints Access
- structXML
- Web Services Tutorial
- Individual WS Documentation
- WS: Auth Registrar: Access
- WS: Auth Registrar: WS
- WS: Auth: Lister
- WS: Auth: Validator
- WS: Ontology: Create
- WS: Dataset: Create
- WS: Dataset: Read
- WS: Dataset: Update
- WS: Dataset: Delete
- WS: CRUD: Create
- WS: CRUD: Read
- WS: CRUD: Update
- WS: CRUD: Delete
- WS: Search
- WS: Browse
- WS: Converter: irJSON
- WS: SPARQL
- WS: Converter: BibTeX
- WS: Converter: TSV
- Resources
- sComponent
- irON
- Developers
Overview & Background
structWSF is a platform-independent Web services framework for accessing and exposing structured RDF data. Its central organizing perspective is that of the dataset. These datasets contain instance records, with the structural relationships amongst the data and their attributes and concepts defined via ontologies (schema with accompanying vocabularies).
The structWSF middleware framework is generally RESTful in design and is based on HTTP and Web protocols and open standards. The initial structWSF framework comes packaged with a baseline set of about a dozen Web services in CRUD, browse, search and export and import. All Web services are exposed via APIs and SPARQL endpoints. Each request to an individual Web service returns an HTTP status and optionally a document of resultsets. Each results document can be serialized in many ways, and may be expressed as either RDF or pure XML.
In initial release, structWSF has direct interfaces to the Virtuoso RDF triple store (via ODBC, and later HTTP) and the Solr faceted, full-text search engine(via HTTP). However, structWSF has been designed to be fully platform-independent. Support for additional datastores and engines are planned. The design also allows other specialized systems to be included, such as analysis or advanced inference engines.
The framework is open source (Apache 2 license) and designed for extensibility. structWSF and its extensions and enhancements are distributed and documented on the OpenStructs Web site.
Linked Data Basis
The primary data model used to describe the results of each Web service is RDF (Resource Description Framework). The RDF graph data model is a powerful one. When combined with proper vocabularies, the RDF data model is a flexible and precise way to express these results. The structWSF Web services may be serialized as RDF+XML and RDF+N3. New serializations can be added easily.
However, not all data consumers may have the tools or internal capabilities to process the RDF data model or its serializations. There are also use cases where XML is the preferred means for communicating results. To accommodate this spectrum, the structWSF Web services may also be provided as pure XML with a DTD (Document Type Definition) (eventually to be more formally described as an XML Schema).
Thus, consumers of these Web services have maximum flexibility and choice: Results can be processed directly as either XML or RDF in a variety of serializations. This also opens up the processing of results with a broader range of XML and RDF tools such as parsers, validators and datastores for a wider range of applications and environments.
Design Philosophy
A number of considerations govern the design of these structWSF Web services.
Flexible Consumption
In keeping with current Web diversity, the design provides multiple serializations and both RDF and XML result forms. Each Web service is also characterized by multiple options and parameters so as to tailor final results.
Pipeline Model and Internal Canonical Form
The general architecture is geared to support either a pipeline design model or atomic and compound Web services. The canonical data format for possible data transfer between Web services is the standard XML result form. This design enforces modularity and promotes re-use.
RESTful Architecture
All Web services are generally RESTful (Representational State Transfer). In addition to current RESTful practices, the structWSF Web services also use HTTP status codes for all error messages and accept and enforce charset, encoding, language and serialization options via the Accept request-header field.
Terminology Consistency
All Web services are named as nouns or compound nouns and all parameter and option calls are consistent with RDF practice and terminology. This design is consistent with best practices in a Web-oriented architecture (WOA) that is conformant with REST and linked data based on RDF.
Two Forms of Web Service
Two kinds of Web services exist: (1) atomic Web services and (2) compound Web services. A compound Web service is composed of multiple atomic Web services interacting together. Each atomic Web service performs one function given some parameters. The result of any Web service is a resultset that describes the result of the computation of the Web service.
The main goals of the XML data structure used by the Web services are:
- To have consistent names with the RDF data model and its vocabularies
- To be flexible enough to be able to describe the same relationships between things that are described in RDF
- To be easy to manipulate using existing XML parsing tools, libraries and XML data consumers.
Each Web service has its own API documentation page, which when combined with its related DTD, provides a full specification for the XML data returned by that Web service.
HTTP Status Codes (Error Messages)
Besides standard information, the structWSF Web services also communicate HTTP status codes in cases of a malformed request or error. The status codes applicable to each Web service are specified in their applicable APIs.
Both Management and User Services
There are two general kinds of Web services that belong to structWSF:
- WSF management Web services
- User-oriented Web services
The Web services oriented toward the management of structWSF (#1) are the ones supervising the overall work of the WSF. They authorize queries to the endpoints, they register new Web services endpoints within the network, they manage access permissions, etc.
The Web services oriented toward the users of structWSF (#2) are all the other Web services that general users can use to archive, manipulate and play with structured data hosted on the WSF.
Here is a listing of the current structWSF Web services and to which of these categories they belong:
| WSF management Web services | Users oriented Web services |