Data integrity and validating constraints
Integrity of data begins at the time as the data is being ingested. Stardog provides this capability through two mechanisms: strict RDF Parsing and Integrity-Constraint validation.
Strict parsing of RDF
RDF parsing in Stardog is strict: it requires typed RDF literals to match their explicit datatypes, URIs to be well-formed, and so on. In some cases, strict parsing isn’t ideal, so it's possible to disable strict parsing at database-creation time. Disabling of strict parsing at database-creation time has a limitation. While it will allow invalid data to be ingested, it cannot be re-enabled once the data is in the database; the database must be recreated and the data reloaded.
However, even with strict parsing disabled, Stardog's RDF parser may encounter parse errors from which it cannot recover. And loading data in lax mode may lead to unexpected SPARQL query results. For example, malformed literals ("2.5"^^xsd:int
) used in filter evaluation may lead...