tsvresults
This implements the Tab Separated SPARQL Result Format
It is implemented with pyparsing, reusing the elements from the SPARQL Parser
Classes:
-
TSVResultParser–Parses SPARQL TSV results into a Result object.
Attributes:
-
EMPTY– -
HEADER– -
NONE_VALUE– -
RDFLITERAL– -
ROW– -
String– -
TERM–
RDFLITERAL
module-attribute
RDFLITERAL = Comp('literal', Param('string', String) + Optional(Param('lang', leaveWhitespace()) | leaveWhitespace() + leaveWhitespace()))
TERM
module-attribute
TERM = RDFLITERAL | IRIREF | BLANK_NODE_LABEL | NumericLiteral | BooleanLiteral
TSVResultParser
Bases: ResultParser
Parses SPARQL TSV results into a Result object.
Methods:
-
convertTerm– -
parse–
convertTerm
convertTerm(t: Union[object, Literal, BNode, CompValue, URIRef]) -> Optional[Union[object, BNode, URIRef, Literal]]
Source code in rdflib/plugins/sparql/results/tsvresults.py
parse
parse(source: IO, content_type: Optional[str] = None) -> Result