logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

sord_validate — validate RDF data

Authors

sord_validate is a part of sord, by David Robillard ⟨d@drobilla.net⟩.

Sord 0.30.17                                      Nov 29, 2022                                  SORD_VALIDATE(1)

Description

sord_validate  is a simple validator which checks that all used properties are actually defined, and that
       the domain and range of properties is explicitly correct.  Note that a validation  "error"  here  doesn't
       necessarily  mean that data is invalid, since it isn't, for example, required to explicitly list types in
       RDF.  This validator implements a more strict and explicit set of rules, based on the realistic needs  of
       simple  real-world  implementations.  For example, missing explicit type information may be warned about,
       even though even a simple inference engine would be able to deduce it.

       sord_validate never retrieves data from the web or special places on the file system, it  only  processes
       the  files  passed directly on the command line.  This means you must pass all used vocabularies to get a
       useful result.

       If an appropriate schema is available, literals  are  checked  against  datatype  definitions  (both  the
       explicit  datatype  of  the  literal itself, as well as any types implied by the corresponding property).
       Three XML Schema Datatypes (XSD) constraints are currently supported: regular expressions  (xsd:pattern),
       and  inclusive ranges (xsd:minimumInclusive and xsd:maximumInclusive).  Given an appropriate schema, this
       is enough to validate against most of the standard XSD datatypes.

       The options are as follows:

       -h   Print the command line options.

       -l   Print errors on a single line.

       -v   Display version information and exit.

Exit Status

sord_validate exits with a status of 0 if the input data is valid, or non-zero if there are  issues  with
       the data or if an error occurred.

Name

       sord_validate — validate RDF data

See Also

Standards

       W3C, RDF1.1NQuads, February 2014.  https://www.w3.org/TR/n-quads/

       W3C, RDF1.1NTriples, February 2014.  https://www.w3.org/TR/n-triples/

       W3C, RDF1.1TriG, February 2014.  https://www.w3.org/TR/trig/

       W3C, RDF1.1Turtle, February 2014.  https://www.w3.org/TR/turtle/

Synopsis

sord_validate [-hlv] input...

See Also