grafter.rdf.protocols

Grafter protocols and types for RDF processing

->Quad

(->Quad s p o c)
Positional factory function for class grafter.rdf.protocols.Quad.

->Triple

(->Triple s p o)
Positional factory function for class grafter.rdf.protocols.Triple.

destructure-quad

(destructure-quad quad i default)
FIXME: write docs

IStatement

protocol

An RDF triple or quad

members

context

(context statement)

object

(object statement)

predicate

(predicate statement)

subject

(subject statement)

ITransactable

protocol

Low level protocol for transactions support.  Most users probably
want to use grafter.rdf.sesame/with-transaction

members

begin

(begin repo)
Start a transaction

commit

(commit repo)
Commit a transaction

rollback

(rollback repo)
Rollback a transaction

ITripleReadable

protocol

Use the higher level wrapper function statements if you just wish to read in some RDF.

This protocol exists for implementers to hook in additional sources of statements.

Takes a source of statements or triples and converts it into a seq
of triples.

A hash of options is passed to each implementation, they may be
ignored or handled depending on the circumstance.

members

to-statements

(to-statements this options)

ITripleWriteable

protocol

This protocol is implemented by anything which you can put
statements into.

members

add

(add this triples)(add this graph triples)(add this graph format triple-stream)(add this graph base-uri format triple-stream)
Add a seq of triples or quads to a destination.  Works with a sequence of IStatements an InputStream, File or Reader

add-statement

(add-statement this statement)(add-statement this graph statement)

map->Quad

(map->Quad m__5869__auto__)
Factory function for class grafter.rdf.protocols.Quad, taking a map of keywords to field values.

map->Triple

(map->Triple m__5869__auto__)
Factory function for class grafter.rdf.protocols.Triple, taking a map of keywords to field values.