Skip to content

Command-line utility to detect common mistakes in JSON-LD documents

Notifications You must be signed in to change notification settings

vcharpenay/jsonld-lint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

JSON-LD Lint

Command-line utility to detect common mistakes in JSON-LD documents.

Usage: jsonld-lint JSONLD_DOCUMENT [VOCABULARY_FILE]....

The following cases are tested:

  • IRI includes potential unresolved namespace
  • Term or namespace potentially not in @context
  • Potential IRI defined as literal (use @type:@id or @vocab)
  • Term maps to a predicate with no RDFS/OWL property definition
  • Term maps to a class with no RDFS/OWL class definition

The following ones are planned:

  • Missing values (count object number and keys in object)
  • Context not defined (no triple generated)
  • Invalid literal data type (e.g. xsd:integer not a number or with comma)

About

Command-line utility to detect common mistakes in JSON-LD documents

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages