1SORD_VALIDATE(1) General Commands Manual SORD_VALIDATE(1)
2
3
4
6 sord_validate - Validate RDF data
7
8
10 sord_validate [OPTION]... INPUT...
11
12
14 -h Print the command line options.
15
16
17 -l Print errors on a single line.
18
19
20 -v Display version information and exit.
21
22
24 This is a simple validator which checks that all used properties are
25 actually defined, and that the domain and range of properties is ex‐
26 plicitly correct. Note that an "error" from this program does not nec‐
27 essarily mean data is invalid, since it is not required to explicitly
28 list types in RDF, however it is a good idea to do so.
29
30 This program never retrieves data from the web or magical places on the
31 file system, it only processes files passed directly on the command
32 line. This means you must pass all used vocabularies to get a useful
33 result.
34
35 If an appropriate schema is available, literals are checked against
36 datatype definitions (both the explicit datatype of the literal itself
37 as well as any types implied by the corresponding property). Three XML
38 Schema Datatypes (XSD) constraints are currently supported: regular ex‐
39 pressions (xsd:pattern), and inclusive range (xsd:minimumInclusive and
40 xsd:maximumInclusive). Given an appropriate schema, this is enough to
41 validate against most of the standard XSD datatypes.
42
43
45 sord_validate `find ~/schemas/ -name '*.ttl'` data.ttl
46
47
49 sord_validate was written by David Robillard <d@drobilla.net>
50
51
53 Copyright © 2012-2016 David Robillard.
54 License: <http://www.opensource.org/licenses/isc-license>
55 This is free software; you are free to change and redistribute it.
56 There is NO WARRANTY, to the extent permitted by law.
57
58
60 <http://drobilla.net/software/sord>
61
62
63
64 21 Mar 2012 SORD_VALIDATE(1)