eu.ostrzyciel.jelly.core.ProtoEncoder
Stateful encoder of a protobuf RDF stream.
This class supports all stream types and options, but usually does not check if the user is conforming to them.
It will, for example, allow the user to send generalized triples in a stream that should not have them.
Take care to ensure the correctness of the transmitted data, or use the specialized wrappers from the stream package.
Attributes options options for this stream
Graph Reset zoom Hide graph Show graph
Supertypes class Object
trait Matchable
class Any
Members list Concise view
Value members
Turn an RDF graph node into its protobuf representation.
Turn an RDF graph node into its protobuf representation.
Use the protected final inline make*Graph methods in this class to create the nodes.
Attributes node RDF graph node
Returns: RdfTerm
Throws: RdfProtoSerializationError
if node cannot be encoded
Turn an RDF node (S, P, or O) into its protobuf representation.
Turn an RDF node (S, P, or O) into its protobuf representation.
Use the protected final inline make* methods in this class to create the nodes.
Attributes node RDF node
Returns: RdfTerm
Throws: RdfProtoSerializationError
if node cannot be encoded
Add an RDF quad statement to the stream.
Add an RDF quad statement to the stream.
Attributes quad quad to add
Returns: iterable of stream rows
Add an RDF triple statement to the stream.
Add an RDF triple statement to the stream.
Attributes triple triple to add
Returns: iterable of stream rows
Signal the end of a delimited graph in a GRAPHS stream.
Signal the end of a delimited graph in a GRAPHS stream.
Attributes Returns: iterable of stream rows (always of length 1)
Signal the start of the default delimited graph in a GRAPHS stream.
Signal the start of the default delimited graph in a GRAPHS stream.
Attributes Returns: iterable of stream rows
Signal the start of a new (named) delimited graph in a GRAPHS stream.
Signal the start of a new (named) delimited graph in a GRAPHS stream.
Attributes graph graph node
Returns: iterable of stream rows