Project

rdf-kv

0.0
Low commit activity in last 3 years
This module implements https://doriantaylor.com/rdf-kv, taking key-value input (e.g. from a Web form) and converting it into an RDF::Changeset.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 13
~> 3

Runtime

 Project Readme

RDF::KV — Turn Key-Value Pairs into an RDF::Changeset

This module is an implementation of the RDF-KV protocol. This protocol defines a method for embedding instructions for constructing a changeset from ordinary key-value pairs.

# initialize the processor
kv = RDF::KV.new subject: my_url, graph: graph_url

# use it to generate a changeset, e.g. from web form POST data
cs = kv.process rack.POST

# now apply it to your RDF::Repository
cs.apply repo

Protocol Documentation

See the very tentative spec.

API Documentation

API documentation, for what it's worth at the moment, can be found in the usual place.

Installation

You know how to do this:

$ gem install rdf-kv

Or, download it off rubygems.org.

Contributing

Bug reports and pull requests are welcome at the GitHub repository.

Copyright & License

©2019 Dorian Taylor

This software is provided under the Apache License, 2.0.