Simple Inference Service

Introduction

The Simple Inference service provides a way to experiment with RDF rules processing over web accessible resources.

Rules, specified using the syntax of the Jena Rule Engine, can be applied to any RDF content available over the Internet. Results can be serialized in various RDF syntaxes.

Base URL

The Base URL of the query service is: http://xmlarmyknife.com/api/rdf/rules

Request Methods

Method Supported? Notes
DELETE No
GET Yes
POST No
PUT No

Request Parameters

Parameter Notes Required? Occurence
default-graph-uri Absolute URL of RDF data source to populate the background graph Yes 1
rules-uri Absolute URL of RDF rules to be applied to data source Yes 1
data Include all data, or just inferred triples. Default or value of all indicates that all triples will be returned (source data + inferred). A value of inferred will only return the additional triples. No 0 or 1
format Format for results. See below. No 0 or 1

Response Codes

Response Format

The following output options are supported by specifying an appropriate value for the format parameter (Note: values are case-sensitive):

Format Values Description Mimetype
RDF/XML (default) RDF/XML
RDF/XML-ABBREV More human-readable RDF/XML output. Less efficient
N3 Tim Berners-Lee's N3 language
TURTLE Dave Beckett's Turse RDF Triple Language
Jena documentation

Examples

Infer FOAF from del.icio.us bookmarks with Me/Friends tag

Implementation Notes

This service has been implemented using Jena 2.3.