Skip to content

About RSP SPIN

Robin Keskisärkkä edited this page Nov 7, 2016 · 1 revision

What is RSP-SPIN?

RSP-SPIN is an extension to the SPIN Modeling Vocabulary and API developed to support parameterization and sharing of RSP queries.

How does it work?

RSP queries are parsed and represented as RDF using a lightweight vocabulary. A template is then defined on top of the query allowing parameter constraints to be defined for the original query.

I read that there are multiple RSP serializers, how does that work?

RSP-SPIN builds largely upon the RSP-QL language being developed by the RSP Community Group. The RSP-QL captures the semantics of many other RSP flavours. The API currently includes serializers for CQELS, C-SPARQL and SPARQLstream, allowing you to formulate your queries and templates using RSP-QL but instantiating them to either language at runtime by simply changing the syntax that is being used.

What is the TemplateManager?

The TemplateManager wraps the standard SPIN API functions and adds some convenience methods allowing you to easily setup RSP-SPIN and do constraint checks prior to instantiating a query. You can also use the standard SPIN API or a combination of the two.

Can I use this in my project for free?

Yes (MIT licence).