Syntax¶
-
enum
SerdSyntax
¶ Syntax supported by serd.
-
enumerator
SERD_SYNTAX_EMPTY
¶ Empty syntax (suppress input or output)
-
enumerator
SERD_TURTLE
¶ Terse triples http://www.w3.org/TR/turtle.
-
enumerator
SERD_NTRIPLES
¶ Flat triples http://www.w3.org/TR/n-triples/.
-
enumerator
SERD_NQUADS
¶ Flat quads http://www.w3.org/TR/n-quads/.
-
enumerator
SERD_TRIG
¶ Terse quads http://www.w3.org/TR/trig/.
-
enumerator
-
SerdSyntax
serd_syntax_by_name
(const char *name)¶ Get a syntax by name.
Case-insensitive, supports “Turtle”, “NTriples”, “NQuads”, and “TriG”.
SERD_SYNTAX_EMPTY
is returned if the name is not recognized.
-
SerdSyntax
serd_guess_syntax
(const char *filename)¶ Guess a syntax from a filename.
This uses the file extension to guess the syntax of a file.
SERD_SYNTAX_EMPTY
is returned if the extension is not recognized.
-
bool
serd_syntax_has_graphs
(SerdSyntax syntax)¶ Return whether a syntax can represent multiple graphs.
- Returns
True for SERD_NQUADS and SERD_TRIG, false otherwise.